/* E-learning Theme Styles - Hero Section 2 */

/* Global Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Hero Section 2 - Modern Design Styles */
.hero-badge-container {
    animation: fadeInUp 0.6s ease-out;
    margin-bottom: 16px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
    color: #4CC1BB;
}

.hero-badge svg {
    flex-shrink: 0;
    margin-right: 8px;
    width: 18px;
    height: 18px;
    color: #4CC1BB;
}

.hero-badge-text {
    color: #4CC1BB;
    font-weight: 600;
}

.hero-main-title {
    font-size: 56px;
    line-height: 1.2;
    color: #1E3A8A;
    font-weight: 800;
    margin-bottom: 20px;
    margin-top: 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    letter-spacing: -0.5px;
}

@media (max-width: 991px) {
    .hero-main-title {
        font-size: 36px;
        line-height: 1.25;
    }
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #4B5563;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .hero-subtitle {
        font-size: 16px;
    }
}

.hero-search-form {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-search-container {
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    gap: 12px;
    min-height: 64px;
}

.hero-search-container:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.hero-search-input {
    flex: 1;
    padding: 18px 12px;
    font-size: 17px;
    color: #1F2937;
    background: transparent;
    border: none;
}

.hero-search-input:focus {
    outline: none;
    box-shadow: none;
}

.hero-search-input::placeholder {
    color: #9CA3AF;
    font-size: 17px;
    font-weight: 400;
}

.hero-search-btn {
    width: 52px;
    height: 52px;
    min-width: 52px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1E3A8A;
    border: none;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.hero-search-btn:hover {
    background: #1E293B;
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(30, 58, 138, 0.4);
}

.hero-search-btn i,
.hero-search-btn svg {
    color: white;
    stroke-width: 2.5;
}

.hero-features {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-feature-item {
    font-size: 16px;
    color: #475569;
    font-weight: 500;
    margin-right: 32px;
}

.hero-feature-item:last-child {
    margin-right: 0;
}

.hero-feature-icon {
    flex-shrink: 0;
    margin-right: 10px;
    width: 20px;
    height: 20px;
    margin: 0px 8px;
}

.hero-feature-text {
    color: #475569;
    font-weight: 500;
    font-size: 16px;
}

@media (max-width: 991px) {
    .hero-feature-item {
        font-size: 14px;
    }
}

/* Hero Image Container */
.hero-image-container {
    animation: fadeInUp 0.8s ease-out 1s both;
}
.why-card-title:first-of-type
{
    font-size: 14px !important;
}
.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991px) {
    .hero-image-wrapper {
        min-height: 275px;
        margin-top: 0px;
    }
}

.hero-gradient-shape {
    display: none;
}

.hero-main-image {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

/* Floating Cards */
.hero-floating-card {
    position: absolute;
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 18px 20px;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-card-students {
    top: 8%;
    right: -6%;
    min-width: 180px;
    max-width: 180px;
    animation-delay: 0s;
}

@media (min-width: 992px) {
    .hero-card-students {
        right: -10%;
        top: 5%;
    }
}

@media (min-width: 1200px) {
    .hero-card-students {
        right: -12%;
        top: 3%;
    }
}

.hero-card-courses {
    bottom: 18%;
    left: -8%;
    min-width: 200px;
    max-width: 200px;
    animation-delay: 2s;
}

@media (min-width: 992px) {
    .hero-card-courses {
        left: -15%;
        bottom: 20%;
    }
}

@media (min-width: 1200px) {
    .hero-card-courses {
        left: -18%;
        bottom: 18%;
    }
}

@media (max-width: 991px) {
    .hero-card-students {
        top: 5%;
        right: 0;
        min-width: 150px;
        padding: 15px;
    }
    
    .hero-card-courses {
        bottom: 10%;
        left: 0;
        min-width: 170px;
        padding: 15px;
    }
}

.hero-card-content {
    width: 100%;
}

.hero-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 14px;
    text-transform: none;
    letter-spacing: 0.2px;
}

.hero-card-chart {
    height: 55px;
    gap: 6px;
    align-items: flex-end;
}

.chart-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    min-width: 18px;
    max-width: 24px;
    transition: all 0.3s ease;
}

.chart-bar:hover {
    transform: scaleY(1.1);
}

.hero-card-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    flex-shrink: 0;
}

.bg-primary-light {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
}

.hero-card-number {
    font-size: 30px;
    font-weight: 800;
    color: #1E293B;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-card-label {
    font-size: 13px;
    color: #64748B;
    margin-top: 0;
    font-weight: 500;
    line-height: 1.3;
}

@media (max-width: 991px) {
    .hero-card-number {
        font-size: 24px;
    }
    
    .hero-card-label {
        font-size: 11px;
    }
}

/* Responsive adjustments for hero section 2 */
.slider-container.slider-hero-section2 {
    background: transparent !important;
    padding: 35px 0 35px 0;
}

@media (max-width: 991px) {
    .slider-container.slider-hero-section2 {
        padding: 20px 0 40px 0;
    }
    
    .slider-container.slider-hero-section2 .container {
        padding-top: 0;
    }
    
    .slider-container.slider-hero-section2 .row.hero-section2 {
        margin-top: 0;
    }
}

.slider-container.slider-hero-section2 .slider-content.hero-section2 {
    padding: 0;
}

.slider-container.slider-hero-section2 .row.hero-section2 {
    align-items: center;
}

/* Modern Statistics Section */
.stats-container-modern {
    position: relative;
    padding: 80px 0;
    background: #F8F9FA;
    z-index: 8;
}

.stats-container-modern.page-has-hero-section-2 {
    padding: 100px 0;
}

.stats-card-modern {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stats-icon-modern {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 16px;
}

.stats-icon-teacher {
    background: linear-gradient(135deg, #3C8CE7 0%, #00EAFF 100%);
}

.stats-icon-student {
    background: linear-gradient(135deg, #F761A1 0%, #8C1BAB 100%);
}

.stats-icon-video {
    background: linear-gradient(135deg, #11C99C 0%, #00E31D 100%);
}

.stats-icon-course {
    background: linear-gradient(135deg, #FF0844 0%, #FFB199 100%);
}

.stats-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.stats-number-modern {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    color: #1E3A8A;
    margin-bottom: 12px;
}

.stats-title-modern {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #1E3A8A;
    margin-bottom: 8px;
    margin-top: 0;
}

.stats-desc-modern {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #64748B;
    margin: 0;
}

@media (max-width: 991px) {
    .stats-container-modern {
        padding: 60px 0;
    }

    .stats-container-modern.page-has-hero-section-2 {
        padding: 80px 0;
    }

    .stats-card-modern {
        padding: 24px 20px;
    }

    .stats-icon-modern {
        width: 70px;
        height: 70px;
        min-width: 70px;
        margin-bottom: 16px;
    }

    .stats-number-modern {
        font-size: 40px;
    }

    .stats-title-modern {
        font-size: 16px;
    }

    .stats-desc-modern {
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .stats-card-modern {
        margin-bottom: 20px;
    }
}

/* ============================================
   Features Section - Two Columns Layout
   ============================================ */
.features-section-modern {
    padding: 60px 0;
    background: #FFFFFF;
    position: relative;
}

.features-grid-two-columns {
    margin-top: 60px;
}

.features-grid-two-columns .why-card {
    margin-bottom: 24px;
}

.features-grid-two-columns .why-card:last-child {
    margin-bottom: 0;
}

/* Feature Icon Colors for why-card-icon */
.features-section-modern .why-card-icon.feature-icon-1 {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
}

.features-section-modern .why-card-icon.feature-icon-2 {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.features-section-modern .why-card-icon.feature-icon-3 {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.features-section-modern .why-card-icon.feature-icon-4 {
    background: #F8EAFF;
}

.features-section-modern .why-card-icon.feature-icon-4 svg {
    color: #A670F2;
}

.features-section-modern .why-card-icon.feature-icon-5 {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.features-section-modern .why-card-icon.feature-icon-6 {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

/* Responsive Design */
@media (max-width: 991px) {
    .features-section-modern {
        padding: 80px 0;
    }

    .features-grid-two-columns {
        margin-top: 50px;
    }

    .features-grid-two-columns .why-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .features-section-modern {
        padding: 60px 0;
    }

    .features-grid-two-columns {
        margin-top: 40px;
    }

    .features-grid-two-columns .col-md-6 {
        margin-bottom: 0;
    }

    .features-grid-two-columns .why-card {
        margin-bottom: 16px;
    }
}

@media (max-width: 575px) {
    .features-section-modern {
        padding: 50px 0;
    }

    .features-grid-two-columns {
        margin-top: 30px;
    }

    .features-grid-two-columns .why-card {
        margin-bottom: 16px;
    }
}

.feature-card-modern {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #F1F5F9;
    position: relative;
    overflow: hidden;
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366F1, #10B981, #F59E0B);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card-modern:hover::before {
    transform: scaleX(1);
}

.feature-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #E2E8F0;
}

.feature-icon-wrapper {
    margin-bottom: 24px;
    position: relative;
}

.feature-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-card-modern:hover .feature-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon-box svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
    color: #FFFFFF;
}

/* Feature Icon Colors */
.feature-icon-1 {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
}

.feature-icon-2 {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.feature-icon-3 {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.feature-icon-4 {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

.feature-icon-5 {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.feature-icon-6 {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #1E3A8A;
    margin-bottom: 12px;
    margin-top: 0;
}

.feature-description {
    font-size: 16px;
    line-height: 1.6;
    color: #64748B;
    margin: 0;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 991px) {
    .features-section-modern {
        padding: 80px 0;
    }

    .features-section-title {
        font-size: 36px;
        line-height: 1.25;
    }

    .features-section-subtitle {
        font-size: 16px;
    }

    .feature-card-modern {
        padding: 35px 25px;
    }

    .feature-icon-box {
        width: 70px;
        height: 70px;
    }

    .feature-icon-box svg {
        width: 28px;
        height: 28px;
    }

    .feature-title {
        font-size: 20px;
    }

    .feature-description {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .features-section-modern {
        padding: 60px 0;
    }

    .features-section-title {
        font-size: 32px;
    }

    .features-section-subtitle {
        font-size: 15px;
    }

    .feature-card-modern {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .feature-icon-box {
        width: 65px;
        height: 65px;
    }

    .feature-icon-box svg {
        width: 26px;
        height: 26px;
    }

    .feature-title {
        font-size: 18px;
    }

    .feature-description {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .features-section-modern {
        padding: 50px 0;
    }

    .features-section-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .features-section-subtitle {
        font-size: 14px;
    }

    .mb-60 {
        margin-bottom: 40px !important;
    }

    .feature-card-modern {
        padding: 25px 18px;
    }

    .feature-icon-wrapper {
        margin-bottom: 20px;
    }

    .feature-icon-box {
        width: 60px;
        height: 60px;
    }

    .feature-icon-box svg {
        width: 24px;
        height: 24px;
    }

    .feature-title {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .feature-description {
        font-size: 13px;
    }
}

/* Footer Responsive Styles */
.footer {
    padding: 40px 0 0;
}

.footer-subscribe {
    padding: 30px 0;
}

.subscribe-input {
    border-radius: 12px;
}

.subscribe-input .form-control {
    font-size: 14px;
    padding: 12px 15px;
}

.subscribe-input .btn {
    padding: 12px 24px;
    font-size: 14px;
    white-space: nowrap;
}

.footer-column-content {
    font-size: 14px;
    line-height: 1.8;
}

.footer-column-content a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column-content a:hover {
    color: #FFFFFF;
}

.footer-logo-img {
    max-width: 120px;
    height: auto;
}

.footer-social {
    gap: 10px;
}

.footer-social-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-social-link:hover {
    transform: translateY(-3px);
}

.footer-social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-right: 10px;
}

.footer-social-icon:last-child {
    margin-right: 0;
}

.footer-copyright-card {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.border-blue {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Footer */
@media (max-width: 767px) {
    .footer {
        padding: 30px 0 0;
    }
    .footer .footer-logo
    {
        display: none !important;
    }
    .footer-subscribe {
        padding: 20px 0;
    }
    
    .subscribe-input {
        padding: 12px;
    }
    
    .subscribe-input .form-control {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .subscribe-input .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .footer-column-content {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .footer-logo-img {
        max-width: 100px;
    }
    
    .footer-social-icon {
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }
    
    .footer-copyright-card .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 575px) {
    .footer-subscribe {
        text-align: center;
    }
    
    .subscribe-input .form-group {
        flex-direction: column;
    }
    
    .subscribe-input .form-control {
        margin-bottom: 10px;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 15px;
    }
    
    .footer-copyright-card .container > div:first-child {
        margin-bottom: 15px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .footer-logo-img {
        max-width: 110px;
    }
    
    .footer-social-icon {
        width: 30px;
        height: 30px;
    }
}

