/* Academy Home Page Styles */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    padding: 0;
    background: white;
}

.hero-wrapper {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 200px;
    max-height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: none;
}

/* Slideshow Styles */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 3s ease-in-out, visibility 3s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Image Container */
.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.hero-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

/* Hero Content Overlay */
.hero-content {
    position: absolute;
    bottom: 40px;
    z-index: 5;
    color: white;
    opacity: 0;
    transition: opacity 3s ease-in-out 0.3s;
    padding: 0 50px;
    width: calc(100% - 100px);
    left: 50px;
}

.slide.active .hero-content {
    opacity: 1;
}

.hero-text-wrapper {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    position: relative;
    display: block;
    width: 100%;
}

/* Alignment Variants */
.hero-content-left {
    left: 50px;
    text-align: left;
}

.hero-content-left .hero-title,
.hero-content-left .hero-subtitle {
    text-align: left;
}

.hero-content-center {
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.hero-content-center .hero-title,
.hero-content-center .hero-subtitle {
    text-align: center;
}

.hero-content-right {
    left: 50px;
    text-align: right;
}

.hero-content-right .hero-title,
.hero-content-right .hero-subtitle {
    text-align: right;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin: 0 0 15px 0;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 0, 0, 0.4);
    letter-spacing: -1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
    width: 100%;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    color: #ffffff;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

/* Static Hero */
.hero-static {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slideshow Controls */
.slideshow-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
    pointer-events: none;
}

.prev-btn, .next-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 20px;
    color: #333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.prev-btn:active, .next-btn:active {
    transform: scale(0.95);
}

/* Slideshow Dots */
.slideshow-dots {
    display: none;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.dot.active {
    background: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* Static Hero */
.hero-static {
    width: 100%;
    height: 100%;
}

/* Main Content */
.main-content {
    padding: 20px 0 60px 0;
}

/* Academy Sections */
.academy-section {
    padding: 80px 0;
    margin-bottom: 40px;
}

.section-1 {
    background: #ffffff;
    margin-top: 0;
    padding-top: 10px;
}

.section-2 {
    background: #f8f9fa;
}

.section-3 {
    background: #ffffff;
}

.section-4 {
    background: #f8f9fa;
}

.section-5 {
    background: #ffffff;
}

.custom-section {
    background: #ffffff;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-logo {
    margin-bottom: 20px;
}

.logo-image {
    max-width: 120px;
    height: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* CITB Main Content Layout */
.citb-main-content {
    margin: 10px 0 40px 0 !important;
}

/* Header Row: Logo + Title */
.citb-header-row {
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
    margin-top: 0px;
    margin-bottom: 40px !important;
    flex-wrap: wrap !important;
}

.citb-logo-container {
    flex-shrink: 0;
}

.citb-logo {
    max-width: 200px !important;
    height: auto !important;
    display: block !important;
}

.citb-title-container {
    flex: 1;
    min-width: 300px;
}

.citb-main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

/* Content Row: Text + Media */
.citb-content-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: auto auto;
    grid-template-areas:
        "text media"
        "buttons media";
    gap: 40px 60px !important;
    align-items: start !important;
}

.citb-text-content {
    padding: 20px 0;
    grid-area: text;
    align-self: flex-start;
}

.citb-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

.citb-media-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    grid-area: media;
}

.citb-content-row .course-buttons {
    grid-area: buttons;
    align-self: flex-start;
    justify-content: flex-start;
    width: 100%;
}

.citb-mobile-title {
    display: none;
    margin-top: 20px;
}

.desktop-title {
    display: block;
}

/* CITB Media Section */
.citb-video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 65%; /* Increased height for better viewing */
    overflow: hidden;
    border-radius: 15px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

.citb-video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.citb-image-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.citb-main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.citb-image-container:hover .citb-main-image {
    transform: scale(1.02);
}

.course-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.course-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.course-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #0f0ccf;
    margin-bottom: 15px;
    line-height: 1.3;
}

