/* Theme-aware override for all card titles and texts */
.theme-aware-title {
    color: var(--text-primary) !important;
    transition: color 0.3s;
}
.theme-aware-text {
    color: var(--text-secondary) !important;
    transition: color 0.3s;
}
body.dark-mode .theme-aware-title {
    color: #fff !important;
}
body.dark-mode .theme-aware-text {
    color: rgba(255,255,255,0.85) !important;
}
/* Theme-aware override for The Literacy Haven Ltd. card */
.about-content-overlay .theme-aware-title {
    color: var(--text-primary) !important;
    transition: color 0.3s;
}
.about-content-overlay .theme-aware-text {
    color: var(--text-secondary) !important;
    transition: color 0.3s;
}
body.dark-mode .about-content-overlay .theme-aware-title {
    color: #fff !important;
}
body.dark-mode .about-content-overlay .theme-aware-text {
    color: rgba(255,255,255,0.85) !important;
}
/* Guaranteed gradient background for About Us page using pseudo-element */
.about-page::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    background: linear-gradient(135deg, #87ceeb 0%, #a259f7 100%) !important;
    pointer-events: none;
}
/* Force gradient background for About Us page on html and body */
html.about-page, body.about-page {
    background: linear-gradient(135deg, #87ceeb 0%, #a259f7 100%) !important;
}
/* Force blog gradient background for About page */
/* Match cart page diagonal gradient background for About page */
.about-page {
    background: linear-gradient(135deg, #87ceeb 0%, #a259f7 100%) !important;
    overflow-x: hidden;
}
/* General About Page Styles */
.about-page-section {
    padding: 80px 0px;
}

/* Apply Home page title styling to About page */
.about-page .sec-title {
    font-size: 63px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
    font-family: 'Baloo 2', cursive;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.about-page .sub-title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: -20px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
    .about-page .sec-title {
        font-size: 32px !important;
    }
    .about-page .sub-title {
        font-size: 20px !important;
        margin-bottom: -25px !important;
    }
    .about-page .about-page-section.has-plain-background .sec-title {
        font-size: 1.55rem !important;
        padding-top: 2px;
        margin-top: -30px;
        padding-bottom: 10px !important;
        margin-bottom: 0 !important;
    }
    .about-page .about-page-section.has-plain-background .text-center.mb-5 {
        margin-bottom: 0 !important;
    }
}

/* Apply Home page title styling */
.about-page .title-area {
    margin-bottom: 40px;
    text-align: center;
}

.about-page .title-area .sub-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
    font-family: 'Baloo 2', cursive;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.about-page .title-area .sec-title,
.about-page .sec-title {
    font-size: 63px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
    font-family: 'Baloo 2', cursive;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
    .about-page .title-area .sec-title,
    .about-page .sec-title {
        font-size: 32px;
    }
    .about-page .title-area .sub-title {
        font-size: 16px;
        margin-bottom: 5px;
    }
}

.about-page-section:last-of-type {
    padding-bottom: 120px;
}

/* Push company cards section higher by 100px */
.about-page .about-section-full-bg {
    padding-top: 0px !important;
    margin-top: -50px;
}

/* Hero Section Overrides */
.page-background::before {
    /* Add a subtle dark gradient to improve text readability */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)) !important; /* Reduced overlay darkness */
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.page-header .page-header-title {
    font-size: 3rem;
    margin-bottom: 0rem;
    margin-top: 10px;
    color: #fff;
    /* Animation */
    opacity: 0;
    animation: slide-fade-in 1s ease-out 0.5s forwards;
}

.page-header .page-header-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    /* Animation */
    opacity: 0;
    animation: slide-fade-in 1s ease-out 0.8s forwards;
}

/* CRITICAL: Override page-header padding specifically for about page */
.about-page .page-header {
    padding: 20px 0 40px 0 !important;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
}

