/* homepage.css */

/* Hero Section Styling - Full Width Background, Constrained Content */
.hero-section-wrapper {
    width: 100%;
    /* THE HERO BACKGROUND IMAGE IS SET HERE */
    background-image: url('../Images/home-page/hero/hero-background-2.png');
    background-color: #f8a404; /* Fallback color */
    background-size: cover; /* Default: cover the area, may crop */
    background-position: center center;
    background-repeat: no-repeat; /* Ensure it doesn't tile if 'contain' makes it smaller */
    display: flex;
    justify-content: center;
    align-items: center; /* Added to help with potential fixed height and contain */
    padding-top: 90px; /* Approximate fixed header height - ADJUST AS NEEDED */
    min-height: calc(100vh - 90px); /* Example: Try to make it fill viewport height minus header */
    box-sizing: border-box; /* Ensure padding is included in height calculation */
}

.hero-section {
    position: relative;
    width: 100%;
    max-width: 1917px;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
}


/* --- The rest of your homepage.css (courses-promo-section, etc.) remains EXACTLY THE SAME --- */

/* Courses Promo Section */
.courses-promo-section {
    padding: 80px 0;
    overflow-x: hidden;
    position: relative;
    background-image: url('../Images/home-page/course-background-image.png');
    background-color: #e0e5ea;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

.courses-promo-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.courses-promo-content {
    display: flex;
    align-items: center;
    gap: 70px;
}

.courses-promo-text {
    flex: 0 0 40%;
    max-width: 460px;
}

.courses-promo-text .section-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(2em, 4vw, 2.8em);
    color: #1D2D44;
    margin-bottom: 20px;
}

.courses-promo-text .section-description {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: clamp(0.9em, 1.5vw, 1.05em);
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

.btn-learn-more {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border: 2px solid #333;
    border-radius: 50px;
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: clamp(0.9em, 1.5vw, 1em);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease-in-out;
    z-index: 1;
}

.btn-learn-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -101%;
    width: 100%;
    height: 100%;
    background-color: #333;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
    border-radius: 50px;
}

