/* Variables */
:root {
    --primary-blue: #0d47a1;
    --secondary-blue: #1976d2;
    --primary-orange: #f57c00;
    --secondary-orange: #ff9800;
    --white: #ffffff;
    --light-bg: #f4f6f9;
    --dark-text: #333333;
    --light-text: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 1px 3px rgba(0,0,0,0.05);
    --hover-shadow: 0 4px 6px rgba(0,0,0,0.08);
    --transition: all 0.2s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}



/* Header & Nav */
header {
    background: #112240;
    color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-orange);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: rgba(0,0,0,0.2);
}

.logo a {
    text-decoration: none;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-orange);
}

.digital-clock {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    opacity: 0.8;
}

.navbar {
    padding: 0 5%;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 5px;
}

.nav-list > li > a, .dropbtn {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 18px 15px;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-list > li > a:hover, .dropdown:hover .dropbtn, .nav-list > li > a.active {
    color: var(--primary-orange);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #112240;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 1;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-orange);
}

.dropdown:hover .dropdown-content {
    display: block;
    transform: translateY(0);
    opacity: 1;
    animation: dropDownAnim 0.3s ease forwards;
}

@keyframes dropDownAnim {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-content a {
    color: var(--white);
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(255, 152, 0, 0.2);
    color: var(--primary-orange);
    padding-left: 28px;
}

/* Mobile Menu Hamburger */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 15px;
}

.bar {
    display: block;
    width: 30px;
    height: 4px;
    margin: 6px auto;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background-color: var(--primary-orange);
    border-radius: 2px;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* News Ticker */
.news-ticker {
    display: flex;
    background: var(--dark-text);
    color: var(--white);
    align-items: center;
    border-bottom: 2px solid var(--primary-orange);
}

.ticker-title {
    background: var(--primary-orange);
    padding: 10px 20px;
    font-weight: bold;
    white-space: nowrap;
    z-index: 2;
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    padding: 10px 0;
}

.ticker-content marquee {
    font-size: 0.95rem;
}

/* Main Layout */
.main-container {
    display: flex;
    flex-wrap: wrap;
    padding: 30px 5%;
    gap: 20px;
    flex: 1;
}

.content {
    flex: 3;
    min-width: 300px;
}

.sidebar {
    flex: 1;
    min-width: 250px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.card h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-bg);
}

.card p {
    margin-bottom: 15px;
    color: var(--light-text);
    font-size: 1.05rem;
}

/* Featured Image in Content Pages */
.content-featured-image {
    margin: 20px 0;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.content-featured-image:hover {
    box-shadow: var(--hover-shadow);
}

.content-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 600px;
}


.card ul {
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--light-text);
}

.card li {
    margin-bottom: 8px;
}

/* Widgets */
.widget {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.widget h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-orange);
    display: inline-block;
    padding-bottom: 5px;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 10px;
}

.widget ul li a {
    text-decoration: none;
    color: var(--dark-text);
    transition: var(--transition);
}

.widget ul li a:hover {
    color: var(--primary-orange);
    padding-left: 5px;
}

/* Nav Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.nav-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    width: 48%;
}

.nav-btn:hover {
    background: var(--primary-orange);
}

/* Calendar */
#calendar-container table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
}

#calendar-container th {
    background: var(--light-bg);
    padding: 5px;
    font-size: 0.9rem;
}

#calendar-container td {
    padding: 8px 5px;
    font-size: 0.9rem;
    cursor: default;
}

#calendar-container td.today {
    background: var(--primary-orange);
    color: var(--white);
    border-radius: 50%;
    font-weight: bold;
}

/* Weather */
#weather-info {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: var(--primary-blue);
    padding: 15px 0;
}

/* Counter */
.counter {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-orange);
    text-align: center;
    margin: 10px 0;
}

/* Footer */
footer {
    background: #0a367a;
    color: var(--white);
    padding: 40px 5% 20px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-orange);
}

.home-btn {
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.home-btn:hover {
    background: var(--white);
    color: var(--primary-orange);
}

.text-right {
    text-align: right;
}

/* Scroll to Top */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-orange);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

#scrollToTopBtn:hover {
    background-color: #e65100;
    transform: translateY(-3px);
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-overlay.hidden {
    display: none;
}

.popup-content {
    background: transparent;
    width: 350px;
    height: auto;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    overflow: hidden;
    animation: popupEnter 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-content.welcome-popup {
    background: var(--white);
    width: 450px;
    min-height: 250px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.popup-text h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.popup-text p {
    color: var(--light-text);
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.explore-btn {
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
}

.explore-btn:hover {
    background: var(--secondary-orange);
}

@keyframes popupEnter {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.popup-content img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    z-index: 10;
}

.close-btn:hover {
    background: var(--primary-orange);
    transform: scale(1.1) rotate(90deg);
}

/* Remove old ad-banner class styling since we replaced it with an image */

/* Forms */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
}

.contact-form button {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form button:hover {
    background: var(--primary-orange);
}

/* Modern Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #000;
    height: 200px;
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.gallery-item:hover img {
    opacity: 0.8;
}

/* Lightbox System */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: contain;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--primary-orange);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    cursor: pointer;
    user-select: none;
    padding: 20px;
    transition: color 0.3s, transform 0.2s;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
}

.lightbox-nav:hover {
    color: var(--primary-orange);
    background: rgba(0,0,0,0.6);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.9);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Video Cards */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.video-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
}

.video-wrapper iframe, .video-wrapper video, .video-wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 15px 20px;
}

.video-info h3 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 8px;
    border-bottom: none;
    padding-bottom: 0;
}

.video-info p {
    color: var(--light-text);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Responsive Navbar Fixes */
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .navbar {
        justify-content: flex-end;
        width: 100%;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #112240;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    
    .nav-list.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .nav-list > li {
        width: 100%;
    }

    .nav-list > li > a, .dropdown .dropbtn {
        /* Mobile overrides */
    }
    
    .menu-toggle {
        display: block;
        margin-right: 5%;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: rgba(0,0,0,0.2);
        border-top: none;
        transform: translateY(0);
        opacity: 1;
        display: none; /* keep hidden until hover/click */
    }
    
    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        color: var(--white);
        padding-left: 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .text-right {
        text-align: center;
    }
}

