/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2196f3;
    --primary-dark: #1976d2;
    --secondary-color: #ff4081;
    --accent-color: #7c4dff;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --background-gradient: linear-gradient(135deg, #1976d2 0%, #64b5f6 100%);
    --card-gradient: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
}

/* Navigation styles */
.navbar {
    background: var(--background-gradient);
    padding: 0.45rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-image {
    height: 72px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-text {
    color: white;
    font-size: 1.7rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Remove the old hover effect since we're using the new one */
.logo:hover .logo-image {
    transform: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 0.5rem 0.7rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Hero section styles */
.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.5) 0%, rgba(100, 181, 246, 0.5) 50%, rgba(33, 150, 243, 0.5) 100%), url('images/HomepageBackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    display: none;
}

.welcome-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.8rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: heroSlideIn 0.85s ease-out 0.15s forwards;
}

.welcome-officer-image {
    width: 150px;
    max-width: 30vw;
    height: auto;
    opacity: 0;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
    animation: heroSlideIn 0.85s ease-out 0.25s forwards;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: heroSlideIn 0.85s ease-out 0.35s forwards;
}

/* Button grid styles */
.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.nav-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: cardReveal 0.7s ease forwards;
}

.button-grid .nav-button:nth-child(1) { animation-delay: 0.45s; }
.button-grid .nav-button:nth-child(2) { animation-delay: 0.55s; }
.button-grid .nav-button:nth-child(3) { animation-delay: 0.65s; }
.button-grid .nav-button:nth-child(4) { animation-delay: 0.75s; }
.button-grid .nav-button:nth-child(5) { animation-delay: 0.85s; }
.button-grid .nav-button:nth-child(6) { animation-delay: 0.95s; }
.button-grid .nav-button:nth-child(7) { animation-delay: 1.05s; }
.button-grid .nav-button:nth-child(8) { animation-delay: 1.15s; }

@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-button:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.nav-button i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.nav-button:hover i {
    transform: scale(1.1) rotate(5deg);
}

.nav-button span {
    font-size: 1.3rem;
    font-weight: 500;
}

/* Footer styles */
footer {
    background-color: #ffea00;
    color: black;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    font-size: 0.9em;
    line-height: 1.5;
}

footer p {
    margin: 10px 0;
}

footer p:first-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 15px;
    margin-bottom: 15px;
    font-size: 0.9em;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
}

footer a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Remove sticker-related styles */
.sticker-image,
.attribution {
    display: none;
}

/* Content section styles */
.content-section {
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--card-gradient);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.content-section h1 {
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.search-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-section input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-section input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
    outline: none;
}

.search-section button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.search-section button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.reference-content {
    min-height: 400px;
}

.placeholder-text {
    text-align: center;
    color: #666;
    padding: 3rem;
    border: 2px dashed #e0e0e0;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.placeholder-text i {
    font-size: 2rem;
    color: #1a237e;
}

/* Forms grid styles */
.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
}

.form-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 0; /* Prevents overflow */
}

.form-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.form-details h3 {
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
    font-size: 1rem;
    word-wrap: break-word;
}

.form-details p {
    color: #666;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    word-wrap: break-word;
}

.form-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.preview-btn, .download-btn {
    flex: 1;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
}

.preview-btn:hover, .download-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Copyright page styles */
.copyright-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.copyright-section {
    background: white;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.copyright-section h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

copyright-section p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
    color: #333;
}

copyright-section ul {
    list-style-type: none;
    margin-left: 0;
    margin-bottom: 1.5rem;
}

copyright-section li {
    margin-bottom: 0.8rem;
    color: #333;
    padding-left: 1.5rem;
    position: relative;
}

copyright-section li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

copyright-section address {
    font-style: normal;
    line-height: 1.8;
    color: #666;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow: auto;
}

.modal-content {
    background: white;
    margin: 2rem auto;
    width: 90%;
    max-width: 1000px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-dark);
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-dark);
}

.modal-body {
    padding: 2rem;
}

/* Calculator section styles */
.calculator-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.calculator-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.calculator-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.calculator-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.input-group {
    width: 100%;
    max-width: 400px;
}

.input-group label {
    display: block;
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-align: left;
}

.date-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.date-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.period-toggle {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.period-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.period-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.period-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(124, 77, 255, 0.4);
}

.calculate-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.calculate-btn:hover {
    background: #6c3dd1;
    transform: translateY(-2px);
}