.course-short-title {
    font-size: 1.6rem;
    font-weight: 750;
    color: #0f0ccf;
    /* margin-bottom: 10px; */
    line-height: 1.3;
    text-align: center;
    width: 100%;
}
.course-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.course-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    width: 100%;
}

/* Buttons - Scoped to main content area only, not header navigation */
main .btn,
.hero-section .btn,
.memberships-section .btn,
.cta-buttons .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    flex: 1;
    min-width: 120px;
    max-width: calc(50% - 5px);
    box-sizing: border-box;
}

.course-btn-primary {
    background: #4d4a4a;
    color: white;
}

.course-btn-primary:hover {
    background: #3a3838;
    transform: translateY(-2px);
}

.course-btn-secondary {
    background: #e91e63;
    color: white;
    border: none;
}

.course-btn-secondary:hover {
    background: #c2185b;
    transform: translateY(-2px);
}

/* Read More Button - Gradient Style */
.btn-read_more {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-read_more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transition: left 0.4s ease;
}

.btn-read_more:hover::before {
    left: 0;
}

.btn-read_more:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-read_more span {
    position: relative;
    z-index: 1;
}

/* FAQs Button - Outlined Style */
.btn-faqs {
    background: transparent;
    color: #2c3e50;
    border: 2px solid #2c3e50;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-faqs::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #2c3e50;
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-faqs:hover::before {
    left: 0;
}

.btn-faqs:hover {
    color: white;
    border-color: #2c3e50;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.btn-faqs span {
    position: relative;
    z-index: 1;
}

/* Course Grid Layout */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Section 2 Layout */
.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-text {
    padding-right: 20px;
}

.section-visual {
    display: flex;
    justify-content: center;
}

.single-course {
    max-width: 400px;
    width: 100%;
}

/* Section 3 Layout */
.grants-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.grants-text {
    padding-right: 20px;
}

.grants-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grants-logo .logo-image {
    max-width: 200px;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 12px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.section-video video {
    width: 100%;
    border-radius: 12px;
}

/* Memberships Section */
.memberships-section {
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 50%, #34495e 100%);
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) translate(10%, 10%);
        opacity: 0.7;
    }
}

.memberships-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.1) 0%, transparent 70%);
    animation: pulse 20s ease-in-out infinite;
    z-index: 0;
}

.memberships-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -30%;
    width: 100%;
    height: 100%;
    /* background: radial-gradient(circle, rgba(52, 152, 219, 0.08) 0%, transparent 70%); */
    animation: pulse 25s ease-in-out infinite reverse;
    z-index: 0;
}

.memberships-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.memberships-slider-wrapper {
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.memberships-slider-wrapper.slideshow-active {
    max-width: 1300px;
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0;
}

.memberships-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(233, 30, 99, 0.5) rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    justify-content: center;
}

.memberships-grid.slideshow-active {
    padding: 0;
    padding-bottom: 0;
    flex-wrap: nowrap;
    will-change: transform;
    overflow: visible;
    gap: 30px;
    display: flex;
    align-items: stretch;
}

.memberships-grid.slideshow-active .membership-item {
    flex: 0 0 260px;
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    margin: 0;
}

.memberships-grid::-webkit-scrollbar {
    height: 8px;
}

.memberships-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.memberships-grid::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 99, 0.5);
    border-radius: 10px;
}

.memberships-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 30, 99, 0.7);
}

.membership-item {
    text-align: center;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    width: calc(25% - 22.5px);
    min-width: 250px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px) saturate(120%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.membership-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.membership-item:hover::before {
    left: 100%;
}

.membership-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(233, 30, 99, 0.15);
    border-color: rgba(233, 30, 99, 0.6);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.3), 0 0 0 1px rgba(233, 30, 99, 0.2);
}

.membership-icon {
    max-width: 120px;
    height: auto;
    margin: 0 auto 25px auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    display: block;
}

.membership-item:hover .membership-icon {
    transform: scale(1.15) rotateY(5deg);
    filter: drop-shadow(0 12px 24px rgba(233, 30, 99, 0.4));
}

.membership-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.membership-description {
    font-size: 0.8rem;
    color: #bdc3c7;
    line-height: 1.5;
    font-weight: 300;
    width: 100%;
}

