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

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: "Arial", sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 100px;
}

header {
    background: rgba(255, 255, 255, 0.95);
    color: #7b9fcc;
    padding: 3rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Left navigation items */
.nav-left {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
}

/* Center logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: #7b9fcc;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-main {
    font-size: 2rem;
    letter-spacing: 2px;
    line-height: 1;
}

.logo-sub {
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 1px;
    line-height: 1;
}

/* Right navigation items */
.nav-right {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

/* Dropdown container styling */
.dropdown {
    position: relative;
}

.nav-left a,
.nav-right a {
    color: #7b9fcc;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    font-size: 18px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-left a:hover,
.nav-right a:hover {
    color: #2e6bb3;
}

/* Dropdown arrow */
.dropdown-arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu styling */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(123, 159, 204, 0.2);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(255, 255, 255, 0.98);
}

.dropdown-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: #7b9fcc;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0.25rem;
}

.dropdown-menu a:hover {
    background: rgba(123, 159, 204, 0.1);
    color: #2e6bb3;
    transform: translateX(5px);
}

.dropdown-menu a:first-child {
    margin-top: 0.5rem;
}

.dropdown-menu a:last-child {
    margin-bottom: 0.5rem;
}

.donate-btn {
    background: #c41e3a;
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    border: 2px solid #c41e3a;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 18px;
}

.donate-btn:hover {
    background: #a01729;
    border-color: #a01729;
    transform: translateY(-2px);
    color: white !important;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    gap: 4px;
    position: absolute;
    right: 2rem;
    z-index: 20;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: #7b9fcc;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: all 0.3s ease;
    z-index: 15;
}

.mobile-nav.active {
    display: block;
    transform: translateY(0);
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.mobile-nav a {
    color: #7b9fcc;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    padding: 1rem;
    text-align: center;
    width: 100%;
    display: block;
    transition: all 0.3s ease;
}

.mobile-nav a:hover {
    color: #2e6bb3;
    background: rgba(123, 159, 204, 0.1);
    border-radius: 5px;
}

/* Mobile dropdown styling */
.mobile-dropdown {
    width: 100%;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #7b9fcc;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    padding: 1rem;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.mobile-dropdown-toggle:hover {
    color: #2e6bb3;
    background: rgba(123, 159, 204, 0.1);
    border-radius: 5px;
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(123, 159, 204, 0.05);
    border-radius: 5px;
    margin-top: 0.5rem;
}

.mobile-dropdown-menu.active {
    max-height: 200px;
}

.mobile-dropdown-menu a {
    padding: 0.8rem 1.5rem;
    font-size: 18px;
    color: #666;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.mobile-dropdown-menu a:hover {
    border-left-color: #7b9fcc;
    background: rgba(123, 159, 204, 0.1);
}

.mobile-dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 16px;
}

.mobile-dropdown-arrow.rotated {
    transform: rotate(180deg);
}

.mobile-nav .donate-btn {
    background: #c41e3a;
    color: white !important;
    border-radius: 5px;
    margin-top: 1rem;
    max-width: 200px;
}

.mobile-nav .donate-btn:hover {
    background: #a01729;
    color: white !important;
}

/* Content area for demo */
.content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content h1 {
    text-align: center;
    color: #7b9fcc;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.content p {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.no-events {
    height: 40rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-events h1 {
    color: #666;
    font-size: 1.2rem;
}

.no-speeches {
    height: 40rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-speeches h1 {
    color: #666;
    font-size: 1.2rem;
}

/* Large Screens */
@media (max-width: 1200px) {
    nav {
        padding: 0 1.5rem;
    }

    .nav-left,
    .nav-right {
        gap: 1.5rem;
    }

    .nav-left a,
    .nav-right a {
        font-size: 16px;
    }

    .donate-btn {
        font-size: 16px;
    }

    .logo-main {
        font-size: 1.8rem;
    }

    .dropdown-menu a {
        font-size: 15px;
    }
}

/* Medium Screens */
@media (max-width: 1024px) {

    .nav-left,
    .nav-right {
        gap: 1rem;
    }

    .nav-left a,
    .nav-right a {
        font-size: 15px;
        padding: 0.4rem 0.8rem;
    }

    .donate-btn {
        padding: 0.6rem 1.2rem;
        font-size: 15px;
    }

    .logo-main {
        font-size: 1.6rem;
    }

    .logo-sub {
        font-size: 0.6rem;
    }

    .dropdown-menu {
        min-width: 180px;
    }

    .dropdown-menu a {
        padding: 0.8rem 1.2rem;
        font-size: 14px;
    }

    .dropdown-arrow {
        font-size: 12px;
    }
}

/* Small-Medium Screens */
@media (max-width: 900px) {

    .nav-left,
    .nav-right {
        gap: 0.8rem;
    }

    .nav-left a,
    .nav-right a {
        font-size: 14px;
        padding: 0.3rem 0.6rem;
    }

    .donate-btn {
        padding: 0.5rem 1rem;
        font-size: 14px;
    }

    .logo-main {
        font-size: 1.4rem;
    }

    .dropdown-menu {
        min-width: 160px;
    }

    .dropdown-menu a {
        padding: 0.7rem 1rem;
        font-size: 13px;
    }
}

/* Tablet Screens */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    header {
        padding: 2rem 0;
    }

    .nav-left,
    .nav-right {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo {
        position: static;
        transform: none;
    }

    nav {
        justify-content: center;
        padding: 0 1rem;
    }

    .logo-main {
        font-size: 1.8rem;
    }

    .logo-sub {
        font-size: 0.7rem;
    }

    .dropdown-menu {
        display: none !important;
    }
}

/* Small Screens */
@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }

    header {
        padding: 1.5rem 0;
    }

    nav {
        padding: 0 0.5rem;
    }

    .logo-main {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .logo-sub {
        font-size: 0.6rem;
    }

    .mobile-menu-btn {
        right: 1rem;
    }

    .mobile-nav {
        padding: 1.5rem;
    }

    .mobile-dropdown-toggle {
        font-size: 18px;
    }

    .mobile-dropdown-menu a {
        font-size: 16px;
    }
}

/* Extra Small Screens */
@media (max-width: 360px) {
    .logo-main {
        font-size: 1.3rem;
    }

    .logo-sub {
        font-size: 0.5rem;
    }

    .mobile-nav a {
        font-size: 18px;
    }

    .mobile-dropdown-toggle {
        font-size: 16px;
    }

    .mobile-dropdown-menu a {
        font-size: 14px;
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.no-events {
    height: 40rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-events h1 {
    color: #666;
    font-size: 1.2rem;
}

/* Events Section */
.events-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Events Category Headers */
.events-category h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #7b9fcc, #2e6bb3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}


.events-category:first-child .events-grid {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    width: 100%;
    max-width: 100%;
}

.events-slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
}

.events-slider .event-card {
    flex: 0 0 350px;
    width: 350px;
}

/* Add this new rule for slider wrapper */
.events-slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
    width: fit-content;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #7b9fcc;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.slider-btn:hover {
    background: #2e6bb3;
    transform: scale(1.1);
}

.slider-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Slider Indicators */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

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

.indicator.active {
    background: #7b9fcc;
    transform: scale(1.2);
}

/* Event Cards */
.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Event Card Types */
/* .past-event {
    border-left: 5px solid #28a745;
} */

/* .current-event {
    border-left: 5px solid #ffc107;
    animation: pulse 2s infinite;
} */

/* .future-event {
    border-left: 5px solid #007bff;
} */

@keyframes pulse {
    0% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    50% {
        box-shadow: 0 15px 35px rgba(255, 193, 7, 0.3);
    }

    100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
}

/* Event Image */
.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

/* To make images zoom in */
/* .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
} */

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

.event-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.past-event .event-status {
    background: #28a745;
    color: white;
}

.current-event .event-status {
    background: #ffc107;
    color: #000;

}

.future-event .event-status {
    background: #007bff;
    border-radius: 20px;
}

/* Event Content */
.event-content {
    padding: 2rem;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7b9fcc;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.event-content h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: bold;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.event-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Event Stats */
.event-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(123, 159, 204, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #7b9fcc;
    font-weight: bold;
}

/* Event Actions */
.event-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.event-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.event-btn.primary {
    background: #7b9fcc;
    color: white;
}

.event-btn.primary:hover {
    background: #2e6bb3;
    transform: translateY(-2px);
}

.event-btn.secondary {
    background: transparent;
    color: #7b9fcc;
    border: 2px solid #7b9fcc;
}

.event-btn.secondary:hover {
    background: #7b9fcc;
    color: white;
    transform: translateY(-2px);
}

/* Event Signup Section */
.event-signup {
    background: linear-gradient(135deg, #7b9fcc 0%, #2e6bb3 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.signup-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.signup-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.event-signup-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: stretch;
}

.form-row input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

.form-row .join-btn {
    background: #c41e3a;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.form-row .join-btn:hover {
    background: #a01729;
    transform: translateY(-2px);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.checkbox-group label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: #0f1419;
    color: white;
    text-align: center;
    padding: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto 1rem auto;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-left,
    .nav-right {
        display: none;
    }

    .logo {
        position: static;
        transform: none;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .events-slider .event-card {
        flex: 0 0 280px;
        max-width: 280px;
    }

    .events-category h2 {
        font-size: 2rem;
    }

    .event-content {
        padding: 1.5rem;
    }

    .event-content h3 {
        font-size: 1.3rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .form-row .join-btn {
        justify-content: center;
    }

    .event-actions {
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 0 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .events-slider .event-card {
        flex: 0 0 280px;
    }

    .event-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
.event-image img {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Focus states for accessibility */
.event-btn:focus,
.slider-btn:focus,
.join-btn:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* Print styles */
@media print {

    .mobile-menu-btn,
    .slider-controls,
    .event-actions {
        display: none;
    }

    .event-card {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
}