/* --- Brand Palette & Variables --- */
:root {
    /* Primary Colors */
    --brand-green: #0B3D2E;    /* Deep Forest Green - Header/Nav/Headings */
    --brand-red: #C1121F;      /* Royal Crimson Red - Primary Buttons */
    
    /* Secondary Colors */
    --brand-gold: #F5B700;     /* Gold - Success/Hover */
    
    /* Neutrals */
    --neutral-dark: #60656F;   /* Steel Gray - Stats/Text */
    --neutral-light: #F7F7F7;  /* Soft White - Background */
    --text-main: #1F2937;      /* Dark text for readability */
    
    /* UI Elements */
    --card-shadow: 0 10px 30px rgba(11, 61, 46, 0.1); /* Greenish shadow hint */
    --card-radius: 12px;
    --section-spacing: 100px;
}

/* --- Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Open+Sans:wght@400;600&display=swap');

/* --- Resets & Base Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--neutral-light);
    color: var(--text-main);
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, .btn, .logo {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-green); /* Section Headings -> Green */
}

a { text-decoration: none; transition: 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Navigation (Deep Forest Green) --- */
nav {
    background: var(--brand-green);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid var(--brand-gold); /* Gold Accent */
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    color: white !important; /* Force white on dark nav */
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i { color: var(--brand-gold); }

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--brand-gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-gold);
    transition: 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* --- Buttons (Premium Red & Gold) --- */
.btn {
    display: inline-block;
    padding: 16px 36px;
    background: var(--brand-red); /* Primary Button -> Red */
    color: white;
    border-radius: 4px; /* Slightly sharper for modern feel */
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(193, 18, 31, 0.3);
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--brand-gold); /* Hover -> Gold */
    color: var(--brand-green);     /* Text turns dark green for contrast */
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(245, 183, 0, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--brand-red);
    color: var(--brand-red);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--brand-red);
    color: white;
    border-color: var(--brand-red);
    box-shadow: 0 10px 20px rgba(193, 18, 31, 0.3);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    /* Gradient Overlay using Brand Green */
    background: linear-gradient(to right, rgba(11, 61, 46, 0.95), rgba(11, 61, 46, 0.7)), url('https://images.unsplash.com/photo-1515523110800-9415d13b84a8?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 180px 0 120px;
    text-align: center;
    /* Modern Curve instead of sharp polygon */
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
    margin-bottom: var(--section-spacing);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero h1 {
    color: white; /* Override default green */
    font-size: 4rem;
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.1;
}

.hero p {
    font-size: 1.35rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* --- Sections & Headings --- */
section { padding: var(--section-spacing) 0; }

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--brand-green);
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: var(--brand-red); /* Red underline accent */
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
}

/* --- Cards (Premium Look) --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: white;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border-top: 5px solid var(--brand-green); /* Green Top Border */
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-top-color: var(--brand-red); /* Hover turns border Red */
}

.card-content { padding: 40px; }

.card h3 { font-size: 1.5rem; margin-bottom: 15px; }

.badge {
    background: var(--brand-green);
    color: var(--brand-gold);
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

/* --- About Section Styling --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text { padding-right: 30px; }
.about-text p { font-size: 1.1rem; color: var(--neutral-dark); margin-bottom: 25px; }
.about-text ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--text-main);
}
.about-text ul li i {
    color: var(--brand-red);
    margin-right: 15px;
    font-size: 1.2rem;
}

.about-img {
    position: relative;
    z-index: 1;
}

.about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--brand-gold);
    border-radius: var(--card-radius);
    z-index: -1;
}

.about-img img {
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

/* --- Stats Section (Steel Gray Cards) --- */
.stats-section {
    background: white;
    padding: 80px 0;
    margin-bottom: var(--section-spacing);
    position: relative;
}

/* Decorative background element */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--brand-green);
    z-index: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-item {
    background: var(--neutral-dark); /* Steel Gray Background */
    color: white;
    padding: 40px 30px;
    border-radius: var(--card-radius);
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: var(--card-shadow);
    border-bottom: 5px solid var(--brand-gold);
}

.stat-item:hover {
    background: var(--brand-green); /* Hover turns to Green */
    transform: translateY(-10px);
    border-bottom-color: var(--brand-red);
}

.stat-item i {
    font-size: 3rem;
    color: var(--brand-gold); /* Gold Icons */
    margin-bottom: 20px;
}