/* Membership Slideshow Navigation */
.membership-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.membership-nav-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.membership-nav-btn:hover:not(.disabled) {
    background: rgba(233, 30, 99, 0.3);
    border-color: rgba(233, 30, 99, 0.6);
    transform: scale(1.1);
}

.membership-nav-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.membership-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Carousel-specific styles - Lightweight version */
.memberships-grid:has(.carousel-slide) {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 320px;
    overflow: visible;
    perspective: 1000px;
}

.membership-item.carousel-slide {
    position: absolute;
    opacity: 0;
    transform: translateX(0) scale(0.7);
    transition: all 0.6s ease-in-out;
    z-index: 1;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    pointer-events: none;
    will-change: transform, opacity;
}

/* Center slide (active/focused) */
.membership-item.carousel-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 3;
    pointer-events: auto;
}

/* Left slide */
.membership-item.carousel-slide.prev {
    opacity: 0.6;
    transform: translateX(-320px) scale(0.85);
    z-index: 2;
    pointer-events: auto;
}

/* Right slide */
.membership-item.carousel-slide.next {
    opacity: 0.6;
    transform: translateX(320px) scale(0.85);
    z-index: 2;
    pointer-events: auto;
}

.membership-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.membership-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.membership-dot.active {
    background: #e91e63;
    width: 30px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-text-wrapper {
        padding: 35px 40px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .citb-main-content {
        margin: 50px 0;
    }
    
    .citb-header-row {
        gap: 25px;
        margin-bottom: 35px;
    }
    
    .citb-logo {
        max-width: 180px;
    }
    
    .citb-main-title {
        font-size: 2.5rem;
    }
    
    .citb-content-row {
        gap: 50px;
    }
    
    .citb-description {
        font-size: 1.1rem;
    }
    
    .citb-video-container,
    .citb-image-container {
        max-width: 700px;
    }
    
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .section-content {
        gap: 40px;
    }
    
    .grants-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 0;
    }

    .hero-section .container {
        padding: 0;
        max-width: 100%;
    }
    
    .hero-wrapper {
        height: 50vh;
        min-height: 300px;
        border-radius: 0;
    }

    .hero-image-container,
    .hero-image-container::after {
        border-radius: 0;
    }
    
    .hero-content {
        padding: 0 20px;
        width: calc(100% - 40px);
        left: 20px;
        bottom: 30px;
    }
    
    .hero-text-wrapper {
        width: 100%;
    }
    
    .hero-content-left {
        left: 20px;
        text-align: left;
    }
    
    .hero-content-right {
        left: 20px;
        text-align: right;
    }
    
    .hero-content-center {
        left: 50%;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        margin: 0 0 10px 0;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    
    .prev-btn, .next-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .slideshow-controls {
        padding: 0 15px;
    }
    
    .slideshow-dots {
        bottom: 20px;
        padding: 8px 16px;
        gap: 8px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .citb-main-content {
        margin: 15px 0 30px 0;
    }
    
    .citb-content-row {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .citb-text-content {
        padding: 0 15px;
        width: 100%;
        order: 3;
    }
    
    .citb-description {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: left !important;
    }
    
    .citb-media-content {
        width: 100%;
        order: 2;
    }
    
    .citb-video-container,
    .citb-image-container {
        max-width: 100%;
        border-radius: 10px;
        margin: 0 auto;
        width: calc(100% - 30px);
    }
    
    .citb-video-container video {
        border-radius: 10px;
    }
    
    .video-wrapper {
        border-radius: 10px;
    }
    
    .video-wrapper iframe {
        border-radius: 10px;
    }
    
    .citb-media-content {
        padding: 0;
        display: block !important;
    }
    
    .desktop-title {
        display: none !important;
    }
    
    .citb-mobile-title {
        display: block;
        order: 1;
        width: 100%;
        padding: 0 15px;
        text-align: left;
        margin-top: 0;
    }
    
    .citb-mobile-title .citb-main-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin: 0;
    }
    
    .main-content {
        padding: 40px 0;
    }
    
    .academy-section {
        padding: 40px 0;
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section-text {
        padding-right: 0;
        text-align: center;
    }
    
    .grants-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .grants-text {
        padding-right: 0;
    }
    
    .course-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .citb-content-row .course-buttons {
        order: 4;
        width: 100%;
        padding: 0 15px;
        margin-top: 10px;
    }
    
    main .btn,
    .hero-section .btn,
    .memberships-section .btn,
    .cta-buttons .btn {
        flex: none;
    }

    .course-buttons .btn {
        flex: 1 1 calc(50% - 12px);
        max-width: calc(50% - 12px);
        min-width: 140px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    /* Tablet styles for new buttons */
    .btn-read_more {
        box-shadow: 0 3px 12px rgba(102, 126, 234, 0.25);
    }
    
    .btn-read_more:hover {
        box-shadow: 0 5px 18px rgba(102, 126, 234, 0.35);
    }
    
    .btn-faqs:hover {
        box-shadow: 0 3px 12px rgba(44, 62, 80, 0.25);
    }
    
    .memberships-title {
        font-size: 2rem;
    }
    
    .memberships-grid {
        gap: 20px;
        justify-content: center;
    }
    
    .memberships-slider-wrapper.slideshow-active {
        max-width: 100%;
        padding: 0;
    }
    
    .memberships-grid.slideshow-active {
        gap: 20px;
        padding: 0;
    }
    
    .memberships-grid.slideshow-active .membership-item {
        flex: 0 0 calc((100vw - 70px) / 2);
        width: calc((100vw - 70px) / 2);
        min-width: calc((100vw - 70px) / 2);
        max-width: calc((100vw - 70px) / 2);
    }
    
    .slideshow-controls {
        padding: 0 10px;
    }
    
    .membership-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    /* Carousel responsive for tablets */
    .memberships-grid:has(.carousel-slide) {
        min-height: 300px;
    }
    
    .membership-item.carousel-slide {
        width: 240px;
        min-width: 240px;
        max-width: 240px;
    }
    
    .membership-item.carousel-slide.prev {
        transform: translateX(-260px) scale(0.8);
    }
    
    .membership-item.carousel-slide.next {
        transform: translateX(260px) scale(0.8);
    }
    
    .membership-nav {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 0;
    }

    .hero-section .container {
        padding: 0;
        max-width: 100%;
    }
    
    .hero-wrapper {
        height: 45vh;
        min-height: 300px;
        border-radius: 0;
    }

    .hero-image-container,
    .hero-image-container::after {
        border-radius: 0;
    }
    
    .hero-content {
        padding: 0 15px;
        width: calc(100% - 30px);
        left: 15px;
        bottom: 20px;
    }
    
    .hero-text-wrapper {
        width: 100%;
    }
    
    .hero-content-left {
        left: 15px;
        text-align: left;
    }
    
    .hero-content-right {
        left: 15px;
        text-align: right;
    }
    
    .hero-content-center {
        left: 50%;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin: 0 0 8px 0;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        margin: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    
    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .slideshow-controls {
        padding: 0 10px;
    }
    
    .slideshow-dots {
        bottom: 15px;
        padding: 6px 12px;
        gap: 6px;
    }
    
    .dot {
        width: 7px;
        height: 7px;
    }
    
    .citb-main-content {
        margin: 10px 0 20px 0;
    }
    
    .citb-header-row {
        gap: 12px;
        margin-bottom: 20px;
        flex-direction: column;
        text-align: center;
        align-items: center !important;
    }
    
    .citb-logo-container {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .citb-logo {
        max-width: 100px;
        width: 100%;
        height: auto;
    }
    
    .citb-title-container {
        width: 100%;
    }
    
    .citb-main-title {
        font-size: 1.4rem;
        line-height: 1.3;
        padding: 0 10px;
        word-wrap: break-word;
    }
    
    .citb-content-row {
        gap: 20px !important;
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .citb-text-content {
        padding: 0 10px;
        width: 100%;
        order: 3;
    }
    
    .citb-description {
        font-size: 0.85rem;
        line-height: 1.5;
        text-align: left !important;
    }
    
    .citb-media-content {
        width: 100%;
        order: 2;
    }
    
    .citb-video-container,
    .citb-image-container {
        border-radius: 8px;
        margin: 0 auto;
        width: calc(100% - 20px);
    }
    
    .citb-video-container video {
        border-radius: 8px;
    }
    
    .video-wrapper {
        border-radius: 8px;
    }
    
    .video-wrapper iframe {
        border-radius: 8px;
    }
    
    .citb-media-content {
        padding: 0;
        display: block !important;
    }
    
    .desktop-title {
        display: none !important;
    }
    
    .citb-mobile-title {
        display: block;
        order: 1;
        width: 100%;
        padding: 0 10px;
        text-align: left;
        margin-top: 0;
    }
    
    .citb-mobile-title .citb-main-title {
        font-size: 1.4rem;
        line-height: 1.3;
        margin: 0;
    }
    
    .citb-content-row .course-buttons {
        order: 4;
        width: 100%;
        padding: 0 10px;
        margin-top: 10px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .academy-section {
        padding: 30px 0;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .course-content {
        padding: 20px;
    }
    
    .course-title {
        font-size: 1.1rem;
    }
    
    .course-description {
        font-size: 0.85rem;
    }

    .course-buttons {
        gap: 8px;
    }
    
    main .btn,
    .hero-section .btn,
    .memberships-section .btn,
    .cta-buttons .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .course-buttons .btn {
        flex: 1 1 calc(50% - 8px);
        max-width: calc(50% - 8px);
        min-width: 120px;
        padding: 9px 12px;
        font-size: 0.75rem;
    }
    
    /* Mobile styles for new buttons */
    .btn-read_more {
        padding: 10px 20px;
        font-size: 0.8rem;
        box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
    }
    
    .btn-read_more:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    
    .btn-faqs {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .btn-faqs:hover {
        transform: translateY(-2px);
        box-shadow: 0 3px 10px rgba(44, 62, 80, 0.2);
    }
    
    .memberships-title {
        font-size: 1.5rem;
    }
    
    .membership-item {
        padding: 20px 15px;
        min-width: 180px;
    }
    
    .memberships-slider-wrapper.slideshow-active {
        max-width: 100%;
        padding: 0;
    }
    
    .memberships-grid.slideshow-active {
        gap: 20px;
        padding: 0;
    }
    
    .memberships-grid.slideshow-active .membership-item {
        flex: 0 0 calc(100vw - 40px);
        width: calc(100vw - 40px);
        min-width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }
    
    .membership-icon {
        max-width: 70px;
        padding: 10px;
    }
    
    .membership-title {
        font-size: 0.9rem;
    }
    
    .membership-description {
        font-size: 0.7rem;
    }
    
    .membership-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    /* Carousel responsive for mobile */
    .memberships-grid:has(.carousel-slide) {
        min-height: 280px;
        padding: 0 10px;
    }
    
    .membership-item.carousel-slide {
        width: 200px;
        min-width: 200px;
        max-width: 200px;
    }
    
    .membership-item.carousel-slide.prev {
        transform: translateX(-180px) scale(0.75);
        opacity: 0.4;
    }
    
    .membership-item.carousel-slide.next {
        transform: translateX(180px) scale(0.75);
        opacity: 0.4;
    }
    
    .membership-nav {
        padding: 0 5px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Smooth Slideshow Animation */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(1.08);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.slide.active .hero-image {
    animation: fadeInScale 1.5s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .slide.active .hero-image {
        animation: none !important;
    }
}

/* Focus States */
main .btn:focus,
.hero-section .btn:focus,
.memberships-section .btn:focus,
.cta-buttons .btn:focus,
.prev-btn:focus,
.next-btn:focus,
.dot:focus {
    outline: 2px solid #e91e63;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .course-btn-primary {
        background: #000;
        color: #fff;
    }
    
    .course-btn-secondary {
        background: #000;
        color: #fff;
        border: none;
    }
}