.btn-learn-more:hover { color: #fff; }
.btn-learn-more:hover::before { left: 0; }
.btn-learn-more .arrow { margin-left: 10px; transition: transform 0.3s ease-in-out; }
.btn-learn-more:hover .arrow { transform: translateX(5px); }

.courses-promo-images {
    flex: 1 1 58%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 500px;
    position: relative;
}

.image-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.courses-promo-images .image-wrapper {
    width: clamp(280px, 28vw, 380px);
    aspect-ratio: 2 / 3;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-wrapper:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.courses-promo-images .image-wrapper.image-1 {
    transform: rotate(-6deg) translateX(-10%);
    z-index: 1;
    margin-right: -75px;
}
.courses-promo-images .image-wrapper.image-1:hover {
    transform: scale(1.05) translateY(-5px) rotate(-3deg) translateX(-10%);
    z-index: 10;
}

.courses-promo-images .image-wrapper.image-2 {
    transform: rotate(3deg);
    z-index: 2;
}
.courses-promo-images .image-wrapper.image-2:hover {
    transform: scale(1.05) translateY(-5px) rotate(1deg);
    z-index: 10;
}

.section-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(2em, 4vw, 2.8em);
    color: #1D2D44;
    margin-bottom: 25px;
}

.section-description {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: clamp(0.9em, 1.5vw, 1.05em);
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}
.section-description:last-of-type {
    margin-bottom: 40px;
}

.about-us-section {
    padding: 80px 40px;
    overflow-x: hidden;
    position: relative;
    background-image: url('../Images/home-page/about-us-background.png');
    background-color: #e0e5ea;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

.about-us-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-us-content {
    display: flex;
    align-items: center;
    gap: clamp(50px, 7vw, 100px);
}

.about-us-text {
    flex: 0 0 40%;
    max-width: 480px;
}

.about-us-images {
    flex: 1 1 58%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    min-height: 600px;
}

.about-us-images .image-about-1 {
    width: clamp(210px, 23vw, 420px);
    aspect-ratio: 5 / 7;
    transform: rotate(-8deg) translateX(-5%);
    z-index: 1;
    margin-right: -200px;
}
.about-us-images .image-about-1:hover {
    transform: scale(1.04) translateY(-8px) rotate(-5deg) translateX(-5%);
    z-index: 10;
}

.about-us-images .image-about-2 {
    width: clamp(230px, 25vw, 420px);
    aspect-ratio: 5 / 4;
    transform: rotate(5deg) translateX(15%) translateY(-15%);
    z-index: 2;
}
.about-us-images .image-about-2:hover {
    transform: scale(1.04) translateY(-8px) rotate(2deg) translateX(15%);
    z-index: 10;
}

.why-us-section {
    padding: 80px 20px;
    background-color: #f8f8f8;
    overflow-x: hidden;
}

.why-us-section .section-title.text-center {
    text-align: center;
    margin-bottom: 60px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    align-items: flex-start;
}

.why-us-item {
    text-align: center;
    padding: 20px;
}

.why-us-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f3732f;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    box-shadow: 0 4px 10px rgba(243, 115, 47, 0.3);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.why-us-item:hover .why-us-icon-wrapper {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 20px rgba(243, 115, 47, 0.45);
}

.why-us-icon-wrapper i {
    font-size: 36px;
    color: #fff;
    transition: transform 0.3s ease-out;
}

.why-us-item:hover .why-us-icon-wrapper i {
    transform: rotate(15deg);
}

.why-us-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(1.3em, 2.5vw, 1.6em);
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
}

.why-us-description {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: clamp(0.85em, 1.8vw, 0.95em);
    line-height: 1.6;
    color: #666;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.stats-section {
    padding: 60px 20px;
    background-color: #f5a802;
    color: #fff;
    overflow-x: hidden;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item {
    text-align: center;
    flex-basis: calc(50% - 20px);
    max-width: 300px;
}

.stat-number {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(3em, 8vw, 5.5em);
    font-weight: 600;
    line-height: 1;
    display: inline-block;
}

.stat-plus {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(2.5em, 7vw, 4.5em);
    font-weight: 600;
    line-height: 1;
    display: inline-block;
    vertical-align: baseline;
    margin-left: 2px;
}

.stat-label {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: clamp(0.9em, 2.5vw, 1.1em);
    font-weight: 400;
    margin-top: 10px;
    opacity: 0.9;
}

.text-center {
    text-align: center;
}

.products-showcase-section {
    padding: 70px 0;
    background-color: #fff;
    overflow-x: hidden;
}

.products-showcase-section .section-title {
    margin-bottom: 40px;
}

.product-slider-container {
    position: relative;
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
}

.product-slider-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    position: relative;
}
.product-slider-viewport::-webkit-scrollbar { display: none; }

.product-slider-track {
    display: flex;
    width: fit-content;
    padding: 10px 0;
}

:root {
    --product-item-max-width: 288px;
    --product-item-aspect-ratio: 10 / 13;
    --product-item-gap: 15px;
}

.product-slide-item {
    flex: 0 0 auto;
    width: var(--product-item-max-width);
    max-width: 85vw;
    aspect-ratio: var(--product-item-aspect-ratio);
    margin-right: var(--product-item-gap);
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}
.product-slide-item:last-child { margin-right: 0; }

.product-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-out;
}
.product-slide-item:hover img { transform: scale(1.05); }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 45px; height: 45px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.slider-arrow:hover {
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.slider-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}
.prev-arrow { left: -22px; }
.next-arrow { right: -22px; }


/* --- STYLES FOR PHILOSOPHY SECTION (NEW) --- */
.philosophy-section {
    padding: 80px 20px;
    background-color: #f8f9fa; /* A very light, clean grey */
    overflow-x: hidden;
}

.philosophy-section .section-title {
    margin-bottom: 60px; /* More space after the title */
    font-size: clamp(1.8em, 4vw, 2.5em); /* Slightly smaller headline */
}

.philosophy-grid {
    max-width: 1024px; /* A bit wider for better text flow */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
    text-align: left;
}

.philosophy-text p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
    color: #4a4a4a;
}
.philosophy-text p:last-child {
    margin-bottom: 0;
}

.philosophy-values h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1D2D44;
}

.values-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.value-item { 
    display: grid;
    /* 3 columns: Icon, Bold Term, Definition */
    grid-template-columns: auto auto 1fr; 
    gap: 0 0.6rem; /* Column gap for spacing */
    align-items: start;
    margin-bottom: 1.25rem; 
    font-size: 1rem; 
    line-height: 1.6; 
    color: #4a4a4a;
    font-family: 'Roboto', sans-serif;
}
.value-item:last-child {
    margin-bottom: 0;
}

.value-item .fa-check-circle { 
    color: #005f73; /* Teal from screenshot */
    font-size: 1.2rem;
    margin-top: 3px; /* Fine-tune vertical alignment with text */
}

.value-item strong {
    font-weight: 500;
    color: #1a1a1a;
}

