/*
    JOD Academy - Main Stylesheet
    Theme: Professional, Elegant, Executive
    Primary Color: #1d4d4f (Petroleum Green)
*/

:root {
    /* Color Palette */
    --primary-color: #1d4d4f;
    --primary-dark: #143638;
    --primary-light: #2a6e70;
    --accent-color: #d4af37;
    --secondary-color:#d4af37;
    /* Muted Gold */
    --accent-hover: #b59226;
    --text-dark: #333333;
    --text-light: #f8f9fa;
    --bg-light: #f4f7f6;
    --bg-white: #ffffff;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Global Reset & Typography */
body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 0.7rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: 0.5px;
}


.nav-link {
    color: var(--primary-color) !important;
    font-weight: 700;
    margin: 0 0.8rem;
    position: relative;
    font-size: 0.95rem;
}

.navbar-nav .nav-item .nav-link.active {
    color: var(--secondary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-item .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-item .nav-link.active::after {
    width: 100%;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: 2px solid var(--primary-color);
    padding: 0.7rem 1.8rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 77, 79, 0.2);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    /*letter-spacing: 0.5px;*/
}

.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../assets/hero.jpg') no-repeat center center/cover;
    /* Placeholder until user provides image */
    color: var(--bg-white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(20, 54, 56, 0.85), rgba(29, 77, 79, 0.9));
    /* Greenish overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 40px;
}

.hero-label {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--bg-white);
}

.highlight-text {
    color: #d6af31;
    /* Bright mint green from reference */
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 700px;
    line-height: 1.7;
}

/* Hero Buttons */
.btn-hero-primary {
    background-color: rgba(20, 54, 56, 0.8);
    color: var(--bg-white);
    border: 1px solid var(--accent-color);
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: capitalize;
    /* Reference is title case */
    font-size: 1rem;
}

.btn-hero-primary:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero-outline {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: capitalize;
    font-size: 1rem;
    backdrop-filter: blur(5px);
}

.btn-hero-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #fff, transparent);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Section Common */
section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 1.2rem auto 0;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Courses Section */
/* Courses Section */
.course-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Subtle border like reference */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    /* Very subtle shadow */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left align everything */
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(29, 77, 79, 0.2);
}

.course-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.course-body {
    padding: 0;
    margin-bottom: auto;
    /* Pushes footer to bottom */
}

.course-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.course-desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.course-footer {
    width: 100%;
    margin-top: 1rem;
}

.course-footer .btn-outline-custom {
    text-transform: none;
    /* Reference button is not uppercase */
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    /* Slightly more rounded */
}

.course-footer .btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(rgba(29, 77, 79, 0.95), rgba(20, 54, 56, 0.95)), url('../assets/hero.jpg');
    /* Add a bg image later */
    background-size: cover;
    background-attachment: fixed;
    color: var(--bg-white);
    padding: 100px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Partners Section */
.partners-section {
    background-color: var(--bg-white) !important;
    padding: 60px 0;
    /* Reduced padding for a tighter look */
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.partner-logo {
    max-width: 140px;
    height: auto;
    transition: all 0.4s ease;
    max-height: 80px;
    object-fit: contain;
}

.swiper-slide:hover .partner-logo {
    scale: 1.2;
    transform: none;
    transition: all 0.4s ease;
}

/* Testimonials */
.testimonials-section {
    background-color: #fafbfc;
    /* Matches reference light grey/white feel */
    padding: 100px 0;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    height: 100%;
    margin: 20px 10px;
    /* Spacing for swiper overflow visibility */
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 300;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.testimonial-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-img img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.author-details h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.author-details span {
    font-size: 0.85rem;
    color: #888;
    font-weight: 400;
}

.testimonial-icon i {
    font-size: 3rem;
    color: #e3efff;
    /* Light blueish/grey like reference */
}

/* Swiper Styling */
.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color) !important;
    transform: scale(0.7);
}

/* Contact Section */
.contact-section {
    background-color: #f8f9fa;
    position: relative;
}

.contact-form {
    background: var(--bg-white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.form-control {
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
    background-color: #fbfbfb;
    transition: all 0.3s;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
    background-color: #fff;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
    padding-bottom: 40px;
}

footer h5 {
    color: var(--bg-white);
    margin-bottom: 25px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

footer ul li {
    margin-bottom: 12px;
}

footer ul li a {
    transition: all 0.3s;
}

footer ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.payment-logo-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 70px;
    transition: transform 0.3s ease;
}

.payment-logo-card:hover {
    transform: translateY(-3px);
}

.payment-logo-card img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        text-align: center;
        padding-top: 80px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-content .d-flex {
        justify-content: center;
    }

    .stat-item {
        margin-bottom: 30px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #25d366;
    /* WhatsApp Green on hover */
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-float i {
    margin: 0;
}

@media (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}
