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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Performance Optimization: Image Rendering */
img {
    /* Optimize image rendering for faster loading */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Hint browser to prioritize speed over quality */
    content-visibility: auto;
    /* Prevent layout shift */
    height: auto;
    max-width: 100%;
}

/* Lazy loading placeholder background */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

/* Remove background for tip images (disaster icons) */
.tip-image[loading="lazy"] {
    background: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 4vw, 40px);
    width: 100%;
}

/* Ultra-wide Desktops (1681px - 1920px) */
@media (min-width: 1681px) {
    .container {
        max-width: 1600px;
    }
    
    .welcome-title {
        font-size: 4rem;
    }
    
    .welcome-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .tips-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Large Desktops (1441px - 1680px) */
@media (min-width: 1441px) and (max-width: 1680px) {
    .container {
        max-width: 1400px;
    }
    
    .welcome-title {
        font-size: 3.8rem;
    }
    
    .welcome-subtitle {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2.6rem;
    }
    
    .tips-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.3rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.3rem;
    }
}

/* Standard Large Desktops (1280px - 1440px) */
@media (min-width: 1280px) and (max-width: 1440px) {
    .container {
        max-width: 1280px;
    }
    
    .welcome-title {
        font-size: 3.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .tips-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.2rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.2rem;
    }
}

/* Header Styles */
.header {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e7eb;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(0.5rem, 1.5vw, 1rem) 0;
    gap: clamp(0.5rem, 2vw, 1.5rem);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    flex: 0 0 auto;
    min-width: 0; /* Allows flex items to shrink */
}

/* Desktop alignment */
@media (min-width: 1025px) {
    .logo-section {
        margin-left: -4rem;
    }
}

/* Tablet and below - reset margin */
@media (max-width: 1024px) {
    .logo-section {
        margin-left: 0;
    }
}

/* DisasterLink Logo */
.logo-section .logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .logo-section .logo {
        height: 45px;
    }
}

.site-title {
    color: #223d68;
    font-size: clamp(0.9rem, 2.5vw, 1.8rem);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Hide nav menu on tablets and mobile */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 2vw, 2rem);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

/* Hide mobile-only elements on desktop */
.mobile-auth-section {
    display: none;
}

.nav-link {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem clamp(0.5rem, 1vw, 1rem);
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: clamp(0.85rem, 1vw, 1rem);
    white-space: nowrap;
}

.nav-link:hover {
    color: #1e40af;
}

.nav-link.active {
    font-weight: 700;
    background-color: rgba(29, 78, 216, 0.1);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

/* Hide mobile-only link on desktop, show desktop dropdown trigger */
.mobile-only-link {
    display: none;
}

.desktop-only-dropdown {
    display: block;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    color: #1d4ed8;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border-radius: 6px;
    margin: 4px 8px;
}

.dropdown-content a:hover {
    background-color: rgba(29, 78, 216, 0.1);
    color: #1e40af;
}

.dropdown-content a:first-child {
    margin-top: 8px;
}

.dropdown-content a:last-child {
    margin-bottom: 8px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: clamp(0.3rem, 1vw, 1rem);
    flex: 0 0 auto;
    flex-shrink: 0;
}

/* Desktop alignment */
@media (min-width: 1025px) {
    .header-actions {
        margin-right: -4rem;
    }
}

/* Tablet and below - reset margin */
@media (max-width: 1024px) {
    .header-actions {
        margin-right: 0;
    }
}

.register-btn,
.login-btn {
    padding: clamp(0.35rem, 0.8vw, 0.6rem) clamp(0.6rem, 1.5vw, 1.5rem);
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: inline-block;
    font-size: clamp(0.7rem, 1vw, 1rem);
    white-space: nowrap;
}

.register-btn {
    background-color: white;
    color: #1d4ed8;
    border: 2px solid #1d4ed8;
}

.register-btn:hover {
    background-color: #1d4ed8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.login-btn {
    background-color: #1d4ed8;
    color: white;
    border: 2px solid white;
}

.login-btn:hover {
    background-color: white;
    color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    position: relative;
    width: clamp(28px, 4vw, 32px);
    height: clamp(28px, 4vw, 32px);
    flex-shrink: 0;
}

/* Show hamburger menu on tablets and below */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide desktop auth buttons on mobile since they're in the nav menu */
    .desktop-only-auth-btn {
        display: none !important;
    }
}

.mobile-menu-toggle:hover {
    background-color: rgba(29, 78, 216, 0.1);
}

