/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.fingerprint-scan {
    position: relative;
    width: 100px;
    height: 120px;
    background: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/svgs/solid/fingerprint.svg') no-repeat center center;
    background-size: contain;
    color: #e2e8f0;
    /* Light gray base fingerprint */
    /* Using a mask-like effect via overflow hidden div if needed, 
       but for simplicity we'll use a scanning line and a colored overlay */
}

.fingerprint-icon {
    font-size: 80px;
    color: #e2e8f0;
    position: relative;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--brand-green);
    box-shadow: 0 0 10px var(--brand-green);
    animation: scan 1.5s ease-in-out infinite;
    z-index: 2;
}

.fingerprint-icon::after {
    content: "\f577";
    /* FontAwesome fingerprint unicode */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
    color: var(--brand-green);
    height: 0%;
    overflow: hidden;
    animation: fillGreen 3s linear forwards;
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes fillGreen {
    0% {
        height: 0%;
    }

    100% {
        height: 100%;
    }
}

.loading-text {
    margin-top: 20px;
    font-weight: 600;
    color: var(--brand-green);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.6;
    }

    to {
        opacity: 1;
    }
}

:root {
    --brand-green: #10B981;
    --brand-green-light: #34D399;
    --brand-green-dark: #059669;
}

/* --- Brand Color Utilities --- */
.bg-brand-green {
    background-color: var(--brand-green) !important;
}

.bg-brand-green-light {
    background-color: var(--brand-green-light) !important;
}

.text-brand-green {
    color: var(--brand-green) !important;
}

.link-brand-green {
    color: var(--brand-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-brand-green:hover {
    color: var(--brand-green-dark);
}

/* Accessibility - Font Sizing */
html.font-size-md {
    font-size: 110%;
}

html.font-size-lg {
    font-size: 125%;
}

html.font-size-xl {
    font-size: 140%;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* --- Premium Navigation --- */
.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.25rem 0;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--brand-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Premium Buttons & Aura --- */
.btn-brand-green {
    background: var(--brand-green);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.btn-brand-green:hover {
    background: var(--brand-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    color: white;
}

.btn-aura {
    position: relative;
}

.btn-aura::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(16, 185, 129, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    z-index: -1;
}

.btn-aura:hover::before {
    width: 150%;
    height: 300%;
    opacity: 1;
}

/* --- SVG Divider Styling --- */
.section-divider-curve {
    position: relative;
    line-height: 0;
    width: 100%;
    z-index: 2;
}

.section-divider-curve svg {
    display: block;
    width: 100%;
    height: 60px;
    fill: #ffffff;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #f8f9fa;
    pointer-events: none;
}

.bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
}

.blob-1 {
    top: -100px;
    left: -100px;
    animation: move-blob-1 25s infinite alternate ease-in-out;
}

.blob-2 {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.06) 0%, transparent 70%);
    animation: move-blob-2 30s infinite alternate ease-in-out;
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
    animation: move-blob-3 20s infinite alternate ease-in-out;
}

@keyframes move-blob-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 150px) scale(1.1);
    }
}

@keyframes move-blob-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-150px, -100px) scale(1.2);
    }
}

@keyframes move-blob-3 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, -50px);
    }
}

.text-brand-green {
    color: var(--brand-green) !important;
}

.bg-brand-green {
    background-color: var(--brand-green) !important;
}

.btn-brand-green {
    background-color: var(--brand-green);
    color: white;
    border: none;
}

.btn-brand-green:hover {
    background-color: var(--brand-green-dark);
    color: white;
}

.btn-brand-green:disabled {
    background-color: var(--brand-green);
    color: white;
    opacity: 0.7;
    cursor: not-allowed;
}

.link-brand-green {
    color: var(--brand-green);
    text-decoration: none;
}

.link-brand-green:hover {
    color: var(--brand-green-dark);
    text-decoration: underline;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.date-picker-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.date-picker-scroll::-webkit-scrollbar {
    display: none;
}

/* --- Typing Animation (Desktop Only) --- */
@media (min-width: 992px) {
    .typing-line {
        border-right: 4px solid var(--brand-green);
        white-space: nowrap;
        overflow: hidden;
        animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
    }
}

/* Ensure mobile text wraps normally and has no cursor artifact */
@media (max-width: 991.98px) {
    .typing-line {
        white-space: normal !important;
        border-right: none !important;
        overflow: visible !important;
        animation: none !important;
    }
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--brand-green);
    }
}

