/* ==========================================================================
   SAMDO Premium Stylesheet - 2026 Core Master (Full-Width System)
   ========================================================================== */

:root {
    --samdo-blue: #004a99;
    --samdo-blue-hover: #003670;
    --samdo-orange: #f39200;
    --samdo-orange-hover: #d68100;
    --samdo-bg-light: #f8fafc;
    --samdo-dark: #0f172a;
    --samdo-text-muted: #64748b;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Testimonial Color Palette */
    --testimonial-crimson: #c2410c; 
    --quote-light-grey: #f1f5f9;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #334155;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ==========================================================================
   Typography & Global Overrides
   ========================================================================== */
.text-primary { color: var(--samdo-blue) !important; }
.text-warning { color: var(--samdo-orange) !important; }
.bg-light { background-color: var(--samdo-bg-light) !important; }
.select-none { user-select: none; }

/* Global Buttons */
.btn-primary { 
    background-color: var(--samdo-blue); 
    border-color: var(--samdo-blue); 
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: var(--transition-smooth);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--samdo-blue-hover);
    border-color: var(--samdo-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 74, 153, 0.25);
}

.btn-warning { 
    background-color: var(--samdo-orange); 
    border-color: var(--samdo-orange); 
    color: white !important;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: var(--transition-smooth);
}
.btn-warning:hover, .btn-warning:focus {
    background-color: var(--samdo-orange-hover);
    border-color: var(--samdo-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 146, 0, 0.25);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    transition: var(--transition-smooth);
}
.btn-outline-light:hover {
    transform: translateY(-2px);
    background-color: white;
    color: var(--samdo-dark) !important;
}

/* ==========================================================================
   Header & Navigation Module
   ========================================================================== */
.samdo-top-info { 
    background: var(--samdo-blue); 
    color: rgba(255, 255, 255, 0.9); 
    font-size: 13px; 
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.samdo-top-info a i {
    transition: var(--transition-smooth);
}
.samdo-top-info a:hover i {
    color: var(--samdo-orange) !important;
    transform: scale(1.1);
}

.navbar {
    transition: var(--transition-smooth);
    border-bottom: 1px solid #e2e8f0;
}
.brand-text-wrapper {
    line-height: 1.15;
}
.nav-link {
    color: #475569 !important;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.2s ease;
}
.nav-link:hover {
    color: var(--samdo-blue) !important;
}
@media (min-width: 992px) {
    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 16px;
        background-color: var(--samdo-orange);
        transition: var(--transition-smooth);
    }
    .nav-link:hover::after {
        width: calc(100% - 32px);
    }
}

/* ==========================================================================
   UNIFIED FULL-WIDTH HERO SYSTEM (NO SPLIT)
   ========================================================================== */
#dynamic-hero-target {
    width: 100%;
    height: calc(100vh - 120px);
    min-height: 600px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #0f172a;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    transition: background-image 0.5s ease-in-out;
}

#dynamic-hero-target.hero-image-loaded {
    background-color: #0f172a;
}

/* Elegant dark overlay across the full width to guarantee typography legibility */
#dynamic-hero-target::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.5) 50%, rgba(15, 23, 42, 0.3) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.hero-display-headline {
    font-family: 'Poppins', sans-serif;
    font-size: calc(2rem + 1.8vw);
    font-weight: 600; /* Pronounced bold weighting to read perfectly over changing pictures */
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero-display-lead {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #cbd5e1 !important; /* Soft muted structural accent text color */
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Rounded Pill Button Action Styling */
.btn-hero-action-discover {
    display: inline-block;
    padding: 14px 36px;
    background-color: var(--samdo-orange);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px; 
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(243, 146, 0, 0.3);
}

.btn-hero-action-discover:hover {
    background-color: var(--samdo-orange-hover);
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 146, 0, 0.5);
}

/* ==========================================================================
   About Carousel & Media Module
   ========================================================================== */
#aboutCarousel,
.about-carousel-container {
    width: 100%;
}

#aboutCarousel .carousel-inner {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

/* ==========================================================================
   Program Grid Cards
   ========================================================================== */
.program-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* ==========================================================================
   Testimonial Module Extensions
   ========================================================================== */
.testimonial-minimal-bg {
    background-color: #ffffff !important;
}

