/* Shared Stylesheet for Vote Chori Website */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1f2937;
    line-height: 1.6;
}

/* Navigation Styles */
.navbar {
    background: linear-gradient(to right, #1e3a8a, #3b82f6);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 80px;
    border-radius: 8px;
}

.nav-menu {
    display: none;
    gap: 1.5rem;
    font-weight: 500;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 700; /* Make navbar items bold */
}

.nav-menu a:hover {
    color: #ffd900;
}

.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    background: linear-gradient(to right, #1e3a8a, #3b82f6);
    padding: 0.5rem 0;
}

.mobile-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
    font-weight: 700; /* Make mobile menu items bold */
}

.mobile-menu a:hover {
    background-color: rgba(30, 58, 138, 0.8);
    color: #ffd900;
}

/* Banner Styles - Updated for Responsive Behavior */
.banner {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.banner img {
    width: 100%;
    display: block;
}

/* Mobile and small tablet: Let image scale proportionally */
@media (max-width: 945px) {
    .banner img {
        height: auto; /* Maintain aspect ratio */
        object-fit: contain; /* Show full image without cropping */
    }
}

/* Desktop: Keep viewport-height behavior */
@media (min-width: 946px) {
    .banner {
        height: calc(100vh - 96px);
        min-height: 500px;
    }
    
    .banner img {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Footer Image Styles - HIDDEN FOR OPTION 1 */
.footer-image {
    display: none; /* Hide the separate image div */
}

/* Header Styles */
.page-header {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.125rem;
    color: #374151;
    font-weight: 600;
}

/* Main Content Styles */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 0rem 1rem;
}

.content-card {
    background-color: #f1f1f1;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.content-card h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 1.5rem;
}

.content-card p {
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    color: #374151;
}

.content-card p:last-child {
    margin-bottom: 0;
}

/* News Article Styles */
.news-article {
    background-color: #f5f5f4;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.news-article h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.news-article .date {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.news-article p {
    color: #374151;
    font-size: 1rem;
}

/* Contact Styles */
.contact-section {
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.contact-item a[href^="mailto:"]:hover {
    color: #ffd900 !important;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    color: #1e3a8a;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffd900;
}

/* Footer Styles - OPTION 1: Background Image Approach */
.footer {
    position: relative;
    background-image: url('../images/Footer Banner.webp'); /* Keep this if you want the image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 0;
    min-height: 200px;
}

.footer p {
    position: relative;
    z-index: 2;
    color: #1e3a8a; /* Black text */
    text-shadow: 2px 2px 4px #d1d1d1; /* White shadow */
    font-weight: 600;
    padding-bottom: 250px; /* Creates a large gap below the paragraph */
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 1rem;
}

.footer-logos img {
    height: 75px; /* Half of navbar logo height (navbar logo is 80px) */
    width: auto;
    border-radius: 6px;
    background: transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.45); /* Black drop shadow */
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
    
    .mobile-menu-button {
        display: none;
    }
    
    .footer {
        min-height: 250px;
        padding: 4rem 1rem;
    }
    
    .page-header h1 {
        font-size: 3rem;
    }
    
    .content-card {
        padding: 4rem;
    }
    
    .content-card h2 {
        font-size: 2.5rem;
    }
}

/* Adjust banner heights for larger screens with bigger navbars */
@media (min-width: 768px) and (min-width: 946px) {
    .banner {
        height: calc(100vh - 104px);
        min-height: 600px;
    }
}

@media (min-width: 1024px) {
    .page-header h1 {
        font-size: 3.75rem;
    }
    
    .banner {
        height: calc(100vh - 112px);
        min-height: 700px;
    }
    
    .footer {
        min-height: 300px;
        padding: 5rem 1rem;
    }
}

/* Show hamburger icon and hide nav-menu below 950px */
@media (max-width: 949px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-button {
        display: block;
    }
    .footer-logos img {
        height: 56.25px; /* 75px * 0.75 = 56.25px */
    }
}

/* Extra small screens: scale down navbar logo and navbar height */
@media (max-width: 379px) {
    .logo img {
        height: 56px; /* 80px * 0.7 = 56px */
    }
    .navbar {
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }
    .nav-container {
        padding: 0.7rem;
    }
}

/* Very extra small screens: further scale down footer logos */
@media (max-width: 449px) {
    .footer-logos img {
        height: 42.19px; /* 75px * 0.75 * 0.75 = 42.1875px */
    }
}