.result-container {
    width: 100%;
    max-width: 400px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.result-container.show {
    opacity: 1;
    transform: translateY(0);
}

.result-box {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.result-box h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.submission-date {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.days-left {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.warning-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Age calculator styles */
.age-result {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-top: 1rem;
}

.age-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    min-width: 80px;
}

.age-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.age-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* DateTime Display styles */
.datetime-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 0.85rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.35rem 0.7rem;
    border-radius: 10px;
    margin-right: 0.3rem;
    min-width: 122px;
}

.datetime-display .time {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.1rem;
}

.datetime-display .date {
    font-size: 0.72rem;
    opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
    .hero h1,
    .hero p,
    .nav-button,
    .welcome-officer-image {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}

/* Table container styles */
.table-container {
    overflow-x: auto;
    margin-top: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.conversion-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.conversion-table th,
.conversion-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.conversion-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.conversion-table th:first-child {
    border-top-left-radius: 10px;
}

.conversion-table th:last-child {
    border-top-right-radius: 10px;
}

.conversion-table tr:last-child td {
    border-bottom: none;
}

.conversion-table tr:hover {
    background: #f5f5f5;
}

.view-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #6c3dd1;
    transform: translateY(-2px);
}

.view-btn i {
    font-size: 1rem;
}

/* BNS Table styles */
.bns-table-container {
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: 10px;
}

.bns-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    background: white;
}

.bns-table th,
.bns-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.bns-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.bns-table tr:nth-child(even) {
    background: #f8f9fa;
}

.bns-table tr:hover {
    background: #f0f0f0;
}

/* Search Results styles */
#searchResultsContainer {
    margin: 2rem 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

#searchResultsContainer h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: left;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 80px 20px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        margin: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        display: block;
        padding: 12px 15px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .welcome-header {
        flex-direction: column;
        gap: 0.7rem;
    }

    .welcome-officer-image {
        width: 110px;
        max-width: 45vw;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .button-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .content-section {
        padding: 6rem 1rem 4rem;
    }

    .container {
        padding: 1.5rem;
    }

    .search-section {
        flex-direction: column;
    }

    .search-section button {
        width: 100%;
        justify-content: center;
    }

    .forms-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .nav-button i {
        font-size: 2rem;
    }

    .attribution {
        font-size: 0.8rem;
    }

    .attribution a {
        font-size: 0.7rem;
    }

    .logo-image {
        height: 80px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .form-buttons {
        flex-direction: column;
    }

    .modal-content {
        width: 95%;
        margin: 1rem auto;
    }

    .modal-body {
        padding: 1rem;
    }

    #pdfPreview {
        height: 400px;
    }

    .calculator-section {
        margin: 1rem;
        padding: 1.5rem;
    }

    .calculator-section h2 {
        font-size: 1.5rem;
    }

    .calculator-section p {
        font-size: 1rem;
    }

    .date-input, .calculate-btn {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .period-toggle {
        flex-direction: column;
        gap: 0.8rem;
    }

    .period-btn {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }

    .submission-date {
        font-size: 1.5rem;
    }

    .age-result {
        flex-direction: column;
        gap: 0.5rem;
    }

    .age-unit {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding: 0.8rem;
    }

    .age-number {
        font-size: 1.5rem;
    }

    .age-label {
        font-size: 0.8rem;
    }

    .datetime-display {
        display: none;
    }

    .table-container {
        margin: 1rem -1rem;
        border-radius: 0;
    }

    .conversion-table {
        min-width: 600px;
    }

    .conversion-table th,
    .conversion-table td {
        padding: 0.8rem;
    }

    .bns-table {
        min-width: 600px;
    }

    .bns-table th,
    .bns-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    #searchResultsContainer {
        margin: 1rem 0;
        padding: 1rem;
    }

    #searchResultsContainer h2 {
        font-size: 1.2rem;
    }

    .bns-table {
        min-width: 600px;
    }

    .bns-table th,
    .bns-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .form-card {
        padding: 0.8rem;
    }

    .form-icon {
        font-size: 1.3rem;
    }

    .form-details h3 {
        font-size: 0.9rem;
    }

    .form-details p {
        font-size: 0.75rem;
    }

    .preview-btn, .download-btn {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .forms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 320px) {
    .forms-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive adjustments for contact form */
@media (max-width: 768px) {
    .contact-form-container {
        margin: 1rem;
        padding: 2rem;
    }
    
    .form-group h3 {
        font-size: 1.2rem;
    }
    
    .form-group label {
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .form-group h3 {
        font-size: 1.1rem;
    }
}

/* Sources Section */
.sources-section {
    background-color: #f9f9f9;
    padding: 30px 0;
    margin-top: 50px;
}

.sources-section h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.sources-disclaimer {
    text-align: center;
    margin-bottom: 25px;
    color: #555;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    line-height: 1.5;
    padding: 0 15px;
}

.sources-list {
    list-style: decimal;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 0 40px;
}

.sources-list li {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95em;
}

.sources-list a {
    color: #2d85de;
    text-decoration: none;
    word-break: break-all;
}

.sources-list a:hover {
    text-decoration: underline;
}

/* Mobile menu toggle styles */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 60px;
        right: -300px;
        width: 280px;
        height: calc(100vh - 60px);
        background-color: #fff;
        display: flex;
        flex-direction: column;
        padding-top: 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
        cursor: pointer;
        z-index: 1001;
    }
    
    .menu-toggle i {
        font-size: 24px;
        transition: transform 0.3s ease;
    }
    
    .menu-toggle.active i {
        transform: rotate(90deg);
    }
    
    .nav-links li {
        width: 100%;
        margin: 0;
    }
    
    .nav-links a {
        width: 100%;
        padding: 15px 20px;
        border-radius: 0;
        border-bottom: 1px solid #eee;
    }
}

/* Mobile menu toggle styles - FIXED VERSION */
@media (max-width: 900px) {
    .menu-toggle {
        display: block !important;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
        margin-right: 15px;
    }
    
    .nav-links {
        position: fixed !important;
        top: 60px !important;
        right: -300px !important;
        width: 280px !important;
        height: calc(100vh - 60px) !important;
        background-color: white !important;
        flex-direction: column !important;
        padding: 20px 0 !important;
        transition: right 0.3s ease-in-out !important;
        z-index: 1000 !important;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1) !important;
        overflow-y: auto !important;
    }
    
    .nav-links.active {
        right: 0 !important;
        display: flex !important;
    }
    
    .nav-links li {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .nav-links a {
        width: 100% !important;
        display: block !important;
        padding: 15px 20px !important;
        color: #333 !important;
        border-bottom: 1px solid #eee !important;
        text-align: left !important;
    }
    
    .nav-links a.active {
        background-color: rgba(33, 150, 243, 0.1) !important;
        color: var(--primary-color) !important;
    }
}

/* Global desktop nav: two-row polished menu UI for all pages */
@media (min-width: 901px) {
    .navbar {
        align-items: flex-start;
        gap: 0.9rem;
        padding-top: 0.35rem;
        padding-bottom: 0.45rem;
    }

    .nav-links {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        grid-auto-rows: 1fr;
        gap: 0.45rem;
        width: min(900px, 100%);
        justify-content: end;
        align-content: start;
    }

    .nav-links li {
        list-style: none;
        display: flex;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 2.55rem;
        padding: 0.42rem 0.6rem;
        text-align: center;
        font-size: 0.76rem;
        font-weight: 700;
        line-height: 1.2;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
        letter-spacing: 0.1px;
        border: 1px solid rgba(255, 255, 255, 0.36);
        border-radius: 9px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
    }

    .nav-links a:hover {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.14));
        border-color: rgba(255, 255, 255, 0.55);
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
        transform: translateY(-1px);
    }

    .nav-links a.active {
        background: rgba(255, 255, 255, 0.32);
        border-color: rgba(255, 255, 255, 0.7);
    }

    .hero {
        padding-top: 9.6rem;
    }
}