.about-page .page-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Founder Section */
.founder-section {
    background-color: var(--bg-secondary); /* Use theme variable for light/dark mode consistency */
}

.founder-image-wrapper {
    position: relative;
}

.founder-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.founder-image-wrapper:hover .founder-image {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
}

.intro-text-content {
    text-align: justify;
    background-color: var(--bg-primary);
    padding: 15px 40px 40px; /* Reduced top padding to move name higher */
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    position: relative;
}

.founder-name {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary); /* Corrected from previous change */
    margin-bottom: 0; /* Remove bottom margin to bring title closer */
}

.founder-title {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* Apply animation only when the parent container is visible */
.animate-on-scroll.is-visible .anim-slide-fade-in {
    animation: slide-fade-in 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Staggered animation delays */
.animate-on-scroll.is-visible .founder-name { animation-delay: 0.2s; }
.animate-on-scroll.is-visible .founder-title { animation-delay: 0.4s; }
.animate-on-scroll.is-visible .sec-desc:nth-of-type(3) { animation-delay: 0.6s; }
.animate-on-scroll.is-visible .sec-desc:nth-of-type(4) { animation-delay: 0.7s; }
.animate-on-scroll.is-visible .sec-desc:nth-of-type(5) { animation-delay: 0.8s; }
.animate-on-scroll.is-visible .sec-desc:nth-of-type(6) { animation-delay: 0.9s; }

.founder-name, .founder-title, .intro-text-content .sec-desc {
    opacity: 0; /* Start as invisible before animation */
}

/* Keyframe animation for the founder's name */
@keyframes slide-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mission and Vision Section */
.mission-vision-content {
    text-align: center;
    padding: 35px 30px;
    background-color: rgba(var(--bg-primary-rgb), 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    height: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mission-vision-content:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.mission-vision-content .box-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.mission-vision-content:hover .box-icon {
    transform: rotate(15deg) scale(1.1);
}

.mission-vision-content .box-title {
    font-family: 'Baloo 2', cursive;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: color 0.3s ease;
}

.mission-vision-content:hover .box-title {
    color: var(--primary);
}

body.dark-mode .mission-vision-content .box-title {
    color: #fff; /* Keep text white in dark mode */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.mission-vision-content .box-text {
    font-size: 1.1rem;
    color: var(--text-secondary); /* Use theme variable for light/dark mode */
}

body.dark-mode .mission-vision-content .box-text {
    color: rgba(255, 255, 255, 0.85); /* Keep text light in dark mode */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* Core Values Section */
.about-page-section .sec-title {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    transition: color 0.3s ease, transform 0.25s ease, letter-spacing 0.25s ease;
}

.team-intro-text {
    background: transparent;
    border: 2px solid rgba(var(--primary-rgb), 0.45);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    max-width: 200px;
    margin: 0 auto;
    background: rgba(var(--bg-primary-rgb), 0.65);
    min-height: 150px;
    text-align: center;
}

.team-intro-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.team-intro-body {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.55;
    text-align: center;
}

/* Core Values Section */
.value-card {
    background-color: rgba(var(--bg-primary-rgb), 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 35px 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.value-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.value-card .box-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.value-card:hover .box-icon {
    transform: rotate(15deg) scale(1.1);
}

.value-card .box-title {
    font-family: 'Baloo 2', cursive;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: color 0.3s ease;
}

.value-card:hover .box-title {
    color: var(--primary);
}

body.dark-mode .value-card .box-title {
    color: #fff; /* Keep text white in dark mode */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.value-card .box-text {
    color: var(--text-secondary); /* Use theme variable for light/dark mode */
}

body.dark-mode .value-card .box-text {
    color: rgba(255, 255, 255, 0.8); /* Keep text light in dark mode */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .intro-text-content {
        margin-left: 0;
        margin-top: 0; /* Adjusted to remove negative margin for better alignment */
        padding: 30px;
    }

    .founder-image-wrapper {
        padding: 0 20px; /* Add some horizontal padding to the image */
    }
}

/* ==================== TABBED SECTION STYLES ==================== */
.tabbed-section {
    padding: 80px 0;
}

.tabbed-section .title-area {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px;
    margin-bottom: 60px;
    background-color: rgba(var(--bg-primary-rgb), 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tabbed-section .sec-title {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0;
    font-family: 'Baloo 2', cursive;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    display: none; /* Hide on desktop */
}

.tabbed-section .sub-title {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0px;
    color: var(--text-primary);
    margin-bottom: 20px;
    margin-top: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    text-align: center;
    font-family: 'Baloo 2', cursive;
    transition: transform 0.25s ease, letter-spacing 0.25s ease, color 0.25s ease;
    line-height: 1.2;
}

.tabbed-section .title-area:hover .sub-title {
    color: var(--secondary);
    transform: translateY(-2px) scale(1.02);
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .tabbed-section .sub-title {
        font-size: 1.8rem !important;
    }
}

.tabbed-section .sec-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 10px auto 0;
    max-width: 700px;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(var(--bg-primary-rgb), 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    color: var(--text-primary);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    justify-content: center;
}

.tab-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.tab-btn:hover i {
    transform: scale(1.2);
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.4);
}

.tab-btn.active i {
    transform: scale(1.1);
}

/* Tab Content Wrapper */
.tab-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 300px;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab Inner Content */
.tab-inner {
    background-color: rgba(var(--bg-primary-rgb), 0.7);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tab-inner:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    background-color: rgba(var(--bg-primary-rgb), 0.9);
}

.tab-icon-wrapper {
    font-size: 3rem;
    color: var(--primary);
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    margin: 0 auto 15px auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    animation: float-pulse 3s ease-in-out infinite;
}

.tab-main-icon {
    font-size: 2rem;
    color: var(--primary);
}

.tab-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, letter-spacing 0.25s ease, color 0.25s ease;
}

.tab-inner:hover .tab-title {
    color: var(--secondary);
    transform: translateY(-2px) scale(1.02);
    letter-spacing: 0.5px;
}

.tab-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

body.dark-mode .tab-text {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.value-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

body.dark-mode .value-text {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 10px;
}

.value-item {
    text-align: center;
    padding: 25px;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.value-item:hover .value-icon-wrapper {
    background: rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
    transform: translateY(-3px);
}

.value-icon-wrapper i {
    font-size: 2rem;
    color: var(--primary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.value-item:hover .value-icon-wrapper i {
    color: var(--primary);
    transform: scale(1.1);
}

.value-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.value-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

body.dark-mode .value-text {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

@media (max-width: 767.98px) {
    /* NUCLEAR override: Strip all Bootstrap grid behavior on mobile */
    .about-page .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .about-page .row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .about-page [class*="col-"] {
        flex: none !important;
        max-width: none !important;
        width: 90% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 20px !important;
        display: flex !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* Override company info row to stack vertically */
    .company-info-row {
        flex-direction: column !important;
        align-items: center !important;
    }

    .company-highlight-col {
        width: 90% !important;
        margin: 0 auto 20px auto !important;
        flex: none !important;
        max-width: 90% !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .company-highlight-col:last-child {
        margin-bottom: 0 !important;
    }

    .company-info-col {
        width: 90% !important;
        flex: none !important;
        max-width: 90% !important;
        padding: 0 !important;
        margin: 0 auto 20px auto !important;
        display: flex !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
    
    .about-page .company-info-col {
        width: 90% !important;
        max-width: 90% !important;
    }

    .company-highlight-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 25px !important;
    }

    .about-page .about-content-overlay {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 30px !important;
        box-sizing: border-box !important;
    }

    /* Mobile hover/active effects for cards */
    .company-highlight-card,
    .about-content-overlay {
        transition: all 0.3s ease;
    }

    .company-highlight-card:active,
    .about-content-overlay:active {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25) !important;
        background-color: rgba(var(--bg-primary-rgb), 0.9) !important;
    }

    .page-header {
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        text-align: center !important;
        box-sizing: border-box !important;
        left: 0 !important;
        right: 0 !important;
    }

    .page-header .container {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .page-header .page-header-title {
        font-size: 2.5rem !important;
        text-align: center !important;
        margin: 0 !important;
        margin-top: 55px !important;
        padding-top: 20px !important;
        color: #fff !important;
    }
    
    /* Exception for subjects page - use transform instead of margin */
    .subjects-main-content .page-header .page-header-title {
        font-size: 2rem !important;
        margin-top: 25px !important;
        padding-top: 0 !important;
        transform: translateY(-10px) !important;
    }

    .page-header .page-header-subtitle {
        text-align: center !important;
    }

    .intro-text-content,
    .mission-vision-content,
    .value-card {
        width: 100% !important;
        max-width: 85% !important;
        margin: 0 auto 20px auto !important;
        padding: 30px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    .intro-text-content .sec-desc {
        text-align: center !important;
    }

    .mission-vision-content .box-text {
        text-align: center !important;
    }

    .founder-name,
    .founder-title {
        text-align: center !important;
    }

    .founder-image-wrapper {
        display: flex !important;
        justify-content: center !important;
        padding: 0 15px !important;
    }

    .founder-image {
        max-width: 100% !important;
        margin: 0 !important;
        display: block !important;
    }

    /* Widen team intro text blocks on mobile */
    .team-intro-text {
        max-width: 80% !important;
    }

    /* Adjust team-title on mobile */
    .team-title {
        font-size: 1.4rem !important;
    }

    /* Change hover hint text for mobile - show tap instead of hover */
    .team-hover-hint .hint-text {
        visibility: hidden;
        position: relative;
    }

    .team-hover-hint .hint-text::before {
        content: "Tap to learn more";
        visibility: visible;
        position: absolute;
        left: 0;
        white-space: nowrap;
    }

    /* Restore management team card sizing on mobile (about page only) */
    .about-page .about-page-section .team-box {
        border-radius: 12px !important;
    }

    .about-page .about-page-section .team-img img {
        max-height: none !important;
        aspect-ratio: 1 / 1 !important;
    }

    .about-page .about-page-section .team-info {
        padding: 10px 15px 15px !important;
    }

    .about-page .about-page-section .team-title {
        font-size: 20px !important;
        margin-bottom: 4px !important;
    }

    .about-page .about-page-section .team-desig {
        font-size: 16px !important;
        line-height: 1.3 !important;
        margin: 0 0 8px 0 !important;
    }

    /* Tabbed Section Mobile Styles */
    .tabbed-section {
        padding: 50px 0;
    }

    .tabbed-section .title-area {
        padding: 5px 20px;
        margin-bottom: 40px;
        width: 90% !important;
        max-width: 90% !important;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    .tabbed-section .sec-title {
        font-size: 28px;
        margin-bottom: 0;
        margin-top: 15px;
        display: none; /* Hide on mobile too */
    }

    .tabbed-section .sub-title {
        font-size: 16px;
        margin-bottom: 10px;
        margin-top: 10px;
        padding-bottom: 20px;
    }

    .tabbed-section .sec-desc {
        font-size: 1rem;
    }

    .tab-content-wrapper {
        width: 90%;
        margin: 0 auto;
    }

    .tab-navigation {
        gap: 6px;
        padding: 0 5px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .tab-btn span {
        display: inline;
    }

    .tab-btn i {
        font-size: 0.85rem;
        margin-right: 3px;
    }

    .tab-inner {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .tab-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .tab-main-icon {
        font-size: 2rem;
    }

    .tab-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .tab-text {
        font-size: 1rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .value-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .value-icon-wrapper i {
        font-size: 1.6rem;
    }

    .value-title {
        font-size: 1.2rem;
    }

    .value-text {
        font-size: 0.9rem;
    }
}


/* Override container positioning to allow absolute positioning relative to the full header */
.page-header .container {
    position: static !important;
}

/* About page centering and consistent card radii */
.about-page .page-header .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.about-page .page-header .page-header-title,
.about-page .page-header .page-header-subtitle {
    text-align: center;
}

/* Desktop centering for sections */
.about-page .about-page-section .container,
.about-page .about-section-full-bg .container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-page .about-page-section .row,
.about-page .about-section-full-bg .row {
    justify-content: center !important;
}

.about-page .mission-vision-content,
.about-page .intro-text-content,
.about-page .value-card,
.about-page .about-content-overlay {
    text-align: center;
}

/* Ensure frosty card is available on About page (reuse home styles) */
.about-page .about-content-overlay {
    background-color: rgba(var(--bg-primary-rgb), 0.7);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

    /* Soften middle card title on mobile */
    .about-content-overlay .box-title {
        font-size: 1.55rem !important;
        font-weight: 700 !important;
    }

.about-page .about-content-overlay:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    background-color: rgba(var(--bg-primary-rgb), 0.9);
}

.about-page .about-content-overlay .box-icon {
    font-size: 3rem;
    color: var(--primary);
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    margin: 0 auto 15px auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    align-self: center;
    animation: float-pulse 3s ease-in-out infinite;
}

.about-page .about-content-overlay .box-title,
.about-page .about-content-overlay .box-text {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.about-page .about-content-overlay .box-title {
    font-size: 1.75rem;
    font-weight: 800;
    transition: transform 0.25s ease, letter-spacing 0.25s ease;
}

.about-page .about-content-overlay:hover .box-title {
    color: var(--secondary);
    transform: translateY(-2px) scale(1.02);
    letter-spacing: 0.5px;
}

@media (max-width: 767px) {
    /* Reduce middle company card title on mobile only */
    .about-page .about-content-overlay .box-title {
        font-size: 1.36rem !important;
        line-height: 1.2 !important;
    }

    /* Reduce expansion effect on mobile for middle company card title */
    .about-page .about-content-overlay:hover .box-title {
        transform: translateY(-1px) scale(1.005);
        letter-spacing: 0.25px;
    }
}

/* Company highlight cards on desktop with sleek animations */
.company-highlight-card {
    background-color: rgba(var(--bg-primary-rgb), 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    opacity: 0;
    animation: fadeSlideIn 0.8s ease-out forwards;
}

.company-highlight-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    background-color: rgba(var(--bg-primary-rgb), 0.9);
}

.company-highlight-card:nth-child(1) {
    animation-delay: 0.1s;
}

.company-highlight-card:nth-child(3) {
    animation-delay: 0.2s;
}

.company-highlight-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.company-highlight-card .highlight-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
    transition: transform 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

@keyframes float-pulse {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px) scale(1.03); }
    100% { transform: translateY(0); }
}

.company-highlight-card:hover .highlight-icon {
    transform: rotateY(360deg) scale(1.1);
}

.company-highlight-card .highlight-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 15px 0 10px 0;
    transition: color 0.3s ease, transform 0.25s ease, letter-spacing 0.25s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.company-highlight-card:hover .highlight-title {
    color: var(--primary);
    transform: translateY(-2px) scale(1.02);
    letter-spacing: 0.5px;
}

.company-highlight-card .highlight-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Remove Bootstrap column padding for company cards */
.about-page .col-lg-3,
.about-page .col-lg-6,
.about-page .col-md-4,
.about-page .col-md-8,
.about-page .col-sm-6,
.about-page .col-sm-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Desktop alignment for company info section */
@media (min-width: 992px) {
    .about-page .about-section-full-bg .container {
        max-width: 1320px !important;
        width: 100%;
    }

    .company-info-row {
        display: flex !important;
        align-items: stretch !important;
        gap: 20px !important;
        margin: 0 !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .company-highlight-col {
        flex: 0 0 calc(15% + 20px) !important;
        padding: 0 !important;
        margin: 0 !important;
        width: auto !important;
        display: flex;
    }

    .company-info-col {
        flex: 0 0 calc(60% - 40px) !important;
        padding: 0 !important;
        margin: 0 !important;
        width: auto !important;
        display: flex;
    }

    .company-highlight-card {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0px 20px !important;
        min-height: 360px !important;
        flex: 1 1 auto;
    }
    
    .about-content-overlay {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 40px !important;
        min-height: 360px !important;
        flex: 1 1 auto;
    }
}

/* Consistent 15px radii across cards */
.about-page .mission-vision-content { border-radius: 15px; }
.about-page .value-card { border-radius: 15px; }
.about-page .team-box { border-radius: 15px; }
.about-page .team-img,
.about-page .team-img img,
.about-page .team-bio-overlay { border-radius: 15px 15px 0 0; }

/* Team Card Hover Hint */
.team-hover-hint {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--primary);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.team-hover-hint i {
    font-size: 0.8rem;
    animation: bounce-up 1.5s infinite;
}

@keyframes bounce-up {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.team-box:hover .team-hover-hint {
    opacity: 1;
    color: var(--secondary);
}

/* Team Title and Designation Styling */
.team-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 5px 0;
    transition: transform 0.25s ease, letter-spacing 0.25s ease, color 0.25s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.team-box:hover .team-title {
    color: var(--secondary);
    transform: translateY(-2px) scale(1.02);
    letter-spacing: 0.5px;
}

/* Make John Ajah's name turn blue on hover */
.team-box.director-card:hover .team-title {
    color: var(--primary);
}

.team-desig {
    font-size: 1rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0;
}

.team-desig-executive {
    color: var(--text-secondary) !important;
}

.team-desig-director {
    color: var(--text-secondary) !important;
}

/* Enhanced Team Box Shadow */
.team-box {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.team-box:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* --- Hero Social Icons --- */
.hero-social-links {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% + 40px));
    left: 95px !important;
    right: auto !important;
    z-index: 10;
    display: flex;
    flex-direction: row;
    gap: 15px;
}

/* Frosty Glass Social Icons */
.hero-social-links .social-icon {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
    width: 45px; /* Default desktop size */
    height: 45px;
    line-height: 45px;
    margin: 0 5px;
    font-size: 1.2rem;
}

/* Specific Brand Colors (Glassy) */
.hero-social-links .social-icon.facebook { background: rgba(24, 119, 242, 0.2); border-color: rgba(24, 119, 242, 0.3); }
.hero-social-links .social-icon.instagram { background: rgba(225, 48, 108, 0.2); border-color: rgba(225, 48, 108, 0.3); }
.hero-social-links .social-icon.linkedin { background: rgba(0, 119, 181, 0.2); border-color: rgba(0, 119, 181, 0.3); }

/* Hover Effects */
.hero-social-links .social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.hero-social-links .social-icon.facebook:hover { background: rgba(24, 119, 242, 0.7); border-color: rgba(24, 119, 242, 0.9); }
.hero-social-links .social-icon.instagram:hover { background: rgba(225, 48, 108, 0.7); border-color: rgba(225, 48, 108, 0.9); }
.hero-social-links .social-icon.linkedin:hover { background: rgba(0, 119, 181, 0.7); border-color: rgba(0, 119, 181, 0.9); }

/* Ensure icons are centered in the circle */
.hero-social-links .social-icon i {
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 767px) {
    .hero-social-links {
        position: static !important;
        transform: none !important;
        left: auto !important;
        bottom: auto !important;
        justify-content: center;
        margin-top: 5px;
        margin-bottom: 20px;
        padding-bottom: 15px;
        gap: 10px;
    }
    .hero-social-links .social-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}