@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;600&display=swap');

/* Global Styles for Crowdfunding Platform */
/* Modern blue-teal palette with warm accents */

:root {
    --primary-blue: #1E5BFF;
    --primary-blue-dark: #153CAD;
    --accent-coral: #FF6B4A;
    --accent-teal: #12B8B1;
    --white: #FFFFFF;
    --light-gray: #F3F6FB;
    --text-color: #0F1C2E;
    --muted-text: #5F6B7A;
    --card-border: rgba(15, 28, 46, 0.08);
    --shadow-soft: 0 12px 30px rgba(19, 44, 90, 0.12);
}

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

body {
    font-family: 'Space Grotesk', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    background-image: radial-gradient(circle at 10% 10%, rgba(18, 184, 177, 0.12), transparent 35%),
                      radial-gradient(circle at 90% 0%, rgba(30, 91, 255, 0.12), transparent 40%);
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(90deg, #1B52D4 0%, #1E5BFF 40%, #1969D6 100%);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 12px 26px rgba(16, 38, 80, 0.25);
}

.navbar .logo {
    font-family: 'Fraunces', 'Space Grotesk', sans-serif;
    font-size: 1.7rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.navbar .logo::before {
    content: "";
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-image: url('image/logo.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.navbar .nav-links {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    flex-wrap: wrap;
}

.navbar .nav-links li {
    display: flex;
    align-items: center;
}

.navbar .nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    font-weight: 500;
}

.navbar .nav-links a:hover {
    opacity: 0.8;
}

.navbar .nav-item.dropdown {
    position: relative;
}

.navbar .dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--white);
    color: var(--text-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 0.4rem 0;
    min-width: 220px;
    z-index: 1000;
}

.navbar .dropdown-menu .dropdown-item {
    color: var(--text-color);
}

.navbar .nav-item.dropdown:hover .dropdown-menu,
.navbar .nav-item.dropdown:focus-within .dropdown-menu {
    display: block;
}

.navbar .notification-count {
    background: #e74c3c;
    color: var(--white);
    border-radius: 999px;
    font-size: 0.7rem;
    padding: 0.1rem 0.45rem;
    line-height: 1;
    min-width: 1.2rem;
    text-align: center;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(120deg, rgba(15, 28, 46, 0.7), rgba(30, 91, 255, 0.55)), url('image/hero.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 4rem 2rem 3rem;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.hero h1 {
    font-family: 'Fraunces', 'Space Grotesk', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Statistics Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 15px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.stat-label {
    font-size: 1rem;
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    margin: 0.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(120deg, var(--primary-blue), #3C7BFF);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(30, 91, 255, 0.25);
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(30, 91, 255, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 1px solid rgba(30, 91, 255, 0.35);
    box-shadow: 0 8px 18px rgba(15, 28, 46, 0.08);
}

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

.hero .btn-secondary,
.cta-section .btn-secondary {
    background-color: rgba(255, 255, 255, 0.16);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: none;
}

.hero .btn-secondary:hover,
.cta-section .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.28);
    color: var(--white);
}

/* Cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--card-border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(25, 91, 255, 0.18);
}

.card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.card p {
    color: var(--muted-text);
}

/* Forms */
.form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 2rem auto;
    border: 1px solid var(--border);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

/* Progress Bar */
.progress-bar {
    background-color: #E0E0E0;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    background-color: var(--primary-blue);
    height: 100%;
    transition: width 0.3s;
}

/* Footer */
.footer {
    background: #0F1C2E;
    color: var(--white);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.footer p {
    margin: 0.5rem 0;
    color: var(--white);
}

/* Page Title */
.page-title {
    text-align: center;
    color: var(--text-color);
    margin: 2rem 0;
    font-size: 2rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    font-weight: 500;
}

.alert-success {
    background-color: #E3F2FD;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.alert-error {
    background-color: #E3F2FD;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.alert-info {
    background-color: #E3F2FD;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

/* Table Styles */
table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: var(--primary-blue-dark);
    color: white;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    padding-right: 2.6rem;
}

.toggle-password {
    position: absolute;
    right: 0.8rem;
    background: none;
    border: none;
    color: var(--muted-text);
    cursor: pointer;
    font-size: 1rem;
}

.strength-meter {
    height: 6px;
    background: rgba(15, 28, 46, 0.1);
    border-radius: 999px;
    margin-top: 0.6rem;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-coral);
    transition: width 0.2s ease, background 0.2s ease;
}

.strength-bar[data-score="3"] {
    background: #F4B740;
}

.strength-bar[data-score="4"],
.strength-bar[data-score="5"] {
    background: var(--accent-teal);
}

.strength-text {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--muted-text);
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}



/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted-text);
    text-align: center;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* How It Works Section */
.how-it-works-section {
    background: var(--white);
    padding: 4rem 0;
    margin: 3rem 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.step-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid var(--card-border);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(18, 184, 177, 0.18);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Feature Cards */
.feature-card {
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-icon-text {
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(120deg, #10387A 0%, #1E5BFF 60%, #12B8B1 100%);
    color: var(--white);
    padding: 4rem 2rem;
    margin: 3rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hospital Cards */
.hospital-card {
    position: relative;
}

.hospital-location {
    color: var(--accent-teal);
    font-weight: 500;
    margin: 0.5rem 0;
}

.hospital-services {
    color: var(--muted-text);
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

/* Events Section */
.events-section {
    background-color: var(--white);
    padding: 3rem 0;
    margin: 3rem 0;
}

.event-card {
    position: relative;
    padding-top: 3rem;
}

.event-type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.event-type-badge.seminar {
    background-color: var(--primary-blue);
    color: var(--white);
}

.event-type-badge.health-gathering {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* About Home Section */
.about-home-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.about-content h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.about-content p {
    color: var(--muted-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-stat-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 1.5rem;
    border-radius: 10px;
}

.about-stat-item h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.about-stat-item p {
    color: var(--muted-text);
    line-height: 1.6;
}

/* Campaign Cards */
.campaign-card {
    display: flex;
    flex-direction: column;
}

/* Footer Enhancements */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-teal);
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent-teal);
}

.footer-section p {
    line-height: 1.6;
    color: #bdc3c7;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--accent-coral);
}

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

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem;
    }

    .navbar .logo {
        text-align: center;
        width: 100%;
        font-size: 1.35rem;
    }

    .navbar .logo::before {
        width: 30px;
        height: 30px;
    }

    .navbar .nav-links {
        justify-content: center;
        gap: 0.6rem 1rem;
    }

    .navbar .nav-links li {
        justify-content: center;
    }

    .navbar .nav-links a {
        font-size: 0.95rem;
    }

    .navbar .nav-item.dropdown {
        width: 100%;
        justify-content: center;
    }

    .navbar .dropdown-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .about-home-section {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* About Home Section */
.about-home-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.about-content h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.about-content p {
    color: var(--muted-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-stat-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 1.5rem;
    border-radius: 10px;
}

.about-stat-item h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.about-stat-item p {
    color: var(--muted-text);
    line-height: 1.6;
}

/* Campaign Cards */
.campaign-card {
    display: flex;
    flex-direction: column;
}

/* Footer Enhancements */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-teal);
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent-teal);
}

.footer-section p {
    line-height: 1.6;
    color: #bdc3c7;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--accent-coral);
}

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

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .about-home-section {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
