/* styles.css */
/* CSS Variables for easy color scheme changes */
:root {
    --primary: #00b4d8;
    --secondary: #ff6b35;
    --accent: #d4ff00;
    --dark: #1a1d2e;
    --medium: #4a5568;
    --light: #f8f9fa;
    --white: #ffffff;
}

/* Reusable spacing class for sections */
.section-spacing {
    margin-top: 4rem;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--light);
}



/* Header and Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--dark);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.header-top .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Container for the entire logo area */
.logo-section {
    padding: 1rem 0;
}

.logo-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    /* 1. Enable Flexbox */
    display: flex;
    /* 2. Push children to the far left and far right */
    justify-content: space-between; 
    /* 3. Vertically center the text and image */
    align-items: center; 
    
    /* Existing font styling */
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin: 0; /* Ensures it spans full width of the container */
}

.logo-image {
    width: 250px;
    height: auto;
    display: block; /* Important for Flexbox to handle sizing */
    margin-left: 1rem; /* Add some space between text and image if needed */
}

.logo-text {
    /* Ensures the text stays within the flow of Flexbox */
    display: block; 
}


.logo span {
    color: var(--secondary);
}

/* ===============================
   Desktop/Default Styles (Wide Screen)
   =============================== */
nav {
    background: var(--primary);
    position: relative; /* Ensure the menu button/container works relative to nav */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex; /* Helps align the menu */
}

/* Hide the hamburger toggle elements by default (on desktop) */
#menu-toggle {
    display: none;
}
.menu-icon {
    display: none;
    cursor: pointer;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0; /* Reset margins */
    padding: 0; /* Reset padding */
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background: var(--secondary);
}

/* Desktop Dropdown Styles */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    list-style: none;
    z-index: 10;
}

.nav-menu > li:hover .dropdown {
    display: block;
}

.dropdown li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--dark);
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown li a:hover {
    background: var(--light);
    color: var(--primary);
}


/* ===============================
   Mobile Styles (Hamburger Menu)
   =============================== */
@media (max-width: 768px) {
    /* Show the hamburger icon */
    .menu-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        position: absolute;
        left: 2rem;
        top: 0.5rem; /* Adjust as needed */
        z-index: 100; /* Keep it on top */
    }

    /* Style the bars of the icon */
    .menu-icon .bar {
        display: block;
        width: 100%;
        height: 4px;
        background-color: var(--dark); /* Assuming your text color is white */
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    /* Force the menu to stack vertically and hide by default */
    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 100%; /* Place it below the nav bar */
        left: 0;
        width: 100%;
        background: var(--primary); /* Match nav background */
        height: 0;
        overflow: hidden; /* This hides the menu */
        transition: height 0.3s ease-in-out;
        z-index: 50;
    }

    /* Style for menu items when stacked */
    .nav-menu > li > a {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Mobile Dropdown: Make it full width and static */
    .dropdown {
        position: static;
        display: block; /* Always show the dropdown container in mobile */
        max-height: 0;
        overflow: hidden; /* Hide the dropdown content */
        background: rgba(0, 0, 0, 0.1); /* Slightly darker background for nested items */
        transition: max-height 0.3s ease-in-out;
        box-shadow: none; /* Remove desktop shadow */
        min-width: unset;
    }
    
    .dropdown li a {
        padding-left: 3rem; /* Indent sub-menu links */
        color: var(--white);
    }
    
    .dropdown li a:hover {
        background: var(--secondary);
    }

    /* ---------------------------------
       THE TOGGLE MAGIC (Pure CSS)
       --------------------------------- */

    /* 1. Show the main menu when the checkbox is checked */
    #menu-toggle:checked ~ .nav-menu {
        height: auto; /* Allow the height to expand to fit content */
        max-height: 500px; /* Use a generous max-height for smooth transition */
        overflow: visible;
        padding-bottom: 1rem; /* Add some space at the bottom */
    }

    /* 2. Toggle the Mobile Dropdown when the parent is hovered/focused/active (best to use a class here for a clickable mobile dropdown, but for simple hover this works) */
    /* NOTE: A pure CSS mobile dropdown trigger is complex, a simple click listener with a small snippet of JS is usually preferred on mobile.
       For pure CSS, we can use the :hover effect, which can be tricky on touch screens: */
    .nav-menu > li:hover .dropdown {
        max-height: 300px; /* Expand the dropdown */
        overflow: visible;
    }
    
    /* 3. Animate the Hamburger Icon to an 'X' (Optional but nice) */
    #menu-toggle:checked + .menu-icon .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    #menu-toggle:checked + .menu-icon .bar:nth-child(2) {
        opacity: 0; /* Hide the middle bar */
    }

    #menu-toggle:checked + .menu-icon .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

main {
    min-height: 60vh;
    padding: 3rem 0;
    
}

/* Page Title */
.page-title {
    text-align: center;
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    text-align: center;
    color: var(--medium);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Hero Section */
.hero {
    background: 
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url("../images/main.png") center/contain no-repeat;
    background-color: #000; /* fills empty space around the image */
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 10px;
}



.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: var(--dark);
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* Content Sections */
.section-spacing {
    margin-top: 4rem;
}

.section-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card h4 {
    color: var(--secondary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.card p {
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Content Box */
.content-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.content-box h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.content-box h3 {
    color: var(--secondary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

thead {
    background: var(--primary);
    color: var(--white);
}

th, td {
    padding: 1rem;
    text-align: left;
}

tbody tr:nth-child(even) {
    background: var(--light);
}

tbody tr:hover {
    background: #e1f5ff;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button,
.button {
    padding: 0.75rem 2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover,
.button:hover {
    background: var(--secondary);
}

/* FAQ Styles */
.faq-item {
    background: var(--white);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.faq-question {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: var(--dark);
}

/* News/Blog Styles */
.news-item {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary);
}

.news-meta {
    color: var(--medium);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-item h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-3 { margin-bottom: 3rem; }

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .header-top .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.5rem;
    }
}