/* Import Font globally */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* --- NEW COLOR PALETTE --- */
    --primary-blue: rgb(13, 29, 64);      /* Main Brand Color */
    --accent-yellow: rgb(251, 224, 29);   /* Pop/Action Color */
    --bg-gray: rgb(236, 232, 232);        /* Backgrounds */
    --text-dark: rgb(51, 51, 51);         /* Body Text */
    
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(13, 29, 64, 0.15); /* Blue-tinted shadow */
    --radius: 8px;
    --font-main: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    background-color: var(--white);
    padding-top: 105px; /* Offset for fixed header */
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

header.scrolled {
    padding: 5px 0;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 1200px; /* Limit the width for centering */
    margin: 0 auto; /* Center the container */
}

.logo {
    position: relative;
    z-index: 101;
}

.logo img {
    height: 75px; /* Adjust as needed */
    transition: height 0.3s ease;
}

header.scrolled .logo img {
    height: 60px;
}

.menu-btn {
    display: none; /* Initially hide the button */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    color: #333;
    z-index: 102; /* Ensure it's above the header */
}

nav.main-nav {
    display: flex;
    justify-content: flex-start;
    padding-left: 12%;
    flex: 1;
}

nav.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 101;
}

nav.main-nav ul li {
    margin-left: 20px;
}

/* Dropdown */
.dropdown { 
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f0f0f0;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 16px;
}

nav.main-nav a {
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
nav.main-nav ul li a{
    color: #333;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: x-large;
    font-weight: 500;
    margin-left: 10px;
}

nav.main-nav a:hover {
    background-color: #ddd;
    color: #000;
}

.dropdown-content a:hover {
    background-color: #ddd;
    color:#000
}

.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: auto;
}

/* --- Hero Section --- */
.hero {
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 150px 0;
    min-height: 50vh;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay uses Dark Blue instead of black for better branding */
    background: rgba(0, 0, 0, 0.5); 
    z-index: -1;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* --- Buttons (Standard CTA) --- */
.button {
    background-color: var(--accent-yellow); /* Yellow Button */
    color: var(--primary-blue); /* Dark Blue Text */
    padding: 12px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid var(--accent-yellow);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.button:hover {
    background-color: var(--primary-blue); /* Dark Blue on Hover */
    color: var(--accent-yellow); /* Yellow Text on Hover */
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Services / Cards --- */
.services, .our-classes {
    padding: 80px 0;
    background-color: var(--bg-gray); /* Light Gray Background */
}

.services h2, .our-classes h2, .contact h2{
    text-align: center;
    padding-bottom: 40px;
    font-size: 2.5rem;
    color: var(--primary-blue);
    font-weight: 700;
}
 
.our-classes h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-yellow);
    margin: 10px auto 0;
    border-radius: 2px;
}

.contact p {
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.classes-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.class-category {
    min-height: 250px;
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.05);
    flex: 0 1 300px;
}

/* Gradient overlay for cards */
.class-category::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(51, 51, 51, 0.7), transparent);
    z-index: 1;
    transition: background 0.3s ease;
}

.class-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.class-category h3 {
    font-size: 1.5em;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    text-align: center;
    position: relative;
    z-index: 2;
    color: var(--white);
}

/* --- Training Details Pages (Modernized & Colored) --- */
.training-title {
    /* Gradient from Light Gray to White */
    background: linear-gradient(180deg, var(--bg-gray) 0%, var(--white) 100%);
    padding: 100px 0 80px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.training-title h1 {
    font-size: 3.5em;
    margin-bottom: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary-blue); /* Solid Dark Blue Title */
}

.training-title-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Modern Pill Buttons in Header */
.training-title-row a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    padding: 15px 35px;
    background-color: var(--white);
    border: 2px solid transparent; 
    border-radius: 50px;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.training-title-row a:hover {
    background-color: var(--accent-yellow); /* Pop of Yellow */
    color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Content Headings */
.training-details {
    background-color: var(--bg-gray);
    padding: 60px 0;
    border-bottom: none;
}

.training-details h2 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Optional: Small yellow underline under headings */
.training-details h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-yellow);
    margin: 10px auto 0;
    border-radius: 2px;
}

.training-details h3 {
    color: var(--primary-blue);
    font-weight: 600;
}

.training-details ul li {
    margin-bottom: 10px;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 4px solid var(--white);
}

.contact {
    text-align: center;
    padding: 50px 0;
    background-color: var(--white);
}

/* --- Footer --- */
footer {
    background-color: var(--primary-blue); /* Dark Blue Footer */
    color: var(--white);
    text-align: center;
    padding: 40px 0;
    border-top: 5px solid var(--accent-yellow); /* Yellow top border */
}

footer p {
    margin: 0;
    opacity: 0.8;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    header .container {
        max-width: 100%;
        padding: 0 10px;
    }

    nav.main-nav {
        display: none; /* Hide the full nav */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: #f0f0f0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .menu-btn {
        display: block; /* Show the button */
    }
    
    nav.main-nav ul {
        flex-direction: column; /* Stack items vertically */
        align-items: flex-start; /* Left-align items */
        padding: 10px;
    }

    nav.main-nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }
    
    .training-title-row {
        flex-direction: column;
        align-items: center;
    }
    
    .training-title-row a {
        width: 80%;
        text-align: center;
    }
}