/* === Mobile Responsive Adjustments === */
@media (max-width: 768px) {
    .hero-section-wrapper {
        background-size: contain;
        min-height: 300px; 
        height: auto; 
        padding-top: 70px; 
    }

    .hero-section {
        height: 100%; 
    }

    .courses-promo-content { flex-direction: column; gap: 50px; }
    .courses-promo-text { max-width: 100%; text-align: center; }
    .btn-learn-more { margin: 0 auto; }
    .courses-promo-images { min-height: auto; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 30px; padding-left: 0; }
    .courses-promo-images .image-wrapper { position: relative; transform: none !important; width: clamp(280px, 75vw, 380px); margin-right: 0 !important; }
    .courses-promo-images .image-wrapper.image-1:hover,
    .courses-promo-images .image-wrapper.image-2:hover { transform: scale(1.03); }


    .about-us-content { flex-direction: column; gap: 50px; }
    .about-us-text { flex-basis: auto; max-width: 100%; text-align: center; }
    .about-us-text .btn-learn-more { margin: 0 auto; display: table; }

    .about-us-images { flex-basis: auto; min-height: auto; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 30px; }
    .about-us-images .image-wrapper { position: relative; transform: none !important; margin-right: 0 !important; }
    .about-us-images .image-about-1 { width: clamp(280px, 70vw, 360px); }
    .about-us-images .image-about-2 { width: clamp(300px, 80vw, 400px); }
    .about-us-images .image-wrapper:hover { transform: scale(1.03) !important; }

    .why-us-grid { gap: 30px; }
    .why-us-section .section-title.text-center { margin-bottom: 40px; }

    .stats-grid { gap: 30px; }
    .stat-item { max-width: 280px; }
    .stat-number { font-size: clamp(2.8em, 10vw, 5em); }
    .stat-plus { font-size: clamp(2.3em, 9vw, 4em); }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 4rem; /* Increased gap for more space on mobile */
    }
    .philosophy-text, .philosophy-values {
        text-align: center;
    }
    .philosophy-values .values-list {
        display: inline-block; /* Allows the list to be centered as a block */
        text-align: left; /* Keeps the list items left-aligned */
    }

    .product-slide-item {
        width: min(calc(60vw - 48px), 80vw);
        margin-right: 10px;
    }

    .slider-arrow { width: 38px; height: 38px; font-size: 14px; background-color: rgba(50, 50, 50, 0.5); color: #fff; border-color: rgba(255,255,255,0.3); }
    .slider-arrow:hover { background-color: rgba(0,0,0,0.7); }
    .prev-arrow { left: 8px; }
    .next-arrow { right: 8px; }
}


@media (max-width: 992px) {
    .courses-promo-images { min-height: 400px; padding-left: 20px; }
    .courses-promo-images .image-wrapper { width: clamp(240px, 26vw, 320px); }
    .courses-promo-images .image-wrapper.image-1 { margin-right: -50px; }

    .about-us-content { gap: 40px; }
    .about-us-text { flex-basis: 45%; }
    .about-us-images { min-height: 500px; }
    .about-us-images .image-about-1 { width: clamp(220px, 23vw, 300px); margin-right: -80px; transform: rotate(-7deg) translateX(-15%); }
    .about-us-images .image-about-1:hover { transform: scale(1.05) translateY(-5px) rotate(-4deg) translateX(-15%); }
    .about-us-images .image-about-2 { width: clamp(240px, 25vw, 330px); transform: rotate(4deg) translateY(3%); }

    .product-slider-container { width: 95%; }
    .product-slide-item { width: 192px; }
    .slider-arrow { width: 40px; height: 40px; font-size: 16px; }
    .prev-arrow { left: -15px; }
    .next-arrow { right: -15px; }
}

@media (max-width: 480px) { 
    .hero-section-wrapper {
        min-height: 250px;
    }
    
    .why-us-grid { grid-template-columns: 1fr; }
    .why-us-icon-wrapper { width: 70px; height: 70px; margin-bottom: 20px; }
    .why-us-icon-wrapper i { font-size: 30px; }
    .why-us-title { font-size: clamp(1.2em, 4vw, 1.5em); }
    .why-us-description { font-size: clamp(0.8em, 3vw, 0.9em); }

    .stats-section { padding: 40px 15px; }
    .stats-grid { flex-direction: column; align-items: center; gap: 40px; }
    .stat-item { flex-basis: auto; max-width: 100%; }
    .stat-number { font-size: clamp(2.5em, 12vw, 4.5em); }
    .stat-plus { font-size: clamp(2em, 11vw, 3.5em); }
    .stat-label { font-size: clamp(0.85em, 3vw, 1em); }

    .product-slide-item {
        width: min(calc(60vw - 36px), 75vw);
        margin-right: 8px;
    }
}


@media (max-width: 1200px) { 
    .product-slide-item {
        width: 240px;
        margin-right: 12px;
    }
}