/* Page specific overrides or extra styles */
.page-hero {
    background: linear-gradient(to bottom, transparent 60%, rgba(10, 28, 45, 0.85)), url("images/Edited group 1.avif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Removed background-attachment: fixed as it causes scroll performance issues/sticking */
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    color: #ffffff;
    padding: 0 20px 80px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-hero .hero-content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 800px;
}

.page-hero .hero-content h1 {
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    font-size: 52px;
    font-weight: 700;
}



.page-hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    opacity: 0.9;
}

.who-section {
    padding: 80px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.who-inner {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
}

.who-slide {
    display: none;
    width: 100%;
    text-align: center;
}

.who-slide.active {
    display: block;
    animation: fadeInBlur 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, filter, transform;
}

@keyframes fadeInBlur {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.who-slide h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #000000;
}

.who-box p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.who-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 188, 212, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(0, 188, 212, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.who-btn:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.who-prev {
    left: -60px;
}

.who-next {
    right: -60px;
}

@media (max-width: 1240px) {
    .who-section {
        padding: 80px 40px;
    }

    .who-prev {
        left: -10px;
    }

    .who-next {
        right: -10px;
    }
}

.who-dots {
    text-align: center;
    margin-top: 30px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--accent-color);
    transform: scale(1.3);
}

.founder-layout {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}

.founder-content {
    flex: 1.5;
}

.founder-content p {
    font-style: italic;
    font-size: 20px !important;
    line-height: 1.8;
    color: var(--text-dark);
    position: relative;
    padding-left: 40px;
}

.founder-content p::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 60px;
    color: var(--accent-color);
    opacity: 0.3;
}

.founder-info {
    margin-top: 20px;
    font-size: 18px;
}

.founder-image-container {
    flex: 1;
}

.founder-portrait {
    width: 100%;
    max-width: 400px;
    transition: var(--transition);
    border-radius: 4px;
}

.founder-portrait:hover {
    transform: translateY(-10px);
}

.values-outer-wrapper {
    background-color: #ffffff;
    padding: 60px 0;
}

.values-container {
    background-color: #FFFDFA !important;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.values-title {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Poppins', sans-serif;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    width: 100%;
    padding: 20px 0;
}

@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: transparent;
    transition: var(--transition);
}

.logo-item img {
    height: 100px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(0.8);
    transition: var(--transition);
}

.logo-item:hover img {
    filter: grayscale(0);
    transform: translateY(-5px);
}

.logo-item span {
    margin-top: 15px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    font-size: 16px;
}

.card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #000000;
}

/* Business Approach Accordion Styles */
.approach-process {
    padding: 100px 5%;
    background: var(--bg-light);
    text-align: center;
}

.accordion-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 400px;
    gap: 15px;
    margin: 20px auto 0;
}

.accordion-item {
    position: relative;
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-size: cover;
    background-position: center;
    background-color: #2c3e50;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.accordion-item::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Light gradient for active item so black text is legible */
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 40%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.accordion-item.active::after {
    opacity: 1;
}

.accordion-item::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Dark gradient for inactive items */
    background: linear-gradient(to top, rgba(10, 31, 68, 0.9) 0%, rgba(10, 31, 68, 0.4) 100%);
    transition: opacity 0.5s ease;
}

.accordion-item.active::before {
    opacity: 0;
}

.inactive-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.inactive-content i {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.vertical-title {
    color: #f8fafc;
    /* Brand light background color (off-white) */
    font-weight: 500;
    font-size: 18px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    letter-spacing: 1px;
}

.active-content {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
    pointer-events: none;
    width: 300px;
    text-align: left;
}

.accordion-item.active {
    flex: 4;
}

.accordion-item.active .inactive-content {
    opacity: 0;
    pointer-events: none;
}

.accordion-item.active .active-content {
    opacity: 1;
    pointer-events: auto;
}

.active-content h3 {
    color: #000000;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.active-content p {
    color: #333333;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .accordion-container {
        flex-direction: column;
        height: auto;
    }

    .accordion-item {
        flex: none !important;
        height: 80px !important;
        transition: height 0.5s ease;
    }

    .accordion-item.active {
        height: 300px !important;
        flex: none !important;
    }

    .vertical-title {
        writing-mode: horizontal-tb;
        transform: none;
        margin-left: 15px;
    }

    .inactive-content {
        flex-direction: row;
        padding: 0 30px;
        align-items: center;
    }

    .inactive-content i {
        margin-bottom: 0;
    }

    .accordion-item::before {
        background: linear-gradient(to right, rgba(10, 31, 68, 0.9) 0%, rgba(10, 31, 68, 0.4) 100%);
    }

    .accordion-item::after {
        background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 60%, rgba(0, 0, 0, 0) 100%);
    }

    .active-content {
        top: auto;
        bottom: 30px;
        transform: none;
        width: calc(100% - 60px);
        left: 30px;
    }
}