.mobile-menu-toggle .menu-icon,
.mobile-menu-toggle .close-icon {
    font-size: 1.2rem;
    color: #1d4ed8;
    line-height: 1;
    transition: all 0.3s ease;
    position: absolute;
}

.mobile-menu-toggle .menu-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.mobile-menu-toggle .close-icon {
    opacity: 0;
    transform: rotate(90deg);
}

.mobile-menu-toggle.active .menu-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

.mobile-menu-toggle.active .close-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Home Section */
.home-section {
    padding: 0;
}

/* Welcome Section Styles */
.welcome-section {
    background: url('../images/WelcomeBg.png') center center/cover no-repeat;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-overlay {
    width: 100%;
    padding: 6rem 0 2rem 0;
}

.welcome-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.welcome-title {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 1px;
    line-height: 1.1;
}

.welcome-subtitle {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 1rem;
    color: #223d68;
}

/* Lower the About Us section title */
.about-section .section-title {
    margin-top: 2rem;
}

.white-text {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-section .section-title {
    margin-bottom: 1.5rem;
    margin-top: 0;
}

/* News Section */
.news-section {
    padding: 0 0 3rem 0;
    background-color: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-content h3 {
    color: #223d68;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.read-more-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.3);
    width: fit-content;
    align-self: center;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
    color: white;
    border: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.4);
}

/* Tips Section */
.tips-section {
    padding: 4rem 0 !important;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%) !important;
    position: relative;
}

/* Removed overlay that was making text blurry */

.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tip-card {
    background: white;
    border-radius: 12px;
    padding: 2.0rem;
    text-align: center;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

.tip-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    display: block;
}

.tip-card h3 {
    color: #223d68;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
}

.tip-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center;
    flex-grow: 1;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-card h3 {
    color: #223d68;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.developers-list {
    list-style: none;
    margin-top: 1rem;
}

.developers-list li {
    color: #223d68;
    font-weight: 600;
    padding: 0.3rem 0;
}

.developers-list li:before {
    content: "• ";
    color: #223d68;
    font-weight: bold;
}

/* About Us Section */
.about-section {
    padding: 6rem 0 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: 2rem;
}

.about-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.about-link-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.about-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #223d68, #3498db);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.about-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.about-link-card:hover::before {
    transform: scaleX(1);
}

.about-card-content {
    text-align: center;
}

.about-card-content i {
    font-size: 3rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.about-link-card:hover .about-card-content i {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-card-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #223d68;
}

.about-card-content p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%) !important;
    position: relative;
}

.contact-info-only {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #3498db;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
    color: #223d68;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.emergency-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.emergency-header p strong {
    color: #223d68;
    font-size: 1.1rem;
}

.hotline-list p {
    color: #666;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.5;
}

.hotline-list i {
    color: #223d68;
    width: 16px;
}

.social-links {
    margin-top: 1rem;
}

.social-link {
    color: #223d68;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #223d68;
    color: white;
}

.contact-form-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.contact-form {
    padding: 0;
    margin-top: 1rem;
}

