/* Basic Reset & Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1100px; /* Adjusted to be slightly less than 1200px to allow for padding/margin */
    margin: 0 auto;
    padding: 0 20px; /* Padding for smaller screens */
}

/* Header */
.main-header {
    background-color: #004d99; /* Dark blue, similar to UPPCL's branding */
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-width: 100px;
    height: auto;
}

.main-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav .nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav .nav-links a:hover {
    color: #ffd700; /* Gold color for hover */
}

/* Hamburger Menu (for mobile) */
.hamburger {
    display: none; /* Hidden by default on larger screens */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    z-index: 1000;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero-section {
    background-color: #007bff; /* Bright blue */
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.hero-section h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.hero-buttons .btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.primary-btn {
    background-color: #ffd700;
    color: #004d99;
}

.primary-btn:hover {
    background-color: #e6c200;
}

.secondary-btn {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.secondary-btn:hover {
    background-color: #fff;
    color: #007bff;
}

/* Card Grid (Quick Links) */
.quick-links-section {
    margin-bottom: 30px;
}

.quick-links-section h2, .news-updates-section h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2em;
    color: #004d99;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 25px;
}

.card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #007bff;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 20px;
}

.card-btn {
    background-color: #004d99;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.card-btn:hover {
    background-color: #003366;
}

/* News and Updates */
.news-updates-section {
    margin-bottom: 50px;
}

.news-list {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.news-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h4 {
    color: #004d99;
    margin-bottom: 5px;
}

.news-item p {
    font-size: 0.9em;
    color: #666;
}

.news-item a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
}

.news-item a:hover {
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background-color: #333;
    color: #fff;
    padding: 25px 0;
    text-align: center;
    font-size: 0.9em;
}

.main-footer .container {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-nav .nav-links {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-wrap: wrap; /* Allow wrapping */
        justify-content: center; /* Center logo on smaller screens */
        text-align: center;
    }

    .logo {
        margin-bottom: 15px;
    }

    .main-nav {
        width: 100%; /* Take full width */
        display: flex;
        justify-content: flex-end; /* Push hamburger to the right */
        align-items: center;
    }

    .main-nav .nav-links {
        flex-direction: column;
        position: absolute;
        top: 80px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: #004d99;
        transform: translateX(100%); /* Hidden off-screen */
        transition: transform 0.5s ease-in-out;
        z-index: 999;
        padding: 20px 0;
        align-items: center;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

    .main-nav .nav-links li {
        margin: 10px 0;
    }

    .main-nav .nav-links.nav-active {
        transform: translateX(0); /* Slide in */
    }

    .hamburger {
        display: flex; /* Show hamburger */
    }

    .hero-section {
        padding: 60px 20px;
    }

    .hero-section h1 {
        font-size: 2em;
    }

    .hero-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 80%; /* Make buttons full width */
    }

    .card-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
    }

    .main-footer .container {
        flex-direction: column;
    }

    .footer-links {
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8em;
    }

    .quick-links-section h2, .news-updates-section h2 {
        font-size: 1.8em;
    }
}


/* Hamburger animation */
.toggle .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.toggle .bar:nth-child(2) {
    opacity: 0;
}
.toggle .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}