/* SIMPLE WHY CHOOSE STYLES */
.why-choose-section {
    padding: 100px 5%;
    background: var(--white);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.why-item {
    background: var(--bg-light);
    padding: 35px 25px;
    border-radius: 20px;
    transition: all 0.4s ease;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why-item:hover {
    transform: translateY(-8px);
    background: var(--white);
    box-shadow: 0 15px 35px rgba(10, 31, 68, 0.08);
    border-color: var(--accent-color);
}

.why-item.reveal-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.why-icon-box {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.why-item:hover .why-icon-box {
    transform: scale(1.1);
}

.why-icon-box img,
.why-icon-box i {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.why-icon-box i {
    font-size: 56px;
    color: var(--accent-color);
}

.why-item:hover .why-icon-box i {
    color: var(--primary-color);
}

.why-item b {
    display: block;
    font-size: 18px;
    color: #000000;
    margin-bottom: 12px;
    font-weight: 600;
}

.why-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Keep original why styles for other pages if needed, but here we use specific names */

.goals-section {
    padding: 80px 5%;
    background-color: var(--white);
    text-align: center;
}

.section-main-title {
    font-size: 36px;
    color: #000000;
    margin-bottom: 50px;
    font-weight: 700;
}

.goals-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.goal-card {
    flex: 0 1 calc(25% - 30px);
    /* Set base width to 25% minus the gap to approximate the 4 column grid */
    min-width: 260px;
    max-width: 300px;
    /* Ensure they don't get too slim on medium screens */
    position: relative;
    overflow: hidden;
    padding: 0;
    /* Remove padding to let image fill */
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease-out;
    will-change: transform, opacity;
    aspect-ratio: 1/1;
    /* Keep it square for the overlay look */
}

.goal-card.reveal-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.goal-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.goal-icon {
    width: 100%;
    height: 100%;
}

.goal-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.goal-card:hover .goal-icon img {
    transform: scale(1.1);
}

.goal-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 68, 0.95);
    /* Dark theme matching hero */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-dark);
    backdrop-filter: blur(5px);
}

.goal-card:hover .goal-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.goal-content h3 {
    font-size: 18px;
    /* Slightly smaller title for smaller card */
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.goal-content p {
    font-size: 13px;
    /* Slightly smaller text */
    color: #cbd5e0;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 1024px) {
    .who-prev {
        left: -5px;
    }

    .who-next {
        right: -5px;
    }

    .founder-layout {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .founder-content p {
        padding-left: 0;
    }

    .founder-content p::before {
        display: none;
    }

    .grid-3,
    .why-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 35vh !important;
        padding: 0 15px 40px !important;
        margin-bottom: 20px !important;
        justify-content: center !important;
    }

    .page-hero .hero-content h1 {
        font-size: clamp(24px, 6vw, 36px) !important;
    }

    .who-section {
        padding: 40px 0 !important;
    }

    .who-inner {
        min-height: auto !important;
    }

    .who-slide h2 {
        font-size: 26px !important;
        margin-bottom: 15px !important;
    }

    .who-box p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .who-box.founder-layout {
        gap: 20px !important;
    }

    .who-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }

    .grid-3,
    .why-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .why-choose-section {
        padding: 40px 15px !important;
    }

    .why-item {
        padding: 24px 16px !important;
    }

    .why-icon-box {
        margin-bottom: 15px !important;
    }

    .why-icon-box img {
        width: 70px !important;
        height: 70px !important;
    }

    .why-icon-box i {
        width: 70px !important;
        height: 70px !important;
        font-size: 40px !important;
    }

    .why-item b {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .goals-section {
        padding: 40px 15px !important;
    }

    .section-main-title {
        font-size: 26px !important;
        margin-bottom: 30px !important;
    }

    .goals-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .goal-card {
        flex: none !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .approach-process {
        padding: 40px 15px !important;
    }

    .accordion-container {
        flex-direction: column !important;
        height: auto !important;
        display: flex !important;
        gap: 12px !important;
    }

    .accordion-item {
        flex: none !important;
        height: 80px !important;
    }

    .accordion-item.active {
        height: 280px !important;
        flex: none !important;
    }

    .active-content {
        width: calc(100% - 40px) !important;
        left: 20px !important;
        bottom: 20px !important;
    }

    .active-content h3 {
        font-size: 20px !important;
        margin-bottom: 8px !important;
    }

    .active-content p {
        font-size: 13.5px !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 480px) {
    .goals-grid {
        grid-template-columns: 1fr !important;
    }
}