/* ===================================
   MODERN HOMEPAGE DESIGN
   Texas Insurance Training Academy
   Fresh, Attractive, Contemporary UI
   =================================== */

:root {
    --primary-blue: #004e6d;
    --primary-teal: #29ab9f;
    --dark-blue: #003a52;
    --light-blue: #005b7f;
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-teal) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ===================================
   Bootstrap 4 gap utility polyfill
   (g-4 and g-5 don't exist in BS4)
   =================================== */
.g-4 {
    margin-right: -12px;
    margin-left: -12px;
}
.g-4 > [class*="col-"] {
    padding-right: 12px;
    padding-left: 12px;
    margin-bottom: 24px;
}
.g-5 {
    margin-right: -15px;
    margin-left: -15px;
}
.g-5 > [class*="col-"] {
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 30px;
}

/* ===================================
   1. MODERN HERO CAROUSEL
   =================================== */
.hero-banner-modern {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    width: 100%;
}

.hero-banner-modern .carousel {
    min-height: 544px;
    height: calc((100vh - 75px) * 0.8);
    max-height: 688px;
}

.hero-banner-modern .carousel-item {
    min-height: 544px;
    height: calc((100vh - 75px) * 0.8);
    max-height: 688px;
    position: relative;
}

.carousel-image-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.carousel-img {
    width: 100%;
    height: 100% !important;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Dual-layer overlay: bottom-up dark vignette + directional brand gradient */
.carousel-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,  rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.10) 45%, transparent 100%),
        linear-gradient(to right, rgba(0, 0, 0, 0.35) 0%, transparent 60%);
    z-index: 1;
}

/* Caption container — vertically centered, left-aligned */
.carousel-caption-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    z-index: 2;
    padding: 0;
}

.caption-content {
    max-width: 760px;
    padding: 0 20px;
}

.caption-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.1rem;
    line-height: 1.18;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.3px;
}

.caption-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: rgba(255, 255, 255, 0.90);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.65;
    max-width: 600px;
}

/* Carousel Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-item.active .animate-slide-up {
    animation: slideUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.carousel-item.active .animate-slide-up-delay {
    animation: slideUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
    opacity: 0;
}
.carousel-item.active .animate-fade-in {
    animation: slideUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.36s forwards;
    opacity: 0;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 56px;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
    height: auto;
    bottom: auto;
    align-items: center;
}
.carousel-control-prev { left: 24px; }
.carousel-control-next { right: 24px; }

.carousel-control-icon-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    box-shadow: none;
    transition: transform 0.25s ease;
}

.carousel-control-prev:hover .carousel-control-icon-modern,
.carousel-control-next:hover .carousel-control-icon-modern {
    transform: scale(1.2);
}

.carousel-control-icon-modern i {
    font-size: 1.8rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

/* Carousel Indicators */
.hero-banner-modern .carousel-indicators {
    bottom: 28px;
    margin-bottom: 0;
}

.hero-banner-modern .carousel-indicators li {
    width: 32px;
    height: 4px;
    border-radius: 4px;
    border: none;
    background: rgba(255, 255, 255, 0.40);
    opacity: 1;
    transition: background 0.35s ease, width 0.35s ease;
    margin: 0 3px;
}

.hero-banner-modern .carousel-indicators li.active {
    background: #29ab9f;
    width: 52px;
}

@media (max-width: 991px) {
    .hero-banner-modern .carousel,
    .hero-banner-modern .carousel-item {
        min-height: 416px;
        height: 46vw;
        max-height: 496px;
    }
}

@media (max-width: 767px) {
    .hero-banner-modern .carousel,
    .hero-banner-modern .carousel-item {
        min-height: 320px;
        height: 58vw;
        max-height: 416px;
    }

    .carousel-caption-modern {
        align-items: flex-end;
        padding-bottom: 60px;
    }

    .carousel-control-prev { left: 10px; }
    .carousel-control-next { right: 10px; }

    .carousel-control-icon-modern {
        width: 40px;
        height: 40px;
    }

    .hero-banner-modern .carousel-indicators {
        bottom: 12px;
    }
}

@media (max-width: 480px) {
    .hero-banner-modern .carousel,
    .hero-banner-modern .carousel-item {
        min-height: 240px;
        height: 68vw;
        max-height: 320px;
    }
}

/* ===================================
   2. MODERN CTA BANNER
   =================================== */
.cta-banner-modern {
    background: var(--gradient-primary);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.cta-banner-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
    pointer-events: none;
}

/* Improved CTA Button Container */
.cta-button {
    flex-shrink: 0;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.cta-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-icon:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
}

.cta-text {
    flex: 1;
}

.cta-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.cta-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-text h3 {
        font-size: 1.5rem;
    }
}

/* ===================================
   3. FEATURES SECTION MODERN
   =================================== */
.features-section-modern {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(41, 171, 159, 0.1);
    color: var(--primary-teal);
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    margin-bottom: 15px;
}