.testimonial-minimal-header h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: #1e293b !important;
    font-size: 1.75rem;
    margin-bottom: 3.5rem;
}

.testimonial-container {
    padding: 2rem 0;
    max-width: 850px;
    margin: 0 auto;
}

.testimonial-content-wrapper {
    z-index: 2;
}

.testimonial-body-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.75;
    color: #334155;
    letter-spacing: -0.2px;
    margin-bottom: 2rem;
}

.testimonial-attribution-box {
    margin-top: 1.5rem;
}

.parent-handle {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #dc2626 !important;
    font-size: 1.4rem;
    display: inline-block;
    letter-spacing: -0.3px;
    margin-bottom: 0;
}

.student-subtext {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
}

.custom-testimonial-box {
    max-width: 1000px;
    width: 100%;
    min-height: 220px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
}

.custom-scroll-area {
    max-height: 260px;
    overflow-y: auto;
    padding-bottom: 10px;
}

.custom-scroll-area::-webkit-scrollbar {
    width: 4px;
}
.custom-scroll-area::-webkit-scrollbar-thumb {
    background-color: #f39200;
    border-radius: 10px;
}

/* Transparent Carousels Navigation Controls */
.testimonial-container .carousel-control-prev,
.testimonial-container .carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 50%;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.testimonial-container .carousel-control-prev-icon,
.testimonial-container .carousel-control-next-icon {
    background-image: none !important;
    width: 10px;
    height: 10px;
    border-left: 2px solid var(--samdo-dark);
    border-bottom: 2px solid var(--samdo-dark);
    transform: rotate(45deg);
    transition: var(--transition-smooth);
}

.testimonial-container .carousel-control-next-icon {
    transform: rotate(-135deg);
}

.testimonial-container .carousel-control-prev:hover,
.testimonial-container .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(15, 23, 42, 0.04);
    border-color: var(--samdo-blue);
}

.testimonial-container .carousel-control-prev:hover .carousel-control-prev-icon,
.testimonial-container .carousel-control-next:hover .carousel-control-next-icon {
    border-color: var(--samdo-blue);
}

#testimonialCarousel .carousel-control-prev { left: -55px; }
#testimonialCarousel .carousel-control-next { right: -55px; }

/* ==========================================================================
   Modals UI Framing
   ========================================================================== */
.modal-content {
    border-radius: var(--radius-md);
    border: none;
    overflow: hidden;
}

/* ==========================================================================
   Responsive Viewport Breakpoints Framework
   ========================================================================== */
@media (max-width: 991.98px) {
    .testimonial-container .carousel-control-prev,
    .testimonial-container .carousel-control-next {
        top: auto;
        bottom: -50px;
        transform: none;
    }
    .testimonial-container { padding-bottom: 4rem; }
    
    #testimonialCarousel .carousel-control-prev { left: calc(50% - 55px); }
    #testimonialCarousel .carousel-control-next { right: calc(50% - 55px); }
}

@media (max-width: 768px) {
    #dynamic-hero-target {
        height: auto;
        padding: 6rem 0;
    }
    #dynamic-hero-target::before {
        background: rgba(15, 23, 42, 0.75); /* Darkens evenly across screen ratios on small hardware */
    }
    .hero-content-wrapper {
        text-align: center;
    }
    .hero-display-headline {
        font-size: 2.25rem;
    }
    .hero-display-lead {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .testimonial-body-text { 
        font-size: 1.1rem; 
        line-height: 1.5; 
    }
}
/* ==========================================================================
   SCROLL-TRIGGERED REVEAL ANIMATIONS
   ========================================================================== */
/* The base class added to sections you want to animate on scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px); /* Slides up slightly from 40px below */
    transition: opacity 0.85s cubic-bezier(0.215, 0.610, 0.355, 1), 
                transform 0.85s cubic-bezier(0.215, 0.610, 0.355, 1);
    will-change: opacity, transform;
}

/* The active class appended via JavaScript when scrolled into view */
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Optional fine-tuning: Adds a slight stagger delay to grid content cards */
.reveal-on-scroll .program-card {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.2s;
}

.reveal-on-scroll.revealed .program-card {
    opacity: 1;
    transform: scale(1);
}