/*
 * Student Organization Website - Main Stylesheet
 * 
 * Layout Fixes & Improvements:
 * - Consistent button sizing and spacing across all components
 * - Unified card layouts with flexbox for equal heights
 * - Responsive grid adjustments for mobile/tablet devices
 * - Improved touch targets (minimum 36x36px for mobile)
 * - Enhanced accessibility with focus states
 * - Smooth transitions and hover effects
 * - Dark mode support throughout
 */

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

:root {
    /* Industry Level Green Palette - Matched to Logo */
    --primary-color: #0b703e;
    --primary-gradient: linear-gradient(135deg, #0b703e 0%, #054d2a 100%);
    /* JCD Logo Green */
    --secondary-color: #064022;
    /* Darker Green */
    --accent-color: #f59e0b;
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    /* Amber 500 for contrast/CTA */
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --bg-light: #f3f6f4;
    /* Very light green tint */
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
body.dark-mode {
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --bg-light: #111827;
    --white: #1f2937;
    --glass-bg: rgba(31, 41, 55, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* Global Button Styles */
button,
.btn,
.cta-btn,
.subscribe-btn,
.event-register-btn,
.donate-btn {
    font-family: inherit;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

button:active,
.btn:active {
    transform: scale(0.98);
}

/* Navbar Styles */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    transition: var(--transition);
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

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

.nav-logo i {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.nav-logo a:hover i {
    animation: none;
    transform: rotate(360deg);
    transition: transform 0.6s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    transform: translateX(5px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.subscribe-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.subscribe-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.subscribe-btn:hover::before {
    width: 300px;
    height: 300px;
}

.subscribe-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.subscribe-btn:focus,
.cta-btn:focus,
.event-register-btn:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-light);
    transform: rotate(20deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Slider Styles */
.slider-section {
    margin-top: 80px;
    height: 600px;
    position: relative;
    overflow: hidden;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide:nth-child(1) {
    background: linear-gradient(135deg, #0b703e 0%, #064022 100%);
}

.slide:nth-child(2) {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.slide:nth-child(3) {
    background: linear-gradient(135deg, #08522d 0%, #064022 100%);
}

.slide-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease;
}

.cta-btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    animation: fadeInUp 1.4s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(5, 150, 105, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-btn:hover::after {
    width: 300px;
    height: 300px;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: var(--white);
    transform: scale(1.3);
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    transition: var(--transition);
    cursor: default;
}

.section-title:hover {
    transform: translateY(-5px);
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.section-title:hover::after {
    width: 120px;
}

/* Card Hover States - Unified */
.news-card:hover,
.event-card:hover,
.library-card:hover,
.member-card:hover,
.video-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.about-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.team-section {
    margin-top: 60px;
}

.team-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

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

.member-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    z-index: 1;
}

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

.member-card::after {
    content: 'Click for details';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.member-card:hover::after {
    opacity: 1;
    bottom: 15px;
}

.member-card .member-name,
.member-card .member-role,
.member-card .member-info {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.member-card:hover .member-name {
    transform: translateX(10px);
}

.member-card:hover .member-role {
    transform: translateX(-10px);
}

.member-card:hover .member-info {
    transform: translateY(5px);
    opacity: 0.9;
}

.member-avatar {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
    pointer-events: none;
}

.member-card:hover .member-avatar {
    animation: none;
}

.member-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    pointer-events: none;
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    pointer-events: none;
}

.member-info {
    color: var(--text-light);
    font-size: 0.95rem;
    pointer-events: none;
}

/* Blood Donation Section */
.blood-donation-section {
    padding: 80px 0;
    background: var(--white);
}

.blood-content {
    max-width: 900px;
    margin: 0 auto;
}

.blood-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.blood-info p {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.blood-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
}

.stat-item.animated {
    animation: fadeInUp 0.6s ease forwards;
}

.stat-item:nth-child(1).animated {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2).animated {
    animation-delay: 0.3s;
}

.stat-item:nth-child(3).animated {
    animation-delay: 0.5s;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
    animation: float 3s ease-in-out infinite;
}

.stat-item:hover i {
    transform: translateY(-10px);
    animation: none;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    transition: transform 0.4s ease;
    font-weight: bold;
}

.stat-item.counting h4 {
    color: var(--primary-color);
}

.stat-item:hover h4 {
    transform: translateX(10px);
}

.stat-item p {
    color: var(--text-light);
    font-size: 1rem;
    transition: transform 0.4s ease;
}

.stat-item:hover p {
    transform: translateX(-10px);
}

.donate-btn {
    display: block;
    margin: 0 auto;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.25);
}

.donate-btn:hover {
    background: #dc2626;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

/* Events Section */
.events-section {
    padding: 80px 0;
    background: var(--white);
}

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

.event-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    transition: var(--transition);
    border: 2px solid transparent;
    opacity: 1;
    transform: none;
    height: 100%;
}

.event-card.visible {
    animation: slideInLeft 0.6s ease forwards;
}

.event-card:nth-child(2).visible {
    animation-delay: 0.2s;
}

.event-card:nth-child(3).visible {
    animation-delay: 0.4s;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.event-date {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px;
    text-align: center;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.event-date::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.event-date .day {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.event-date .month {
    font-size: 1rem;
    text-transform: uppercase;
    margin-top: 5px;
}

.event-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-content h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.event-time,
.event-location {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.event-time i,
.event-location i {
    color: var(--primary-color);
    margin-right: 8px;
    width: 16px;
}

.event-description {
    color: var(--text-light);
    margin: 15px 0;
    line-height: 1.6;
    flex: 1;
}

.event-register-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 15px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.2);
}

.event-register-btn:hover {
    background: var(--secondary-color);
    transform: translateX(5px) translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* News Section */
.news-section {
    padding: 80px 0;
    background: var(--bg-light);
}

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

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card.visible {
    animation: fadeInUp 0.6s ease forwards;
}

.news-card:nth-child(2).visible {
    animation-delay: 0.2s;
}

.news-card:nth-child(3).visible {
    animation-delay: 0.4s;
}

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

.news-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.news-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.news-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.4;
}

.news-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
    flex: 1;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    margin-top: auto;
}

.read-more:hover {
    gap: 12px;
}

.read-more i {
    transition: var(--transition);
}

/* Library Search */
.library-search {
    max-width: 600px;
    margin: 30px auto 40px;
    display: flex;
    gap: 10px;
}

.library-search input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 30px;
    font-size: 1rem;
    transition: var(--transition);
}

.library-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    background: var(--white);
    border: none;
    padding: 20px 25px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question i {
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-dark);
    color: var(--white);
    padding: 20px;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-content i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-accept,
.cookie-decline {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.cookie-accept {
    background: var(--primary-color);
    color: var(--white);
}

.cookie-accept:hover {
    background: var(--secondary-color);
}

.cookie-decline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--bg-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scroll Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

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

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.toast {
    background: var(--white);
    color: var(--text-dark);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: all;
    position: relative;
    overflow: hidden;
    border-left: 4px solid;
}

.toast.removing {
    animation: slideOutRight 0.3s ease forwards;
}

.toast-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--text-dark);
    transform: scale(1.2);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: currentColor;
    opacity: 0.3;
    animation: progress 3s linear;
}

/* Toast Types */
.toast.success {
    border-left-color: #10b981;
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.success .toast-progress {
    background: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.error .toast-progress {
    background: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast.warning .toast-icon {
    color: #f59e0b;
}

.toast.warning .toast-progress {
    background: #f59e0b;
}

.toast.info {
    border-left-color: #3b82f6;
}

.toast.info .toast-icon {
    color: #3b82f6;
}

.toast.info .toast-progress {
    background: #3b82f6;
}

/* Dark mode toast adjustments */
body.dark-mode .toast {
    background: #1f2937;
    color: #f9fafb;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

body.dark-mode .toast-close {
    color: #9ca3af;
}

body.dark-mode .toast-close:hover {
    color: #f9fafb;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: -20px;
    margin-bottom: 40px;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid transparent;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--text-light);
    transition: all 0.4s ease;
}

.gallery-item.hide {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    color: var(--white);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.view-image-btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.view-image-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.4s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    max-width: 600px;
}

.lightbox-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.lightbox-caption p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.lightbox-counter {
    display: inline-block;
    background: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.lightbox-close {
    top: 30px;
    right: 30px;
}

.lightbox-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Dark mode gallery */
body.dark-mode .gallery-section {
    background: var(--dark-bg);
}

body.dark-mode .filter-btn {
    background: #1f2937;
    color: #f9fafb;
}

body.dark-mode .filter-btn:hover {
    border-color: var(--primary-color);
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

.testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.testimonial-card {
    min-width: 100%;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
    position: absolute;
    left: 0;
    top: 0;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
    position: relative;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.testimonial-avatar i {
    font-size: 2.5rem;
    color: var(--white);
}

.testimonial-info h4 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 700;
}

.testimonial-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.testimonial-rating {
    display: flex;
    gap: 5px;
}

.testimonial-rating i {
    color: #fbbf24;
    font-size: 1rem;
}

.testimonial-content {
    position: relative;
    padding-left: 30px;
}

.quote-icon {
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.testimonial-content p {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
    font-style: italic;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

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

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* Dark mode testimonials */
body.dark-mode .testimonials-section {
    background: var(--dark-bg);
}

body.dark-mode .testimonial-card {
    background: #1f2937;
}

body.dark-mode .testimonial-info h4,
body.dark-mode .testimonial-content p {
    color: #f9fafb;
}

body.dark-mode .carousel-btn {
    background: #1f2937;
    border-color: var(--primary-color);
}

body.dark-mode .carousel-btn:hover {
    background: var(--primary-color);
}

/* Social Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.share-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.share-btn:hover::before {
    width: 100%;
    height: 100%;
}

.share-btn:active {
    transform: scale(0.95);
}

.share-btn[data-platform="facebook"] {
    background: #1877f2;
}

.share-btn[data-platform="twitter"] {
    background: #1da1f2;
}

.share-btn[data-platform="linkedin"] {
    background: #0a66c2;
}

.share-btn[data-platform="whatsapp"] {
    background: #25d366;
}

.share-btn[data-platform="copy"] {
    background: #6b7280;
}

.share-btn[data-platform="email"] {
    background: #ea4335;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Floating Share Bar */
.floating-share-bar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--white);
    padding: 15px 10px;
    border-radius: 50px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.floating-share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.floating-share-btn::after {
    content: attr(aria-label);
    position: absolute;
    left: 60px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.floating-share-btn:hover::after {
    opacity: 1;
}

.floating-share-btn[data-platform="facebook"] {
    background: #1877f2;
}

.floating-share-btn[data-platform="twitter"] {
    background: #1da1f2;
}

.floating-share-btn[data-platform="linkedin"] {
    background: #0a66c2;
}

.floating-share-btn[data-platform="whatsapp"] {
    background: #25d366;
}

.floating-share-btn[data-platform="email"] {
    background: #ea4335;
}

.floating-share-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Dark mode share buttons */
body.dark-mode .share-buttons {
    border-top-color: #374151;
}

body.dark-mode .floating-share-bar {
    background: #1f2937;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

/* Video Section */
.video-section {
    padding: 80px 0;
    background: var(--white);
}

.featured-video {
    margin-bottom: 50px;
}

.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(37, 99, 235, 0.95);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.4);
}

.play-btn i {
    margin-left: 5px;
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--primary-color);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.6);
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.5);
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.video-info {
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.video-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.video-info p {
    opacity: 0.95;
    font-size: 1.05rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.video-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.video-card .video-thumbnail {
    aspect-ratio: 16/9;
}

.video-card .play-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.video-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-details h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    flex: 1;
}

.video-meta {
    display: flex;
    gap: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    max-width: 1200px;
    width: 90%;
    animation: zoomIn 0.4s ease;
}

.video-modal-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.video-modal-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-modal-info {
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.video-modal-info h3 {
    font-size: 1.5rem;
}

.video-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10003;
}

.video-modal-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1) rotate(90deg);
}

/* Dark mode video section */
body.dark-mode .video-section {
    background: var(--dark-bg);
}

body.dark-mode .video-card {
    background: #1f2937;
}

body.dark-mode .video-details h4 {
    color: #f9fafb;
}

/* Advanced Form Validation */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-label .required {
    color: #ef4444;
    margin-left: 3px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input.valid {
    border-color: #10b981;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310b981'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 45px;
}

.form-input.invalid,
.form-select.invalid,
.form-textarea.invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: slideDown 0.3s ease;
}

.error-message i {
    font-size: 0.9rem;
}

.success-message {
    color: #10b981;
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.char-counter {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: right;
    margin-top: 5px;
}

.char-counter.warning {
    color: #f59e0b;
}

.char-counter.error {
    color: #ef4444;
}

.form-input[type="email"],
.form-input[type="tel"] {
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Dark mode form validation */
body.dark-mode .form-label {
    color: #f9fafb;
}

body.dark-mode .form-input,
body.dark-mode .form-select,
body.dark-mode .form-textarea {
    background: #1f2937;
    color: #f9fafb;
    border-color: #374151;
}

body.dark-mode .form-input.invalid,
body.dark-mode .form-select.invalid,
body.dark-mode .form-textarea.invalid {
    background-color: rgba(239, 68, 68, 0.1);
}

/* Event Registration Form */
.event-registration-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-registration-form input,
.event-registration-form select,
.event-registration-form textarea {
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.event-registration-form input:focus,
.event-registration-form select:focus,
.event-registration-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.event-modal-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
}




.donate-btn:hover {
    background: #dc2626;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .view-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.view-btn:hover {
    background: var(--primary-dark);
    transform: translate(-50%, -50%) scale(1.2);
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.load-more-btn i {
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateY(3px);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .gallery-item img {
        height: 250px;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* Library Section */
.library-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.library-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

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

.library-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

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

.library-card h4,
.library-card p {
    transition: transform 0.4s ease;
    display: inline-block;
}

.library-card:hover i {
    animation: pulse 0.6s ease;
}

.library-card:hover h4 {
    transform: translateX(8px);
}

.library-card:hover p {
    transform: translateX(-8px);
}

.library-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.library-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition);
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
}

.contact-item:hover {
    background: var(--bg-light);
    transform: translateX(10px);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 5px;
    transition: transform 0.4s ease;
}

.contact-item:hover i {
    transform: rotate(15deg) scale(1.1);
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    transition: transform 0.3s ease;
}

.contact-item:hover h4 {
    transform: translateX(5px);
}

.contact-item p {
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.contact-item:hover p {
    transform: translateX(5px);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    pointer-events: none;
}

.modal.active,
.modal[style*="display: block"] {
    pointer-events: auto;
}

.modal-content {
    background: var(--white);
    margin: 10% auto;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.4s ease;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    z-index: 10;
    background: transparent;
    border: none;
    padding: 5px 10px;
    line-height: 1;
}

.member-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    z-index: 10;
    background: transparent;
    border: none;
    padding: 5px 10px;
    line-height: 1;
}

.close:hover,
.member-close:hover {
    color: var(--text-dark);
    transform: scale(1.1);
}

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

.modal-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.subscribe-form input {
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

.modal-submit-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-submit-btn:hover {
    background: var(--secondary-color);
}

/* Member Details Modal */
.member-modal {
    z-index: 10000;
}

.member-modal-content {
    max-width: 700px;
    max-height: 90vh;
    padding: 0;
    overflow-y: auto;
    margin: 3% auto;
    position: relative;
    background: var(--white);
    border-radius: 15px;
    animation: slideDown 0.4s ease;
}

.member-details {
    padding: 40px;
}

.member-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-light);
}

.member-avatar-large {
    font-size: 8rem;
    color: var(--primary-color);
}

.member-header-info {
    flex: 1;
}

.member-header-info h2 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.modal-member-role {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
}

.member-contact-info {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 12px 20px;
    border-radius: 8px;
    flex: 1;
    min-width: 250px;
}

.contact-detail i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-detail span {
    color: var(--text-dark);
    font-weight: 500;
}

.member-bio {
    margin-bottom: 30px;
}

.member-bio h3,
.member-achievements h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.member-bio p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.member-achievements ul {
    list-style: none;
    padding: 0;
}

.member-achievements li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.member-achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.member-close {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 10;
}

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

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

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

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

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

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

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
}

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

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

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

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1.1rem;
    }

    .slider-section {
        height: 500px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

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

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

    .blood-stats {
        flex-direction: column;
    }

    .events-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .news-card,
    .event-card {
        max-width: 100%;
    }

    .event-card {
        flex-direction: column;
        height: auto;
    }

    .event-date {
        min-width: 100%;
        padding: 20px;
        flex-direction: row;
        gap: 15px;
        align-items: center;
        justify-content: center;
    }

    .event-date .day {
        font-size: 2rem;
    }

    .event-date .month {
        font-size: 1rem;
        margin-top: 0;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .library-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .slide-content h1 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .modal-content {
        max-height: 80vh;
    }

    .member-modal-content {
        margin: 5% 10px;
        max-height: 85vh;
    }

    .member-header {
        flex-direction: column;
        text-align: center;
    }

    .member-avatar-large {
        font-size: 6rem;
    }

    .member-details {
        padding: 30px 20px;
    }

    .contact-detail {
        min-width: 100%;
        margin: 20% 20px;
        padding: 30px 20px;
    }

    .toast-container {
        top: 70px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .floating-share-bar {
        display: none;
    }

    .share-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }

    .share-label {
        font-size: 0.85rem;
        width: 100%;
        margin-bottom: 5px;
    }

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

    .gallery-filters {
        gap: 10px;
        padding: 0 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .lightbox-prev,
    .lightbox-next {
        display: none;
    }

    .lightbox-content {
        max-width: 95%;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .testimonial-card {
        padding: 25px;
    }

    .testimonial-header {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-avatar {
        width: 70px;
        height: 70px;
    }

    .testimonial-avatar i {
        font-size: 2rem;
    }

    .testimonial-content {
        padding-left: 0;
        padding-top: 20px;
    }

    .quote-icon {
        position: static;
        display: block;
        margin-bottom: 10px;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .share-label {
        width: 100%;
        margin-bottom: 8px;
        font-size: 0.85rem;
    }

    .share-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .event-register-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .cta-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .subscribe-btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }

    .library-grid {
        grid-template-columns: 1fr;
    }

    .library-card {
        min-height: 200px;
    }
}