/* Base Styles */
:root {
    --primary-color: #2c5282; /* Deep blue */
    --secondary-color: #e53e3e; /* Red for alerts/warnings */
    --accent-color: #4299e1; /* Light blue */
    --light-color: #f7fafc;
    --dark-color: #1a202c;
    --gray-color: #718096;
    --bg-color: #f8f9fa;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

h1, h2, h3 {
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

p {
    margin-bottom: 20px;
}

/* Button Styles */
.button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.primary-button:hover {
    background-color: var(--accent-color);
    color: white;
}

.secondary-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Weather Alert Banner */
.weather-alert-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    text-align: center;
    font-weight: 600;
    position: relative;
}

.weather-alert-banner i {
    margin-right: 10px;
    font-size: 1.2em;
}

.alert-details {
    margin-left: 15px;
    color: white;
    text-decoration: underline;
}

.close-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1em;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo h1 a {
    color: var(--primary-color);
}

.logo p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Donate Button Styles */
nav ul li a.donate-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

nav ul li a.donate-btn:hover {
    background-color: #c53030;
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

nav ul li a.donate-btn i {
    font-size: 0.9em;
}

.menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 10;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-content .button {
    margin: 0 10px 10px;
}

.weather-widget {
    background: rgba(44, 82, 130, 0.8);
    border-radius: 8px;
    padding: 20px;
    margin: 0 auto 40px;
    max-width: 500px;
}

.current-conditions h2 {
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.weather-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.weather-data div {
    display: flex;
    align-items: center;
}

.weather-data i {
    margin-right: 10px;
    font-size: 1.2em;
}

.temperature {
    font-size: 1.5em;
    font-weight: bold;
}

/* Weather Map Section */
.weather-map {
    background-color: white;
    padding: 40px 0;
}

.radar-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

#weather-radar {
    width: 100%;
    height: 100%;
    border: none;
}

.radar-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.radar-button {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.radar-button:hover {
    background: var(--primary-color);
}

.map-attribution {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-color);
}

/* Mission Section */
.mission {
    background-color: var(--light-color);
    padding: 60px 0;
}

.mission .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.mission-text h2 {
    color: var(--primary-color);
}

.mission-image {
    position: relative;
}

.mission-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.image-caption {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-top: 10px;
    text-align: center;
}

/* Problem Section */
.problem-section {
    background-color: white;
}

.problem-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.problem-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Projects Section */
.projects {
    background-color: var(--light-color);
}

.projects h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 0;
}

.subscribe-form {
    max-width: 500px;
    margin: 30px auto;
    display: flex;
    gap: 10px;
}

.subscribe-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: var(--light-color);
    opacity: 0.8;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* About Us Page Styles */
.page-header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 60px 0 40px;
}

.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.about-section {
    padding: 60px 0;
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.mission-about {
    background-color: #f0f7ff;
    padding: 60px 0;
}

.mission-about-content h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.value-card i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.team-section {
    padding: 60px 0;
    background-color: white;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.single-team-member {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.team-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    padding: 30px;
}

.member-image {
    width: 100%;
    max-width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-color);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-bio h3 {
    margin-bottom: 5px;
    color: var(--dark-color);
    font-size: 1.8em;
}

.member-bio p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.member-title {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Responsive styles for single team member */
@media (max-width: 768px) {
    .team-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .member-image {
        margin-bottom: 20px;
    }
}

.equipment-section {
    padding: 60px 0;
    background-color: #f0f7ff;
}

.equipment-section h2, 
.partners-section h2 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.equipment-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.equipment-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.equipment-item i {
    font-size: 2em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.partners-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.partners-section .section-intro {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    color: var(--text-color);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.partner {
    text-align: center;
    padding: 20px;
}

.partner img {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

.cta-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Responsive styles for About page */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Warnings Page Styles */
.warnings-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.warning-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.warning-card .warning-header {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.warning-card.severe .warning-header {
    background-color: var(--secondary-color);
    color: white;
}

.warning-card.watch .warning-header {
    background-color: #f6ad55; /* Orange for watches */
    color: white;
}

.warning-card.advisory .warning-header {
    background-color: #f6e05e; /* Yellow for advisories */
    color: var(--dark-color);
}

.warning-content {
    padding: 20px;
}

.warning-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray-color);
    font-size: 0.9em;
    margin-bottom: 15px;
}

.warning-description {
    margin-bottom: 15px;
}

.warning-areas {
    background-color: var(--light-color);
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9em;
}

.warning-areas strong {
    display: block;
    margin-bottom: 5px;
}

/* Active Warning Page */
.active-warning {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.active-warning-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
}

.active-warning-header h2 {
    margin-bottom: 5px;
}

.active-warning-content {
    padding: 30px;
}

.warning-details {
    margin-bottom: 30px;
}

.warning-map {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.warning-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .mission .container {
        grid-template-columns: 1fr;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 20px;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .menu-button {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    #nav-menu {
        display: none;
    }

    #nav-menu.show {
        display: flex;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .weather-data {
        grid-template-columns: 1fr;
    }

    .subscribe-form {
        flex-direction: column;
    }
}