/* --- Stat Counter --- */
.stat-item {
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(20px);
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-green) 0%, #059669 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

/* --- Logo Marquee & Accreditation --- */
.accreditation-section {
    position: relative;
    padding: 5rem 0;
    background: radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2.5rem 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    animation: marquee 40s linear infinite;
}

.logo-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 2.5rem;
    margin: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s ease, transform 0.6s ease;
    height: 100px;
    min-width: 220px;
    opacity: 0;
    transform: translateY(20px);
}

.logo-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.logo-card img {
    height: 50px;
    width: auto;
    filter: grayscale(0%) opacity(1);
    transition: all 0.4s ease;
    max-width: 100%;
    object-fit: contain;
}

.logo-card:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* --- Process Section --- */
.process-step {
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
    opacity: 0;
    transform: translateY(20px);
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.1);
}

.process-step.active {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--brand-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    border: 5px solid white;
}

.process-divider {
    height: 2px;
    background: repeating-linear-gradient(to right, #e2e8f0 0, #e2e8f0 10px, transparent 10px, transparent 20px);
    width: 100%;
}

/* --- Floating Background Elements --- */
.floating-icon {
    position: absolute;
    opacity: 0.1;
    z-index: 0;
    animation: float-around 15s infinite alternate ease-in-out;
}

@keyframes float-around {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    33% {
        transform: translateY(-30px) translateX(20px) rotate(5deg);
    }

    66% {
        transform: translateY(20px) translateX(-40px) rotate(-10deg);
    }

    100% {
        transform: translateY(-10px) translateX(30px) rotate(15deg);
    }
}

.floating-1 {
    top: 15%;
    left: 10%;
    font-size: 5rem;
    animation-delay: 0s;
}

.floating-2 {
    top: 60%;
    right: 10%;
    font-size: 8rem;
    animation-delay: 2s;
}

.floating-3 {
    bottom: 20%;
    left: 15%;
    font-size: 4rem;
    animation-delay: 4s;
}

/* --- Glassmorphism --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(16, 185, 129, 0.1);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--brand-green);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* --- Why Choose Us --- */
.feature-card-premium {
    background: white;
    border-radius: 25px;
    padding: 2.5rem;
    /* height: 100%; Removed to allow uneven/staggered look */
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media (min-width: 576px) {
    .stagger-card {
        margin-top: 8rem !important;
    }
}

.feature-card-premium:hover {
    transform: scale(1.03);
    border-color: var(--brand-green);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.08);
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--brand-green);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}


/* --- 3D Book Flip Animation --- */
.book-container {
    perspective: 1500px;
    width: 90%;
    max-width: 1000px;
    height: 700px;
    margin: 50px auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.book {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.page {
    width: 50%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 10px 10px 0;
    z-index: 1;
}

.page.flipped {
    transform: rotateY(-180deg);
    z-index: 2;
    /* Bring to front when flipped */
}

.page-front,
.page-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding: 40px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #e0e0e0;
}

.page-front {
    z-index: 2;
    border-radius: 0 10px 10px 0;
    /* Gradient for spine effect */
    background: linear-gradient(to right, #f0f0f0 0%, #ffffff 5%, #ffffff 100%);
}

.page-back {
    transform: rotateY(180deg);
    z-index: 1;
    border-radius: 10px 0 0 10px;
    /* Gradient for spine effect */
    background: linear-gradient(to left, #f0f0f0 0%, #ffffff 5%, #ffffff 100%);
}

/* Scrollbar styling for pages */
.page-front::-webkit-scrollbar,
.page-back::-webkit-scrollbar {
    width: 6px;
}

.page-front::-webkit-scrollbar-thumb,
.page-back::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}


/* --- Premium Blog Card Styling --- */
.blog-card {
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.2);
}

.blog-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.08);
}

