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

:root {
    --primary-color: #2E7D32;
    --primary-dark: #1B5E20;
    --secondary-color: #4CAF50;
    --accent-color: #A5D6A7;
    --dark-color: #1d3557;
    --light-color: #E8F5E9;
    --text-color: #2b2d42;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 16px;
    color-scheme: light;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-banner {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 53, 87, 0.8) 0%, rgba(46, 125, 50, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero-overlay h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-overlay p {
    font-size: 1.5rem;
    color: var(--accent-color);
    animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Campaign Section */
.campaign-section {
    padding: 80px 5%;
    background: var(--white);
}

.section-title-main {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-main h2 {
    font-size: 3rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title-main h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title-main p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 20px;
}

.campaign-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 60px;
    align-items: stretch;
}

.campaign-left {
    position: sticky;
    top: 20px;
}

.campaign-image {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.campaign-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: var(--transition);
}

.campaign-image:hover img {
    transform: scale(1.05);
}

.campaign-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.campaign-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.campaign-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.campaign-right {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.campaign-time-info {
    margin-bottom: 30px;
}

.time-block {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.time-block .icon {
    width: 40px;
    height: 40px;
    color: var(--secondary-color);
}

.time-details {
    display: flex;
    flex-direction: column;
}

.time-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.time-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* Countdown */
.countdown-container {
    margin-bottom: 30px;
}

.countdown-container h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    text-align: center;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.countdown-item {
    background: linear-gradient(145deg, var(--dark-color), var(--secondary-color));
    padding: 20px 25px;
    border-radius: 12px;
    text-align: center;
    min-width: 90px;
    box-shadow: 0 4px 15px rgba(29, 53, 87, 0.3);
}

.countdown-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Progress Bar */
.progress-section {
    margin-bottom: 30px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.progress-info strong {
    color: var(--primary-color);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 1s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-percent {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Donate Button */
.donate-btn {
    width: 100%;
    padding: 20px 40px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
}

.donate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(230, 57, 70, 0.5);
}

.donate-btn .icon {
    width: 28px;
    height: 28px;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Posts Section */
.posts-section {
    padding: 80px 5%;
    background: linear-gradient(180deg, #f8f9fa 0%, var(--white) 100%);
}

.posts-header {
    text-align: center;
    margin-bottom: 50px;
}

.posts-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.posts-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.posts-carousel {
    display: flex;
    gap: 30px;
    overflow: hidden;
    touch-action: pan-y;
}

.post-card {
    flex: 0 0 calc(33.333% - 20px);
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.post-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-summary {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.post-date svg {
    width: 16px;
    height: 16px;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 10;
}

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

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background: #d0d0d0;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2004;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-step {
    padding: 40px;
    display: none;
}

.modal-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.modal-header p {
    color: var(--text-light);
}

/* Form Styles */
.donation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.required {
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem !important;
    transition: var(--transition);
    font-family: inherit;
    background-color: #ffffff !important;
    color: #1d3557 !important;
    appearance: none;
    -webkit-appearance: none;
    color-scheme: light;
    -webkit-text-fill-color: #1d3557;
    opacity: 1;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9e9e9e !important;
    -webkit-text-fill-color: #9e9e9e;
    opacity: 1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(69, 123, 157, 0.1);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d3557' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
}

.form-group input[readonly] {
    background-color: #ffffff !important;
    opacity: 1;
    cursor: pointer;
    -webkit-text-fill-color: #1d3557;
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.next-btn-form {
    padding: 16px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    margin-top: 10px;
}

.next-btn-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(69, 123, 157, 0.4);
}

.next-btn-form svg {
    width: 20px;
    height: 20px;
}

/* Step 2 Styles */
.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.share-section {
    margin-top: 30px;
}

.share-section h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    text-align: center;
}

.share-guide {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.guide-step p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.hashtag-section {
    margin-bottom: 25px;
}

.hashtag-section label {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.hashtag-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #d0d0d0;
}

.hashtag-box span {
    flex: 1;
    font-size: 0.9rem;
    color: var(--secondary-color);
    word-break: break-all;
}

.copy-btn {
    padding: 10px 20px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--dark-color);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.social-share {
    text-align: center;
    margin-bottom: 25px;
}

.social-share span {
    display: block;
    color: var(--text-light);
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

.social-btn.facebook {
    background: #1877f2;
    color: var(--white);
}

.social-btn.twitter {
    background: #1da1f2;
    color: var(--white);
}

.social-btn.linkedin {
    background: #0077b5;
    color: var(--white);
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.1);
}

.complete-btn {
    width: 100%;
    padding: 16px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.complete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.complete-btn svg {
    width: 22px;
    height: 22px;
}

/* Post Sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.post-sidebar {
    position: fixed;
    top: 0;
    right: -600px;
    width: 600px;
    max-width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 1001;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
}

.post-sidebar.active {
    right: 0;
}

.sidebar-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    transition: var(--transition);
}

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

.back-btn svg {
    width: 20px;
    height: 20px;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.sidebar-post-image {
    width: 100%;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 25px;
}

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

.sidebar-post-title {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.sidebar-post-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-post-date svg {
    width: 18px;
    height: 18px;
}

.sidebar-post-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

.sidebar-post-body p {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
    .campaign-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .campaign-left {
        position: static;
    }

    .campaign-image img {
        height: 400px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        height: 60vh;
        min-height: 450px;
    }

    .hero-overlay h1 {
        font-size: 3rem;
    }

    .section-title-main h2 {
        font-size: 2.5rem;
    }

    .campaign-title {
        font-size: 2rem;
    }

    .past-campaigns-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-group input,
    .form-group select {
        padding: 16px;
        font-size: 1.05rem;
    }

    .form-group select {
        padding-right: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
        min-height: 400px;
    }

    .hero-overlay h1 {
        font-size: 2.2rem;
    }

    .hero-overlay p {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .campaign-section,
    .posts-section,
    .past-campaigns-section {
        padding: 50px 20px;
    }

    .campaign-image img {
        height: 300px;
    }

    .campaign-right {
        padding: 25px;
    }

    .countdown {
        gap: 10px;
    }

    .countdown-item {
        padding: 10px 15px;
        min-width: 60px;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .donate-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }

    .carousel-container {
        padding: 0 20px;
    }

    .post-card {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .past-campaigns-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .modal-step {
        padding: 25px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .post-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 45vh;
        min-height: 350px;
    }

    .hero-overlay h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .section-title-main h2 {
        font-size: 2rem;
    }

    .campaign-title {
        font-size: 1.6rem;
    }

    .campaign-image img {
        height: 220px;
    }

    .time-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .countdown-item {
        padding: 8px 5px;
        min-width: 55px;
    }

    .countdown-number {
        font-size: 1.4rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }

    .carousel-container {
        padding: 0 10px;
    }

    .post-image {
        height: 200px;
    }

    /* Hide nav buttons on very small screens, swipe might be better but keep buttons small */
    .prev-btn {
        left: -5px;
    }

    .next-btn {
        right: -5px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .social-buttons {
        gap: 10px;
    }

    .social-btn {
        width: 40px;
        height: 40px;
    }
}

/* Flatpickr Overrides - prevent parent layout CSS from breaking calendar */
.flatpickr-calendar {
    background: #ffffff !important;
    color: #1d3557 !important;
    color-scheme: light;
}

.flatpickr-calendar * {
    color: inherit !important;
}

.flatpickr-day {
    color: #1d3557 !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #2E7D32 !important;
    border-color: #2E7D32 !important;
    color: #ffffff !important;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month {
    color: #1d3557 !important;
}

.flatpickr-weekdays,
.flatpickr-weekday {
    color: #6c757d !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

/* Past Campaigns Section */
.past-campaigns-section {
    padding: 80px 5%;
    background-color: var(--light-color);
}

.past-campaigns-header {
    text-align: center;
    margin-bottom: 50px;
}

.past-campaigns-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.past-campaigns-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.past-campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.past-campaign-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.past-campaign-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.past-campaign-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.past-campaign-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.past-campaign-card:hover .past-campaign-image img {
    transform: scale(1.1);
}

.past-campaign-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.past-campaign-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.past-campaign-title {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.past-campaign-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.past-campaign-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.past-campaign-time svg {
    width: 16px;
    height: 16px;
}

.past-campaign-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.stat-group {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .past-campaigns-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .past-campaigns-section {
        padding: 50px 0;
    }
}

/* ==========================================
   Mobile Navigation Styles
   ========================================== */
.navigation-mobile {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.right-nav-mobile {
    display: none;
    /* Initially hidden, managed by active class */
}

/* Media Query to show/hide navigations */
@media (min-width: 1024px) {
    .navigation-mobile {
        display: none !important;
    }

    .navigation {
        display: flex;
        /* Ensure desktop nav is visible */
    }
}

@media (max-width: 1023px) {
    .navigation {
        display: none !important;
    }

    .navigation-mobile {
        display: flex;
    }
}

.navigation-mobile #logo h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

#open-nav-mobile {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.right-nav-mobile {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background: var(--white);
    z-index: 2001;
    transition: var(--transition);
    overflow-y: auto;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
}

.right-nav-mobile.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: var(--light-color);
}

.mobile-nav-header h2 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin: 0;
}

.close-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-nav-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--secondary-color);
}

.mobile-nav-content {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
}

.mobile-link {
    font-size: 1.1rem;
    color: var(--dark-color);
    text-decoration: none;
    padding: 15px 25px;
    border-bottom: 1px solid #f5f5f5;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--primary-color);
    background: #fafafa;
    padding-left: 30px;
}

.navigator-mobile {
    border-bottom: 1px solid #f5f5f5;
}

.nav-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
}

.nav-item-header:hover {
    color: var(--primary-color);
    background: #fafafa;
}

.nav-item-header .arrow-icon {
    transition: transform 0.3s ease;
    width: 18px;
    height: 18px;
    color: var(--text-light);
}

.nav-item-header.active .arrow-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.sub-nav {
    list-style: none;
    padding: 0;
    display: none;
    background: #fcfcfc;
}

.sub-nav.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.sub-nav li a {
    display: block;
    padding: 12px 25px 12px 40px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    border-top: 1px solid #f9f9f9;
    transition: var(--transition);
}

.sub-nav li a:hover {
    color: var(--primary-color);
    padding-left: 45px;
    background: #f5f5f5;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}