.contact-card .form-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.contact-form h3 {
    color: #223d68;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    color: #223d68;
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.form-group label i {
    margin-right: 0.5rem;
    color: #3498db;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: #1d4ed8;
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.2);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.submit-btn i {
    margin-right: 0.5rem;
}

.submit-btn:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Contact Section Responsive */
@media (max-width: 768px) {
    .contact-info-only {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .hotline-list p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: start;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ecf0f1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-section i {
    color: #3498db;
    margin-right: 0.5rem;
    width: 16px;
}

/* Map Section */
.map-section {
    position: relative;
    margin-top: 0rem;
}

.map-container {
    width: 100%;
    max-width: 350px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-top: 1rem;
    border: 2px solid #34495e;
}

.map-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-overlay i {
    color: white;
    font-size: 1.5rem;
}

.map-link:hover .map-overlay {
    opacity: 1;
}

/* About Section */
.about-section {
    background: none !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 0;
    margin-top: 0rem;
}

.about-section h4 {
    margin-bottom: 1rem;
    margin-top: 0;
}

.about-section p {
    text-align: left;
    color: #bdc3c7 !important;
    background: none !important;
    margin-top: 0;
    line-height: 1.6;
}

/* Contacts Section */
.contacts-section {
    text-align: left;
    margin-top: 0rem;
}

.emergency-numbers {
    margin-bottom: 2rem;
}

.emergency-numbers p {
    margin-bottom: 0.8rem;
    padding: 0.3rem 0;
}

.emergency-numbers strong {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Footer Logos */
.footer-logos {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1.5rem;
}

.footer-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 8px;
    border: 2px solid #34495e;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-bottom {
    background-color: #1a252f;
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid #34495e;
}

.footer-bottom p {
    color: #95a5a6;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.4rem;
    }
    
    .emergency-numbers p {
        margin-bottom: 0.5rem;
        padding: 0.2rem 0;
    }
    
    .map-container {
        margin: 0.75rem auto;
        max-width: 280px;
        height: 160px;
    }
    
    .footer-logos {
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .footer-logo {
        width: 60px;
        height: 60px;
        padding: 6px;
    }
    
    .footer-bottom {
        padding: 0.75rem 0;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #223d68;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 61, 104, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #1a2d4f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 61, 104, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .tip-card {
        padding: 1.8rem;
        min-height: 380px;
    }
    
    .tip-image {
        width: 150px;
        height: 150px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .about-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .contact-info-only {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Large Tablets and Small Laptops (900px - 1024px) */
@media (min-width: 900px) and (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    .site-title {
        font-size: 1.6rem;
    }
    
    .logo {
        height: 55px;
    }
    
    .welcome-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Standard Desktop (1025px - 1279px) */
@media (min-width: 1025px) and (max-width: 1279px) {
    .container {
        max-width: 1100px;
        padding: 0 40px;
    }
    
    .site-title {
        font-size: 1.7rem;
    }
    
    .logo {
        height: 58px;
    }
    
    .welcome-title {
        font-size: 3.3rem;
    }
    
    .welcome-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .tips-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .about-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Desktop (1280px - 1440px) */
@media (min-width: 1280px) and (max-width: 1440px) {
    .container {
        max-width: 1280px;
    }
    
    .welcome-title {
        font-size: 3.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .tips-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.2rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.2rem;
    }
}

/* Extra Large Desktop (1441px - 1680px) */
@media (min-width: 1441px) and (max-width: 1680px) {
    .container {
        max-width: 1400px;
    }
    
    .welcome-title {
        font-size: 3.8rem;
    }
    
    .welcome-subtitle {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2.6rem;
    }
    
    .tips-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.3rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.3rem;
    }
}

/* Ultra-Wide Desktop (1681px - 1920px) */
@media (min-width: 1681px) {
    .container {
        max-width: 1600px;
    }
    
    .welcome-title {
        font-size: 4rem;
    }
    
    .welcome-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .tips-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Tablet Landscape to Desktop (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .container {
        max-width: 1024px;
    }
    
    .nav-menu ul {
        gap: 1.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Tablet Landscape (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .site-title {
        font-size: 1.4rem;
    }
    
    .logo {
        height: 50px;
    }
    
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .login-btn,
    .register-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Mobile and Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Narrowed mobile menu matching civilian/responder exactly */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0.5rem;
        width: 10rem;
        background-color: white;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        border: 1px solid #e5e7eb;
        border-radius: 0 0 0.5rem 0.5rem;
        max-height: auto;
        min-height: auto;
        overflow-y: auto;
        z-index: 50;
    }
    
    @media (min-width: 640px) {
        .nav-menu {
            right: 1rem;
            width: 18rem;
            max-height: auto;
            min-height: auto;
        }
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 0.25rem 0;
        margin: 0;
    }
    
    .nav-menu ul li {
        margin: 0;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        font-weight: 500;
        text-align: left;
        margin: 0;
        border-radius: 0;
        border-left: 4px solid transparent;
        color: #1d4ed8;
        background-color: transparent;
        transition: all 0.15s ease-in-out;
    }
    
    .nav-link:hover {
        background-color: #eff6ff;
        border-left-color: #1d4ed8;
        color: #1e40af;
    }
    
    .nav-link.active {
        font-weight: 700;
        background-color: #bfdbfe;
        color: #1d4ed8;
    }
    
    /* Mobile Dropdown Styles */
    .dropdown {
        position: relative;
    }
    
    /* Hide desktop dropdown trigger, show mobile-only link */
    .desktop-only-dropdown {
        display: none !important;
    }
    
    .mobile-only-link {
        display: block !important;
    }
    
    /* Hide the dropdown content completely on mobile */
    .dropdown-content {
        display: none !important;
    }
    
    /* Mobile auth section - MUST show in mobile menu */
    .nav-menu .mobile-auth-section {
        display: block !important;
        padding: 0.5rem 0 0.75rem 0;
        background-color: white;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-menu .mobile-separator {
        height: 1px;
        background-color: #e5e7eb;
        margin: 0.5rem 0;
        display: block !important;
    }
    
    .nav-menu .mobile-auth-link {
        display: block !important;
        width: 100%;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem !important;
        font-weight: 500 !important;
        text-align: left;
        margin: 0;
        border-radius: 0;
        border-left: 4px solid transparent;
        color: #1d4ed8 !important;
        background-color: transparent;
        transition: all 0.15s ease-in-out;
        text-decoration: none !important;
        cursor: pointer;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-menu .mobile-auth-link:visited,
    .nav-menu .mobile-auth-link:link,
    .nav-menu .mobile-auth-link:active {
        color: #1d4ed8 !important;
        visibility: visible !important;
    }
    
    .nav-menu .mobile-auth-link:hover {
        background-color: #eff6ff;
        border-left-color: #1d4ed8;
        color: #1e40af !important;
    }
}

/* Tablet Portrait (600px - 768px) */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .welcome-title {
        font-size: 2.2rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
}

/* Small Tablet Portrait (600px - 768px) */
@media (min-width: 600px) and (max-width: 768px) {
    .site-title {
        font-size: 1.3rem;
    }
    
    .logo {
        height: 48px;
    }
    
    .welcome-title {
        font-size: 2.4rem;
    }
    
    .welcome-subtitle {
        font-size: 1.05rem;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
}

/* Large Mobile (481px - 599px) */
@media (min-width: 481px) and (max-width: 599px) {
    .site-title {
        font-size: 1.25rem;
    }
    
    .logo {
        height: 46px;
    }
    
    .welcome-title {
        font-size: 2.3rem;
    }
    
    .welcome-subtitle {
        font-size: 1.02rem;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.6rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.1rem;
    }
    
    .login-btn,
    .register-btn {
        padding: 0.55rem 1.1rem;
        font-size: 0.88rem;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .about-links-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .about-link-card {
        padding: 1.5rem;
    }
    
    .tip-card,
    .news-card,
    .about-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .site-title {
        font-size: 1rem;
    }
    
    .logo {
        height: 40px;
    }
    
    .login-btn,
    .register-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .header-actions {
        gap: 0.35rem;
    }
    
    .welcome-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .welcome-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .container {
        padding: 0 10px;
    }
}

/* Extra Small Mobile (320px - 360px) */
@media (min-width: 320px) and (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    .logo {
        height: 35px;
    }
    
    .site-title {
        font-size: 0.85rem;
    }
    
    .login-btn,
    .register-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .header-actions {
        gap: 0.3rem;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .welcome-subtitle {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .mobile-menu-toggle {
        width: 28px;
        height: 28px;
    }
    
    .tip-card,
    .news-card,
    .about-card {
        padding: 1rem;
    }
}

/* Ultra Small Mobile (below 320px) */
@media (max-width: 319px) {
    .container {
        padding: 0 6px;
    }
    
    .logo {
        height: 30px;
    }
    
    .site-title {
        font-size: 0.75rem;
    }
    
    .login-btn,
    .register-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .header-actions {
        gap: 0.25rem;
    }
    
    .welcome-title {
        font-size: 1.3rem;
    }
    
    .welcome-subtitle {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .mobile-menu-toggle {
        width: 26px;
        height: 26px;
    }
    
    .mobile-menu-toggle .menu-icon,
    .mobile-menu-toggle .close-icon {
        font-size: 0.9rem;
    }
}

/* About Page Styles */
.about-page-section {
    padding: 2rem 0 4rem 0;
    background-color: #f8f9fa;
    min-height: 80vh;
}

.breadcrumb {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.breadcrumb-link {
    color: #223d68;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #0066cc;
    text-decoration: underline;
}

.breadcrumb-dropdown,
.breadcrumb-current {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.page-title {
    color: #223d68;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.about-content-card {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 1000px;
    margin: 0 auto;
}

.about-content-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.about-image-section {
    text-align: center;
    width: 100%;
}

.about-city-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-disasterlink-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
}

.about-text-section {
    padding: 0;
    width: 100%;
}

.about-text-section p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-align: justify;
}

.city-officials-section {
    border-top: 2px solid #e9ecef;
    padding-top: 3rem;
    margin-top: 3rem;
}

.officials-title {
    color: #223d68;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.officials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.official-card {
    text-align: center;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.official-card h3 {
    color: #223d68;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.position {
    color: #0066cc;
    font-weight: 600;
    font-size: 1.1rem;
}

.counselors-section {
    margin-top: 2rem;
}

.counselors-title {
    color: #223d68;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.counselors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.counselor-column p {
    color: #333;
    font-weight: 500;
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #223d68;
}

/* Barangays Section */
.barangays-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.barangays-title {
    color: #223d68;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.barangays-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.barangays-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.barangays-list li {
    color: #333;
    font-weight: 500;
    margin-bottom: 0.8rem;
    padding: 0.7rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #223d68;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.barangays-list li:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design for About Pages */
@media (max-width: 768px) {
    .about-content-layout {
        gap: 1.5rem;
    }
    
    .about-city-image {
        max-width: 350px;
    }
    
    .officials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .counselors-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .barangays-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

/* Developers Page Styles */
.developers-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 2rem 0;
}

.developer-card {
    text-align: center;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.developer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.developer-image-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.developer-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.developer-name {
    color: #223d68;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.developer-roles {
    text-align: center;
}

.developer-roles p {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Responsive Design for Developers Page */
@media (max-width: 1024px) {
    .developers-showcase {
        gap: 2rem;
    }
    
    .developer-image {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .developers-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .developer-card {
        padding: 2rem 1.5rem;
    }
    
    .developer-image {
        width: 150px;
        height: 150px;
    }
}

/* Updated Disaster Tips Pages Styles */
.tips-disaster-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.tips-disaster-section .container {
    background: white !important;
    border-radius: 15px;
    padding: 2.5rem;
    margin: 0 auto;
    max-width: 300px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.disaster-tips-content {
    background: white !important;
    position: relative;
    z-index: 3;
}

.disaster-tips-content * {
    background: transparent !important;
}

.tips-disaster-title {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    margin-top: 0;
}

.disaster-header {
    text-align: center;
    margin-bottom: 2rem;
}

.disaster-name {
    color: #223d68;
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.disaster-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.disaster-tip-image {
    width: 450px;
    height: 450px;
    object-fit: contain;
}

.disaster-tips-content {
    background: white !important;
    position: relative;
    z-index: 3;
}

.disaster-tips-content h4 {
    color: #223d68;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem 0;
    border-left: 4px solid #223d68;
    padding-left: 1rem;
    background: transparent !important;
}

.tips-section ul {
    margin-left: 1rem;
    margin-bottom: 1.5rem;
    background: transparent !important;
}

.tips-section li {
    color: #333;
    margin-bottom: 0.8rem;
    line-height: 1.6;
    padding-left: 0.5rem;
}

.emergency-contacts {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border: 2px solid #e9ecef;
}

.emergency-contacts h4 {
    color: #223d68;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-list li {
    background: white;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    color: #333;
}

.contact-list li strong {
    color: #223d68;
}

/* Responsive Design for Updated Tips Pages */
@media (max-width: 768px) {
    .tips-disaster-section {
        padding: 0.75rem 0;
    }
    
    .tips-disaster-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        padding: 0 0.75rem;
    }
    
    .tips-disaster-section .container {
        margin: 0 1rem;
        padding: 1.25rem 1rem;
        border-radius: 10px;
        max-width: calc(100% - 2rem);
    }
    
    .disaster-name {
        font-size: 1.2rem;
        margin: 0.75rem 0;
    }
    
    .disaster-tip-image {
        width: 200px;
        height: 200px;
    }
    
    .disaster-tips-content h4 {
        font-size: 0.95rem;
        margin: 1rem 0 0.5rem 0;
        padding-left: 0.6rem;
        border-left: 3px solid #223d68;
    }
    
    .tips-section ul {
        margin-left: 0.5rem;
        margin-bottom: 1rem;
        padding-left: 0.75rem;
    }
    
    .tips-section li {
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .emergency-contacts {
        padding: 1rem;
        margin-top: 1.25rem;
    }
    
    .emergency-contacts h4 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }
    
    .contact-list li {
        padding: 0.5rem;
        margin-bottom: 0.35rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .tips-disaster-section {
        padding: 0.5rem 0;
    }
    
    .tips-disaster-title {
        font-size: 1.3rem;
        padding: 0 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .tips-disaster-section .container {
        margin: 0 0.5rem;
        padding: 1rem 0.75rem;
        max-width: calc(100% - 1rem);
    }
    
    .disaster-header {
        margin-bottom: 1.25rem;
    }
    
    .disaster-name {
        font-size: 1.1rem;
        margin: 0.5rem 0;
    }
    
    .disaster-tip-image {
        width: 160px;
        height: 160px;
    }
    
    .disaster-tips-content h4 {
        font-size: 0.9rem;
        margin: 0.85rem 0 0.4rem 0;
        padding-left: 0.5rem;
    }
    
    .tips-section ul {
        margin-left: 0.35rem;
        margin-bottom: 0.85rem;
        padding-left: 0.6rem;
    }
    
    .tips-section li {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
        line-height: 1.35;
        padding-left: 0.25rem;
    }
    
    .emergency-contacts {
        padding: 0.85rem;
        margin-top: 1rem;
    }
    
    .emergency-contacts h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-list li {
        padding: 0.45rem;
        margin-bottom: 0.3rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 375px) {
    .tips-disaster-title {
        font-size: 1.2rem;
    }
    
    .tips-disaster-section .container {
        margin: 0 0.35rem;
        padding: 0.85rem 0.6rem;
        max-width: calc(100% - 0.7rem);
    }
    
    .disaster-name {
        font-size: 1rem;
    }
    
    .disaster-tip-image {
        width: 140px;
        height: 140px;
    }
    
    .disaster-tips-content h4 {
        font-size: 0.85rem;
    }
    
    .tips-section li {
        font-size: 0.7rem;
    }
    
    .contact-list li {
        font-size: 0.65rem;
        padding: 0.4rem;
    }
}

/* Weather Advisory Page Styles */
.weather-advisory-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.weather-header {
    text-align: center;
    margin-bottom: 2rem;
}

.weather-title {
    color: #223d68;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.weather-subtitle {
    color: #555;
    font-size: 1.1rem;
    margin: 0;
}

/* Current Weather Card */
.current-weather-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.current-weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.current-weather-header h2 {
    color: #223d68;
    margin: 0;
    font-size: 1.5rem;
}

.last-updated {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-weather-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.temperature-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.temperature {
    font-size: 4rem;
    font-weight: 700;
    color: #223d68;
}

.weather-icon {
    font-size: 3rem;
    color: #ffa726;
}

.weather-description h3 {
    color: #223d68;
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
}

.weather-description p {
    color: #666;
    margin: 0;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.detail-item i {
    color: #223d68;
    width: 20px;
    text-align: center;
}

.detail-label {
    color: #666;
    font-size: 0.9rem;
    flex: 1;
}

.detail-value {
    font-weight: 600;
    color: #223d68;
}

/* Weather Alerts */
.weather-alerts {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.weather-alerts h2 {
    color: #223d68;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert-icon {
    color: #856404;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.alert-content h3 {
    color: #856404;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.alert-content p {
    color: #856404;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.alert-time {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

/* 7-Day Forecast */
.forecast-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.forecast-section h2 {
    color: #223d68;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

.forecast-card {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.2s ease;
}

.forecast-card:hover {
    transform: translateY(-5px);
    background: #e9ecef;
}

.forecast-day {
    font-weight: 600;
    color: #223d68;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.forecast-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: #ffa726;
}

.forecast-temps {
    margin-bottom: 0.5rem;
}

.forecast-temps .high {
    font-weight: 700;
    color: #223d68;
    margin-right: 0.5rem;
}

.forecast-temps .low {
    color: #666;
    font-size: 0.9rem;
}

.forecast-condition {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* Weather Tips */
.weather-tips {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.weather-tips h2 {
    color: #223d68;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.weather-tips .tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.weather-tips .tip-card {
    padding: 1.8rem 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: auto !important; /* Remove the 500px min-height for weather tips */
    height: auto; /* Let content determine height */
}

.weather-tips .tip-card:hover {
    transform: translateY(-5px);
    background: #e9ecef;
}

.weather-tips .tip-card i {
    font-size: 2.5rem;
    color: #223d68;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.weather-tips .tip-card h3 {
    color: #223d68;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.weather-tips .tip-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    margin-bottom: 0.5rem;
}

/* Responsive Design for Weather Page */
@media (max-width: 768px) {
    .weather-advisory-section {
        padding: 1rem 0;
    }
    
    .weather-title {
        font-size: 2rem;
    }
    
    .current-weather-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .temperature-display {
        justify-content: center;
    }
    
    .weather-details {
        grid-template-columns: 1fr;
    }
    
    .forecast-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.8rem;
    }
    
    .forecast-card {
        padding: 0.8rem;
    }
    
    .forecast-icon {
        font-size: 1.5rem;
    }
    
    .weather-tips .tips-grid {
        grid-template-columns: 1fr;
    }
}