/* Global mobile nav override: modern drawer UI for all pages */
@media (max-width: 900px) {
    .navbar {
        z-index: 1200;
    }

    .datetime-display {
        display: none !important;
    }

    .menu-toggle {
        display: block !important;
        position: relative;
        z-index: 5101;
        margin-right: 12px;
        padding: 0.3rem 0.55rem;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.28);
    }

    .nav-links {
        top: 0 !important;
        right: -100% !important;
        width: min(88vw, 340px) !important;
        height: 100vh !important;
        padding: 5.7rem 0.65rem 1rem !important;
        margin: 0 !important;
        gap: 0.2rem;
        z-index: 5000 !important;
        background: linear-gradient(165deg, rgba(8, 34, 74, 0.97), rgba(31, 105, 185, 0.95)) !important;
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: -14px 0 32px rgba(0, 0, 0, 0.28) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        overflow-y: auto !important;
        align-content: flex-start;
    }

    .nav-links.active {
        right: 0 !important;
        display: flex !important;
    }

    .nav-links li {
        width: 100% !important;
        margin: 0 !important;
    }

    .nav-links a {
        display: block !important;
        width: 100% !important;
        padding: 0.82rem 0.9rem !important;
        margin-bottom: 0.45rem;
        text-align: left !important;
        color: #f2f8ff !important;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: anywhere;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.18) !important;
        transform: translateX(2px);
    }

    .nav-links a.active {
        color: #ffffff !important;
        background: linear-gradient(90deg, rgba(31, 172, 255, 0.45), rgba(68, 197, 255, 0.28)) !important;
        border-color: rgba(152, 229, 255, 0.65) !important;
    }
}