.blog-category-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: white;
    color: var(--brand-green);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: var(--brand-green);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--brand-green);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more-btn i {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover {
    color: var(--brand-green-dark);
}

.read-more-btn:hover i {
    transform: translateX(4px);
}

.book-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--brand-green);
    transition: all 0.3s ease;
}

.book-nav-btn:hover {
    background: var(--brand-green);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -70px;
}

.next-btn {
    right: -70px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .book-container {
        height: auto;
        min-height: 80vh;
        perspective: none;
    }

    .book {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .page {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 400px;
        transform: none !important;
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .page-front,
    .page-back {
        position: relative;
        transform: none !important;
        height: auto;
        border-radius: 10px;
        backface-visibility: visible;
        display: block;
    }

    .page.flipped .page-front {
        display: none;
    }

    /* Hide front when flipped in mobile view if we keep logic */
    /* Actually for mobile, simple list might be better, or stacked cards */
    .page-back {
        display: none;
    }

    /* Show only one side at a time logic */

    .book-nav-btn {
        top: auto;
        bottom: -60px;
    }

    .prev-btn {
        left: 20%;
    }

    .next-btn {
        right: 20%;
    }

    /* --- Background Standard Design --- */
    .bg-blobs-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        pointer-events: none;
        overflow: hidden;
    }

    .bg-blob {
        position: absolute;
        background-color: white;
        border-radius: 50%;
        opacity: 0.5;
        filter: blur(80px);
        z-index: -1;
    }

    .bg-blob-1 {
        top: -10%;
        right: -5%;
        width: 500px;
        height: 500px;
    }

    .bg-blob-2 {
        bottom: -10%;
        left: -10%;
        width: 600px;
        height: 600px;
    }

    /* Page base background */
    .premium-bg {
        background-color: #f8f9fa;
        /* Consistent off-white foundation */
    }
}

/* --- Premium Footer Redesign --- */
.footer-premium {
    background-color: #0f172a;
    /* Dark Navy */
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer-sub-bar {
    background-color: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-sub-bar h4 {
    color: white;
    font-weight: 700;
}

.footer-sub-input {
    background: white;
    border: none;
    border-radius: 4px 0 0 4px;
    padding: 12px 20px;
    width: 300px;
}

.footer-sub-btn {
    background-color: var(--brand-green);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 12px 30px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.footer-sub-btn:hover {
    background-color: var(--brand-green-dark);
}

.footer-col-title {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-col-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--brand-green);
}

.footer-list-item {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-link:hover {
    color: var(--brand-green);
    padding-left: 5px;
}

.footer-link i {
    font-size: 0.8rem;
    margin-right: 8px;
    color: var(--brand-green);
}

.contact-info-item {
    margin-bottom: 1rem;
}

.contact-info-item i {
    color: var(--brand-green);
    font-size: 1.1rem;
    width: 25px;
}

.social-icon-circle {
    width: 40px;
    height: 40px;
    background-color: white;
    color: #0f172a;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icon-circle:hover {
    background-color: var(--brand-green);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    font-size: 0.85rem;
}

/* --- Elite Testimonials & Stars --- */
.testimonial-card {
    background: rgba(255, 255, 255, 1);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    border-color: var(--brand-green-light);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.1);
    transform: translateY(-8px);
}

.star-rating {
    color: #FFD700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.review-author {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.author-initials {
    width: 45px;
    height: 45px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--brand-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-google {
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-google:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: scale(1.05);
}

/* --- Blog Card Image Effects --- */
.card img {
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.1);
}

/* --- Hover Scale Utility --- */
.hover-scale {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-scale:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.hover-scale:hover .bg-light {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: var(--brand-green);
}

.hover-scale:hover .btn-outline-brand-green {
    background-color: var(--brand-green);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* --- Horizontal Accordion Styles --- */
.accordion-wrapper {
    width: 100%;
    margin: 0 auto;
}

.accordion-card {
    flex: 1;
    cursor: pointer;
    border-radius: 1.5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    min-width: 60px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Update: Only expand on active class, NOT hover */
.accordion-card.active {
    flex: 6;
    cursor: default;
}

/* Number Styling */
.accordion-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    opacity: 0.8;
}

.accordion-card.active .accordion-number {
    background: var(--brand-green);
    color: white !important;
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.accordion-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, transparent 60%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}

.accordion-card:hover .overlay,
.accordion-card.active .overlay {
    background: linear-gradient(to bottom, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
}

.accordion-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
    transition-delay: 0.1s;
    white-space: nowrap;
    width: 100%;
    z-index: 2;
    position: absolute;
    bottom: 0;
    left: 0;
    text-align: left;
}

.accordion-card:hover .accordion-content,
.accordion-card.active .accordion-content {
    opacity: 1;
    transform: translateY(0);
}

.accordion-card:hover .accordion-content h3,
.accordion-card:hover .accordion-content p,
.accordion-card:hover .accordion-content .description,
.accordion-card.active .accordion-content h3,
.accordion-card.active .accordion-content p,
.accordion-card.active .accordion-content .description {
    white-space: normal;
}

.accordion-card:hover .accordion-content .description,
.accordion-card.active .accordion-content .description {
    display: block;
    opacity: 0.9;
}

.accordion-card .icon-circle {
    transition: transform 0.4s ease;
}

.accordion-card:hover .icon-circle,
.accordion-card.active .icon-circle {
    transform: scale(1.1) rotate(5deg);
}

@media (max-width: 768px) {
    .accordion-wrapper {
        flex-direction: column;
        height: 700px !important;
        /* Increased height for vertical stacking */
    }

    .accordion-card {
        width: 100%;
        min-height: 80px;
        flex: 1;
    }

    .accordion-card:hover,
    .accordion-card.active {
        flex: 10;
        /* Give considerably more space to active card on mobile */
    }

    .accordion-content {
        padding: 1.5rem !important;
    }

    .accordion-content h3 {
        font-size: 1.3rem;
    }

    .accordion-number {
        width: 40px;
        height: 40px;
        font-size: 1rem !important;
        margin: 1rem !important;
    }

    /* Scroll Reveal Mobile Tweaks */
    .reveal-text {
        font-size: 1.75rem !important;
        /* Down from display-3 */
        line-height: 1.4 !important;
    }

    .text-reveal-section .fa-fingerprint {
        font-size: 200px !important;
        /* Override inline 400px */
    }

    .text-reveal-section {
        min-height: 50vh !important;
    }

    /* --- Global Mobile Typography Fixes --- */
    h1,
    .display-1,
    .display-2,
    .display-3 {
        word-wrap: break-word;
        /* Prevent overflow */
        overflow-wrap: break-word;
    }

    .display-3 {
        font-size: 2.2rem !important;
        /* Drastically reduce from desktop size */
        line-height: 1.2 !important;
    }

    .display-4 {
        font-size: 2rem !important;
    }

    .display-5 {
        font-size: 1.75rem !important;
    }

    /* Hero Section Specifics */
    .lead {
        font-size: 1rem !important;
        /* Smaller body text */
    }

    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
        width: 100%;
        /* Full width buttons on mobile for easier tapping */
    }

    /* Adjust container padding to prevent edge touching */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Stats Section Grid */
    .stat-item .stat-number {
        font-size: 2rem;
        /* Reduce if needed */
    }

    /* --- Marquee Logos Mobile Fix --- */
    .logo-card {
        height: 70px !important;
        min-width: 160px !important;
        padding: 0.75rem 1.5rem !important;
        margin: 0 0.75rem !important;
    }

    .logo-card img {
        height: 35px !important;
        /* Scale down from 50px */
    }

    .accreditation-section {
        padding: 3rem 0 !important;
        /* Reduce vertical padding */
    }

    .tracking-widest {
        font-size: 0.7rem !important;
        /* Smaller header text */
    }
}

/* Scroll Reveal Text Effect */
.text-reveal-section {
    position: relative;
}

.reveal-text {
    /* The magic gradient: Black/Dark on left, Light Gray on right */
    background-image: linear-gradient(to right,
            #000000 0%,
            #000000 var(--scroll),
            #d1d5db var(--scroll),
            #d1d5db 100%);

    /* Clip background to text */
    -webkit-background-clip: text;
    background-clip: text;

    /* Make text transparent so background shows through */
    color: transparent;

    /* Smooth out the update jitter */
    transition: --scroll 0.1s linear;

    /* Improve font rendering */
    -webkit-font-smoothing: antialiased;
}