.stat-item h3 {
    color: white;
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- Events Section --- */
.event-card {
    background: white;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    transition: 0.3s;
    border-left: 5px solid var(--brand-red);
}

.event-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.event-date {
    background: var(--brand-green);
    color: white;
    padding: 30px 20px;
    text-align: center;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date h4 {
    color: var(--brand-gold);
    font-size: 1.8rem;
    margin: 0;
    line-height: 1;
}

.event-date span {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 5px;
}

.event-info { padding: 30px; }
.event-info h3 { font-size: 1.4rem; margin-bottom: 15px; }
.event-info p { color: var(--neutral-dark); margin-bottom: 8px; display: flex; align-items: center; }
.event-info p i { color: var(--brand-red); margin-right: 10px; }

/* --- Testimonials --- */
.testimonial-grid { gap: 40px; }
.testi-card {
    background: white;
    padding: 40px;
    border-radius: var(--card-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    position: relative;
}

.testi-card::before {
    content: '\201C';
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    color: rgba(193, 18, 31, 0.1); /* Faded Red quote */
    position: absolute;
    top: 20px;
    left: 30px;
}

.testi-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 25px;
    border: 5px solid var(--brand-gold);
}

.testi-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--neutral-dark);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testi-card h4 { font-size: 1.2rem; margin-bottom: 5px; }
.testi-card span { color: var(--brand-red); font-weight: 600; }

/* --- Contact Form (Modern & Clean) --- */
.contact-wrapper {
    background: white;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    overflow: hidden;
}

.contact-form-area { padding: 60px; }

.contact-info-area {
    background: var(--brand-green);
    color: white;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

/* Decorative pattern on info area */
.contact-info-area::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(circle at 100% 100%, transparent 80%, rgba(245, 183, 0, 0.1) 80%),
                      radial-gradient(circle at 0% 0%, transparent 80%, rgba(193, 18, 31, 0.1) 80%);
    z-index: 0;
}

.contact-info-area > * { position: relative; z-index: 1; }

.contact-info-area h3 { color: white; font-size: 2rem; margin-bottom: 30px; }
.contact-info-area h5 { color: var(--brand-gold); margin-bottom: 5px; font-size: 1.1rem; }
.contact-info-area .icon {
    color: var(--brand-gold);
    background: rgba(255,255,255,0.05);
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}
.contact-info-area p { color: rgba(255, 255, 255, 0.8); }

.form-group label { color: var(--brand-green); font-weight: 700; }

input, textarea, select {
    width: 100%;
    padding: 18px;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: 0.3s;
    color: var(--text-main);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    background: white;
    border-color: var(--brand-green); /* Green Focus Border */
    box-shadow: 0 0 0 5px rgba(11, 61, 46, 0.1);
}

/* --- Footer --- */
footer {
    background: var(--brand-green);
    color: rgba(255, 255, 255, 0.8);
    padding: 100px 0 30px;
    margin-top: var(--section-spacing);
    position: relative;
}

/* Gold top border for footer */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--brand-gold);
}

.footer-grid { gap: 60px; }

.footer-col h3 {
    color: white;
    border-left: 4px solid var(--brand-gold);
    padding-left: 20px;
    margin-bottom: 30px;
    font-size: 1.4rem;
}

.footer-col p { margin-bottom: 15px; display: flex; align-items: center; }
.footer-col p i { color: var(--brand-gold); margin-right: 15px; font-size: 1.1rem; }

.footer-links a { color: rgba(255, 255, 255, 0.8); display: block; margin-bottom: 12px; font-weight: 600; }
.footer-links a:hover { color: var(--brand-gold); padding-left: 8px; }

.social-icons a {
    background: rgba(255,255,255,0.05);
    width: 45px; 
    height: 45px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 12px;
    transition: 0.3s;
    color: white;
    font-size: 1.1rem;
}

.social-icons a:hover {
    background: var(--brand-red);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    margin-top: 80px;
    padding-top: 30px;
    font-size: 0.95rem;
}

/* --- Page Specific Styles --- */

/* Courses Page */
.course-card .course-details-box {
    background: #f3f4f6;
    border: none;
    padding: 25px;
}
.course-card .detail-row i { color: var(--brand-red); }

/* Coaches Page */
.coach-card-detailed .coach-info-area h3 { color: var(--brand-green); }
.coach-card-detailed .coach-info-area p { color: var(--neutral-dark); }
.coach-card-detailed .coach-title { color: var(--brand-red) !important; }
.coach-card-detailed i { color: var(--brand-red); }
.coach-list li::before { color: var(--brand-gold); }

/* Events Page - Result Table */
.result-card { border-left-color: var(--brand-red); }
.result-table th {
    background: var(--brand-green);
    color: white;
    font-weight: 800;
    letter-spacing: 1px;
}
.rank-1st { background: var(--brand-gold); color: var(--brand-green); }
.rank-2nd { background: var(--neutral-dark); color: white; }
.rank-3rd { background: #CD7F32; color: white; }

/* Gallery Page */
.video-item { background: black; }
.video-title { background: var(--brand-green); color: white; padding: 20px; }
.video-title i { color: var(--brand-gold); }

/* About Page - Mission/Vision */
.mission-card { border-bottom-color: var(--brand-red); }
.icon-box { color: var(--brand-gold); background: rgba(245, 183, 0, 0.1); }
.method-item { background: white; border: none; box-shadow: var(--card-shadow); }
.method-item:hover { transform: translateY(-10px); background: var(--brand-green); }
.method-item:hover h3, .method-item:hover p { color: white; }
.method-item:hover .step-number { color: rgba(255,255,255,0.2); }
.step-number { color: rgba(11, 61, 46, 0.1); }
.safety-item i { color: var(--brand-red); background: rgba(193, 18, 31, 0.1); }

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-wrapper { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.8rem; }
    .hero { border-bottom-left-radius: 40px; border-bottom-right-radius: 40px; padding: 140px 0 80px; }
    .about-grid, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-text { padding-right: 0; }
    .section-title { font-size: 2.2rem; }
}