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

body {
    font-family: 'Raleway', sans-serif;
    background-color: #f8f9fa;
    color: #444444;
    line-height: 1.8;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Main container - make it full width */
.container {
    width: 100%;
    padding: 0; /* Remove padding */
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 997;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: #4e4e4e;
    text-decoration: none;
}

.logo span {
    color: #2487ce;
}

.menu-button {
    display: none;
    cursor: pointer;
    font-size: 24px;
    border: none;
    background: none;
    color: #4e4e4e;
}

.navigation {
    display: flex;
    list-style: none;
}

.navigation li {
    padding: 0 15px;
}

.navigation li a {
    color: #4e4e4e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 15px;
    cursor: pointer;
}

.navigation li a:hover, 
.navigation li a.active {
    color: #2487ce;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.menu-overlay.active {
    display: flex;
}

.menu-overlay .close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
}

.menu-overlay ul {
    list-style: none;
    text-align: center;
}

.menu-overlay li {
    margin: 20px 0;
}

.menu-overlay li a {
    font-size: 24px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
}

.menu-overlay li a:hover {
    color: #2487ce;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
}


#current-date {
    font-weight: 600;
    font-size: 14px;
    color: #4e4e4e;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.theme-toggle,
.lang-toggle {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #34495e;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.theme-toggle:hover,
.lang-toggle:hover {
    background: #2487ce;
    color: #fff;
    border-color: #2487ce;
}

/* Sun Info Bar */
.sun-info-bar {
    background: #f8f9fa;
    color: #34495e;
    padding: 8px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.sun-info-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sun-info-left,
.sun-info-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.sun-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.sun-icon-container .fa-arrow-up {
    color: #2487ce;
    font-size: 14px;
}

.sun-icon-container .fa-arrow-down {
    color: #2487ce;
    font-size: 14px;
}

.sun-icon-container .fa-sun {
    color: #ffc107;
    font-size: 14px;
}

.sun-time {
    font-size: 14px;
    font-weight: 600;
    color: #2487ce;
}

.datetime {
    display: flex;
    align-items: center;
    text-align: center;
}

/* Main section */
.main-section {
    padding-top: 75px;
    width: 100%;
}

/* Common styles for sections - make them full width */
.video-section, .weather-cards-section, .faq-section {
    background-color: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    width: 100%;
    /* Remove horizontal padding, keep top/bottom padding */
    padding: 10px 0 20px 0;
}

/* Add inner container for content padding */
.video-section > *:not(.video-container), 
.weather-cards-section > *:not(.card-container):not(.all-data), 
.faq-section > * {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Make video container and card container full width but with max-width content */
.video-container, .card-container, .all-data, .faq-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    color: #4e4e4e;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 10px;
}

.section-title span {
    color: #2487ce;
}

/* Camera section */
.video-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.video-block {
    aspect-ratio: 16/9;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.video-block iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.camera-buttons {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.camera-btn {
    background-color: #f8f9fa;
    color: #4e4e4e;
    border: 1px solid #e0e0e0;
    border-radius: 0px;
    padding: 8px 25px;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.camera-btn.active {
    background-color: #2487ce;
    color: #fff;
    border-color: #2487ce;
}

.camera-btn:hover {
    background-color: #2487ce;
    color: #fff;
    border-color: #2487ce;
}

/* Weather cards */
.weather-cards-section {
    margin-top: 0px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.card {
    background-color: #f8f9fa;
    border-radius: 0px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card i {
    font-size: 30px;
    margin-bottom: 10px;
    color: #2487ce;
}

.card .title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #4e4e4e;
}

.card .value {
    font-size: 20px;
    font-weight: 700;
    color: #2487ce;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    position: relative;
}

/* Pulse animation for extreme values */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.card .value[style*="#dc3545"],
.card .value[style*="#6f1e51"] {
    animation: pulse 2s infinite;
}

/* Tooltip styling */
.card .value[title] {
    cursor: help;
}

.card .value[title]:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}


/* Subtle glow effect for extreme values */
.card[data-extreme="true"] {
    position: relative;
    overflow: hidden;
}

.card[data-extreme="true"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(220, 53, 69, 0.5);
    border-radius: inherit;
    animation: inward-pulse 3s infinite;
    pointer-events: none;
}

@keyframes inward-pulse {
    0%, 100% { 
        opacity: 0;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(0.95);
    }
}

.show-more-btn {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 10px 25px;
    background-color: #2487ce;
    color: #fff;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
}

.show-more-btn:hover {
    background-color: #3194db;
    box-shadow: 0 5px 15px rgba(36, 135, 206, 0.3);
}

.all-data {
    display: none;
}

/* DateTime information */
.datetime-container {
    text-align: right;
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
}

/* FAQ section */
.faq-container {
    margin-top: 20px;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 0px;
    overflow: hidden;
}

.faq-question {
    background-color: #f8f9fa;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
    color: #4e4e4e;
    border-left: 3px solid #2487ce;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: #2487ce;
}

.faq-answer {
    background-color: #fff;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 20px;
    max-height: 8000px; /* Adjust value as needed */
}

.faq-content {
    line-height: 1.8;
}

.faq-content p {
    margin-bottom: 15px;
}

.faq-content h3 {
    margin: 15px 0 10px 0;
    color: #2487ce;
    font-size: 18px;
}

.faq-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.faq-content li {
    margin-bottom: 5px;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 30px 0 20px;
    color: #777;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: #4e4e4e;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 30px;
    background-color: #2487ce;
}

.footer-text {
    line-height: 1.8;
    font-size: 14px;
    color: #777;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    padding: 5px 0;
}

.footer-links a {
    color: #777;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    color: #2487ce;
    padding-left: 5px;
}

.footer-contact {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    color: #999;
}

/* Simple Footer Styles */
.footer-simple {
    text-align: center;
    padding: 20px 0;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: #4e4e4e;
    margin-bottom: 8px;
}

.footer-logo span:first-child {
    color: #4e4e4e;
}

.footer-logo span:last-child {
    color: #2487ce;
}

.footer-simple p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 1200px) {
    .card-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .card-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .card {
        padding: 12px 8px;
    }
    
    .card i {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .card .title {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .card .value {
        font-size: 18px;
    }
    
    .faq-question {
        font-size: 16px;
    }
    
    .sun-time {
        font-size: 13px;
    }
    
    #current-date {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .menu-button {
        display: block;
    }
    
    .navigation {
        display: none;
    }
    
    .card-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .card {
        padding: 10px 5px;
    }
    
    .card i {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .card .title {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .card .value {
        font-size: 15px;
    }
    
    .video-container {
        grid-template-columns: 1fr;
    }
    
    .video-block:nth-child(2) {
        display: none;
    }
    
    .camera-buttons {
        display: block;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    
    .faq-question {
        font-size: 15px;
        padding: 12px 15px;
    }
    
    .sun-time {
        font-size: 12px;
    }
    
    #current-date {
        font-size: 12px;
    }

    /* Adjust inner padding for smaller screens */
    .video-container, .card-container, .all-data, .faq-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .sun-info-bar .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .video-section > *:not(.video-container), 
    .weather-cards-section > *:not(.card-container):not(.all-data), 
    .faq-section > * {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 20px;
    }
    
    .card-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .card {
        padding: 8px 4px;
    }
    
    .card i {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .card .title {
        font-size: 10px;
        margin-bottom: 3px;
    }
    
    .card .value {
        font-size: 14px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Adjust footer logo for small screens */
    .footer-logo {
        font-size: 20px;
    }
    
    .faq-question {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .sun-time {
        font-size: 11px;
    }
    
    #current-date {
        font-size: 11px;
    }
    
    .faq-answer.active {
        padding: 15px;
    }

    /* Further reduce padding for very small screens */
    .video-container, .card-container, .all-data, .faq-container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .sun-info-bar .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .video-section > *:not(.video-container), 
    .weather-cards-section > *:not(.card-container):not(.all-data), 
    .faq-section > * {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 480px) {
    .card-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }
    
    .card {
        padding: 6px 3px;
    }
    
    .card i {
        font-size: 16px;
        margin-bottom: 3px;
    }
    
    .card .title {
        font-size: 9px;
        margin-bottom: 2px;
    }
    
    .card .value {
        font-size: 12px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Adjust footer logo for very small screens */
    .footer-logo {
        font-size: 18px;
    }
    
    .footer-simple p {
        font-size: 12px;
    }
    
    .sun-time {
        font-size: 10px;
    }
    
    #current-date {
        font-size: 10px;
    }

    /* Minimal padding for extra small screens */
    .video-container, .card-container, .all-data, .faq-container {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .sun-info-bar .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .video-section > *:not(.video-container), 
    .weather-cards-section > *:not(.card-container):not(.all-data), 
    .faq-section > * {
        padding-left: 8px;
        padding-right: 8px;
    }
}
/* Dark Theme */
[data-theme="dark"] {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

[data-theme="dark"] header {
    background-color: #252525;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .sun-info-bar {
    background: #2a2a2a;
    border-bottom: 1px solid #3a3a3a;
}

[data-theme="dark"] .sun-info-bar .datetime {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] #current-date {
    color: #a0a0a0;
}

[data-theme="dark"] .card {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
}

[data-theme="dark"] .weather-cards-section,
[data-theme="dark"] .video-section,
[data-theme="dark"] .faq-section {
    background-color: #252525;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .lang-toggle:hover {
    background: #2487ce;
    color: #fff;
    border-color: #2487ce;
}

/* Footer Dark Theme */
[data-theme="dark"] footer {
    background-color: #252525;
    border-top: 1px solid #3a3a3a;
}

[data-theme="dark"] .footer-logo span:first-child {
    color: #e0e0e0;
}

[data-theme="dark"] .footer-logo span:last-child {
    color: #2487ce;
}

[data-theme="dark"] .footer-simple p {
    color: #a0a0a0;
}

[data-theme="dark"] .footer-bottom {
    color: #777;
    border-top: 1px solid #3a3a3a;
}

/* Weather Card Tooltip Styles */
.weather-card-tooltip {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 16px;
    max-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: tooltipFadeIn 0.3s ease-out;
    cursor: pointer;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.weather-card-tooltip .tooltip-header {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.weather-card-tooltip .tooltip-value {
    font-size: 24px;
    font-weight: bold;
    color: #2487ce;
    text-align: center;
    margin-bottom: 8px;
}

.weather-card-tooltip .tooltip-condition {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 12px;
    font-style: italic;
}

.weather-card-tooltip .tooltip-info {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    text-align: left;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.weather-card-tooltip .tooltip-more {
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.weather-card-tooltip .tooltip-more a {
    color: #2487ce;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.weather-card-tooltip .tooltip-more a:hover {
    text-decoration: underline;
}

.weather-card-tooltip .tooltip-close {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 8px;
}

/* Dark theme tooltip */
[data-theme="dark"] .weather-card-tooltip {
    background: rgba(42, 42, 42, 0.98);
    border-color: #3a3a3a;
}

[data-theme="dark"] .weather-card-tooltip .tooltip-header {
    color: #e0e0e0;
}

[data-theme="dark"] .weather-card-tooltip .tooltip-condition {
    color: #aaa;
}

[data-theme="dark"] .weather-card-tooltip .tooltip-info {
    color: #bbb;
    border-top-color: #444;
}

[data-theme="dark"] .weather-card-tooltip .tooltip-more {
    border-top-color: #444;
}

[data-theme="dark"] .weather-card-tooltip .tooltip-more a {
    color: #5dade2;
}

[data-theme="dark"] .weather-card-tooltip .tooltip-close {
    color: #777;
}

/* Make cards appear clickable on mobile */
.card {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    transition: transform 0.1s ease-out;
}

.card:active {
    transform: scale(0.95);
}