.section-badge-light {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.25;
}

h1.section-title {
    font-size: 2.5rem;
}

.section-subtitle {
    font-size: 1.55rem;
    color: #555555;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.85) !important;
}

.feature-card-modern {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    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(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.feature-icon {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    z-index: 1;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.gradient-primary {
    background: var(--gradient-primary);
}

.gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.gradient-info {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
}

.feature-icon i {
    display: inline-block;
    line-height: 1;
}

.feature-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: inherit;
    opacity: 0.15;
    z-index: 0;
    transition: var(--transition-smooth);
}

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

.feature-card-modern:hover .feature-icon-bg {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.15;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.feature-description {
    font-size: 1.35rem;
    color: #555555;
    line-height: 1.7;
    margin: 0;
}

/* ===================================
   4. CLASSROOM SECTION MODERN
   =================================== */
.classroom-section-modern {
    padding: 80px 0;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.classroom-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.classroom-card-modern {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    transition: var(--transition-smooth);
    height: 100%;
    box-shadow: var(--shadow-md);
}

.classroom-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.classroom-card-modern:hover .card-image img {
    transform: scale(1.1);
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.classroom-card-modern:hover .card-image-overlay {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.classroom-card-modern:hover .card-icon {
    transform: translateY(0);
}

.card-body-modern {
    padding: 30px;
}

.card-title-modern {
    font-size: 1.85rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-description-modern {
    font-size: 1.55rem;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-action {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-teal);
    font-weight: 600;
    font-size: 1.6rem;
    transition: var(--transition-smooth);
}

.classroom-card-modern:hover .card-action {
    gap: 15px;
}

.card-action i {
    transition: var(--transition-smooth);
}

.classroom-card-modern:hover .card-action i {
    transform: translateX(5px);
}

/* ===================================
   5. COURSES SECTION MODERN
   =================================== */
.courses-section-modern {
    padding: 80px 0;
    background: #ffffff;
}

.course-card-modern {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
} 

.course-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.course-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.course-card-modern:hover .course-img {
    transform: scale(1.1);
}

.course-badge-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1;
}

.badge-modern {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 78, 109, 0.95);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
}

.badge-webinar {
    background: rgba(255, 87, 34, 0.95);
}

.course-body-modern {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-rating-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.course-rating-modern .stars {
    display: flex;
    gap: 3px;
}

.course-rating-modern .stars i {
    color: #ffc107;
    font-size: 1.3rem;
}

.rating-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #555555;
}

.course-title-modern {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-description-modern {
    font-size: 1.35rem;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-footer-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.course-price-modern {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-teal);
}

.course-action {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: var(--transition-smooth);
}

.course-card-modern:hover .course-action {
    transform: scale(1.1);
}

.course-action i {
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.course-card-modern:hover .course-action i {
    transform: translateX(3px);
}


/* ===================================
   6. WEBINAR SECTION MODERN
   =================================== */
.webinar-section-modern {
    padding: 80px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.webinar-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.webinar-card .course-body-modern {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

/* ===================================
   7. E-BOOK SECTION ULTRA MODERN
   =================================== */
.ebook-section-ultra-modern {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.ebook-image-modern {
    position: relative;
    display: inline-block;
}

.ebook-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--gradient-primary);
    opacity: 0.15;
    filter: blur(60px);
    border-radius: 50%;
    animation: pulse 3s ease-in-out 3;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.25;
    }
}

.ebook-image-modern img {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    animation: float 6s ease-in-out 3;
}

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

.floating-badge {
    position: absolute;
    top: 20px;
    right: -20px;
    background: var(--gradient-primary);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(41, 171, 159, 0.4);
    animation: bounce 2s ease-in-out 3;
}

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

.ebook-content-modern {
    position: relative;
}

.ebook-title-modern {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.ebook-subtitle-modern {
    font-size: 1.45rem;
    color: #666666;
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.benefits-modern {
    margin-bottom: 2rem;
}

.benefit-item-modern {
    display: flex;
    align-items: start;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #ffffff;
    border-radius: 12px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-item-modern:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-teal);
}

.benefit-icon-modern {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
}

.benefit-item-modern p {
    margin: 0;
    font-size: 1.7rem;
    color: #333333;
    line-height: 1.7;
}

.ebook-form-modern {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

/* ===================================
   8. RESPONSIVE DESIGN
   =================================== */
@media (max-width: 991px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .features-section-modern,
    .classroom-section-modern,
    .courses-section-modern,
    .webinar-section-modern,
    .ebook-section-ultra-modern {
        padding: 60px 0;
    }
    
    /* Better spacing for tablet */
    .feature-card-modern,
    .classroom-card-modern,
    .course-card-modern {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .cta-icon {
        width: 56px;
        height: 56px;
        font-size: 1.6rem;
    }
    
    .cta-text h3 {
        font-size: 1.15rem;
    }
    
    .cta-text p {
        font-size: 0.9rem;
    }
    
    .btn-cta-white {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .feature-card-modern {
        padding: 30px 20px;
        margin-bottom: 25px;
    }
    
    .classroom-card-modern,
    .course-card-modern {
        margin-bottom: 25px;
    }
    
    .ebook-title-modern {
        font-size: 1.65rem;
    }
    .ebook-subtitle-modern {
        font-size: 1.1rem;
    }
    
    .floating-badge {
        top: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    /* Mobile-specific adjustments */
    .features-section-modern,
    .classroom-section-modern,
    .courses-section-modern,
    .webinar-section-modern,
    .ebook-section-ultra-modern {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .caption-content {
        text-align: center;
    }
}

/* Extra small devices */
@media (max-width: 575px) {
    .cta-banner-modern {
        padding: 40px 0;
    }
    
    .btn-primary-modern {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .card-body-modern {
        padding: 20px;
    }
    
    .course-body-modern {
        padding: 20px;
    }
    
    /* Ensure proper column stacking */
    .row > [class*="col-"] {
        margin-bottom: 20px;
    }
    
    .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
}

/* Font Awesome 4 icon styling for modern sections */
.feature-icon .fa,
.cta-icon .fa,
.card-icon .fa,
.course-action .fa,
.card-action .fa,
.benefit-icon-modern .fa,
.floating-badge .fa,
.carousel-control-icon-modern .fa,
.btn-cta-white .fa,
.btn-caption-cta .fa,
.btn-primary-modern .fa,
.course-rating-modern .fa {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1;
}

/* Fix for Bootstrap carousel controls — remove default white square bg-image */
.carousel-control-prev,
.carousel-control-next {
    opacity: 1;
    width: auto;
    background: none !important;
    background-image: none !important;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: none;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* ===================================
   UNIFIED BUTTON DESIGN SYSTEM
   =================================== */

/* Primary teal button — used in Online Courses section */
.btn-primary-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #29ab9f 0%, #1d8a80 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(41, 171, 159, 0.35);
    text-decoration: none;
    letter-spacing: 0.3px;
}
.btn-primary-modern:hover,
.btn-primary-modern:focus {
    background: linear-gradient(135deg, #1d8a80 0%, #155f57 100%);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(41, 171, 159, 0.5);
    text-decoration: none;
    outline: none;
}
.btn-primary-modern .fa {
    transition: transform 0.3s ease;
}
.btn-primary-modern:hover .fa {
    transform: translateX(4px);
}

/* White-outline button — used on dark / gradient section backgrounds */
.classroom-section-modern .btn-outline-light,
.webinar-section-modern .btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    letter-spacing: 0.3px;
}
.classroom-section-modern .btn-outline-light:hover,
.classroom-section-modern .btn-outline-light:focus,
.webinar-section-modern .btn-outline-light:hover,
.webinar-section-modern .btn-outline-light:focus {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    outline: none;
}

/* CTA white button — used in CTA banner */
.btn-cta-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: #ffffff;
    color: #004e6d;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.btn-cta-white:hover,
.btn-cta-white:focus {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    outline: none;
}
.btn-cta-white .fa {
    transition: transform 0.3s ease;
}
.btn-cta-white:hover .fa {
    transform: translateX(4px);
}

/* Caption CTA — used inside hero banner slides */
.btn-caption-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    background: #ffffff;
    color: #004e6d;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    letter-spacing: 0.3px;
}
.btn-caption-cta:hover,
.btn-caption-cta:focus {
    background: #29ab9f;
    color: #ffffff;
    border-color: #29ab9f;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(41, 171, 159, 0.45);
    text-decoration: none;
    outline: none;
}
.btn-caption-cta .fa {
    transition: transform 0.3s ease;
}
.btn-caption-cta:hover .fa {
    transform: translateX(4px);
}

/* Ensure smooth transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Fix for potential layout shifts in modern sections */
.classroom-card-modern img,
.course-card-modern img,
.ebook-image-modern img {
    max-width: 100%;
    height: auto;
}
/* Hero carousel image must NOT have height:auto — handled by .carousel-img */

/* Accessibility improvements */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===================================
   BUTTON RESPONSIVE OVERRIDES
   =================================== */
@media (max-width: 767px) {
    .btn-caption-cta {
        padding: 12px 26px;
        font-size: 0.95rem;
    }
    .classroom-section-modern .btn-outline-light,
    .webinar-section-modern .btn-outline-light {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .btn-cta-white {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 575px) {
    .btn-primary-modern {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    .btn-caption-cta,
    .btn-cta-white {
        padding: 11px 22px;
        font-size: 0.9rem;
    }
    .classroom-section-modern .btn-outline-light,
    .webinar-section-modern .btn-outline-light {
        padding: 11px 24px;
        font-size: 0.9rem;
    }
}
