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

:root {
    --primary: #9333ea;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --dark: #0f0818;
    --light: #f1f5f9;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    position: relative;
}

/* Animated starfield background */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at center, #1a0f2e 0%, #0f0818 100%);
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 4s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 3rem 2rem;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(15, 8, 24, 0.95);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.2);
}

.nav-container {
    width: 100%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    position: relative;
}

.logo {
    position: absolute;
    left: 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--light);
    animation: glow 3s ease-in-out infinite;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    width: 70px;
    height: 70px;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(147, 51, 234, 0.5)); }
    50% { filter: drop-shadow(0 0 30px rgba(236, 72, 153, 0.8)); }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.3rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

.nav-menu {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-40%);
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding: 2rem 1.5rem;
    border-radius: 8px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover {
    background: var(--glass);
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(147, 51, 234, 0.8);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}


.nav-links a.active {
    background: var(--glass);
    text-shadow: 0 0 20px rgba(147, 51, 234, 0.8);
    transform: translateY(-2px);
}

.signup-btn {
    position: absolute;
    right: 2rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
    white-space: nowrap;
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

/* Sections */
section {
    min-height: 100vh;
    padding: 80px 2rem 80px;
    position: relative;
    display: block;
    opacity: 1;
}

/* Remove min-height for shorter sections */
#newsletter,
#contact {
    min-height: auto;
    padding: 60px 2rem 60px;
}

section.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Home Section */
#home {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 140px !important;
}

.hero {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero p {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.6);
}

.cta-button:hover::before {
    left: 100%;
}

/* Content Cards */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(147,51,234,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.3);
    border-color: rgba(147, 51, 234, 0.3);
}

.glass-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--accent);
}

/* Weekly Schedule */
.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    margin: 0.5rem 0;
    background: rgba(147, 51, 234, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    background: rgba(147, 51, 234, 0.2);
    transform: translateX(10px);
}

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

.event-card {
    background: linear-gradient(135deg, rgba(147,51,234,0.1), rgba(236,72,153,0.1));
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

.event-date {
    color: var(--secondary);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--light);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.5);
}

/* Meditation Animation */
.meditation-circle {
    width: 200px;
    height: 200px;
    margin: 2rem auto;
    position: relative;
}

.circle {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse 4s ease-in-out infinite;
}

.circle:nth-child(1) {
    width: 100%;
    height: 100%;
    border-color: var(--primary);
    animation-delay: 0s;
}

.circle:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-color: var(--secondary);
    animation-delay: 0.5s;
}

.circle:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-color: var(--accent);
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: linear-gradient(135deg, rgba(147,51,234,0.05), rgba(236,72,153,0.05));
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(147,51,234,0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.3);
}

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 5px 15px rgba(147, 51, 234, 0.3);
    position: relative;
    z-index: 2;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.team-member:hover .member-photo img {
    transform: scale(1.05);
}

.member-info {
    position: relative;
    z-index: 2;
}

.member-info h4 {
    color: var(--light);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.member-role {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.member-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.member-links a {
    padding: 0.4rem 1rem;
    background: rgba(147, 51, 234, 0.1);
    color: var(--primary);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(147, 51, 234, 0.2);
}

.member-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(147, 51, 234, 0.3);
}

/* What We Offer Section */
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.offering-card {
    background: linear-gradient(135deg, rgba(147,51,234,0.08), rgba(6,182,212,0.08));
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.offering-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(147,51,234,0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.offering-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(147, 51, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.3);
}

.offering-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    position: relative;
    z-index: 2;
}

.offering-card h4 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.offering-card p {
    color: var(--light);
    line-height: 1.6;
    opacity: 0.9;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* Format Timeline */
.format-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.format-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(147,51,234,0.05), rgba(6,182,212,0.05));
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(147, 51, 234, 0.1);
}

.format-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(147, 51, 234, 0.1);
    border-color: rgba(147, 51, 234, 0.2);
}

.format-icon {
    font-size: 1.5rem;
    min-width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(147, 51, 234, 0.1);
    border-radius: 50%;
    margin-top: 0.2rem;
}

.format-content {
    flex: 1;
}

.format-content h4 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.format-content p {
    color: var(--light);
    line-height: 1.6;
    opacity: 0.9;
}

.format-content a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.format-content a:hover {
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
}

/* Calendar Styling */
.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.subscribe-btn {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    white-space: nowrap;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.calendar-container {
    background: linear-gradient(135deg, rgba(147,51,234,0.03), rgba(6,182,212,0.03));
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(147, 51, 234, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

.calendar-month-section {
    display: flex;
    align-items: center;
}

.calendar-controls-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calendar-title-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
}

.calendar-header h3 {
    color: var(--light);
    font-size: 1.5rem;
    margin: 0;
    text-align: center;
}

.today-btn {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--accent);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.today-btn:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(6, 182, 212, 0.3);
}

.nav-btn {
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.2);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: rgba(147, 51, 234, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

#calendar-days {
    display: contents;
}

.calendar-day-header {
    background: var(--primary);
    color: white;
    padding: 0.8rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.calendar-day {
    background: rgba(255, 255, 255, 0.02);
    min-height: 80px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.calendar-day:hover {
    background: rgba(147, 51, 234, 0.1);
    transform: scale(1.02);
}

.calendar-day.other-month {
    opacity: 0.3;
}

.calendar-day.today {
    background: linear-gradient(135deg, rgba(147,51,234,0.2), rgba(6,182,212,0.2));
    border: 2px solid var(--primary);
}

.day-number {
    color: var(--light);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.event-indicator {
    font-size: 0.8rem;
    margin: 1px;
    line-height: 1;
    display: inline-block;
}

.event-indicator.weekly-meditation {
    opacity: 1;
}

.event-indicator.retreat {
    opacity: 1;
}

.event-indicator.dharma-dance {
    opacity: 1;
}

.event-indicator.open-mic {
    opacity: 1;
}

.events-legend {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(147, 51, 234, 0.1);
    text-align: center;
    width: 100%;
}

.events-legend p {
    text-align: center !important;
    margin: 1rem auto 0 auto;
    display: block;
    width: 100%;
}


/* Newsletter Section */
.newsletter-content {
    display: block;
    margin-top: 1rem;
}

.substack-subscribe {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(147,51,234,0.08), rgba(6,182,212,0.08));
    border-radius: 20px;
    border: 1px solid rgba(147, 51, 234, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.substack-subscribe::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(147,51,234,0.05) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
}

.newsletter-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    position: relative;
    z-index: 2;
}

.substack-subscribe h3 {
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.substack-subscribe p {
    color: var(--light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.substack-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #FF6719, #FF8A19);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 103, 25, 0.3);
    position: relative;
    z-index: 2;
}

.substack-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 103, 25, 0.4);
    background: linear-gradient(135deg, #FF8A19, #FF6719);
}

.newsletter-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(147, 51, 234, 0.05);
}

.feature-item:hover {
    background: rgba(147, 51, 234, 0.05);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.8rem;
    min-width: 2.5rem;
    text-align: center;
}

.feature-text h4 {
    color: var(--light);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.feature-text p {
    color: var(--light);
    opacity: 0.8;
    line-height: 1.4;
    font-size: 0.9rem;
}


/* Contact Section */
.contact-content {
    display: grid;
    grid-template-rows: auto auto;
    gap: 3rem;
    margin-top: 1rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(147,51,234,0.08), rgba(6,182,212,0.08));
    border-radius: 20px;
    border: 1px solid rgba(147, 51, 234, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(147,51,234,0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.contact-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    position: relative;
    z-index: 2;
}

.contact-card h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.contact-card p {
    color: var(--light);
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.email-container {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.contact-email {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.3);
}

.contact-email:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.4);
}

.response-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--light);
    opacity: 0.8;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

.time-icon {
    font-size: 1.1rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(147, 51, 234, 0.05);
}

.info-item:hover {
    background: rgba(147, 51, 234, 0.05);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(147, 51, 234, 0.1);
}

.info-icon {
    font-size: 2rem;
    min-width: 3rem;
    text-align: center;
    margin-top: 0.2rem;
}

.info-text h4 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-text p {
    color: var(--light);
    opacity: 0.9;
    line-height: 1.5;
    font-size: 0.95rem;
}


/* Email link styling */
.glass-card a[href^="mailto"] {
    color: var(--primary);
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    background: rgba(147, 51, 234, 0.1);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(147, 51, 234, 0.2);
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.glass-card a[href^="mailto"]:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(147, 51, 234, 0.3);
}

/* Internal link styling (matching email styling) */
.glass-card a[href^="#"] {
    color: var(--primary);
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    background: rgba(147, 51, 234, 0.1);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(147, 51, 234, 0.2);
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.glass-card a[href^="#"]:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(147, 51, 234, 0.3);
}



/* Contemplative Semester Mini Section */
.cs-mini-card {
    background: linear-gradient(135deg, rgba(147,51,234,0.1), rgba(6,182,212,0.08));
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(147, 51, 234, 0.15);
    backdrop-filter: blur(15px);
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.cs-mini-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(147,51,234,0.03) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.cs-mini-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.cs-mini-header h2 {
    color: var(--accent);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
}

.cs-mini-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.cs-mini-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--light);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.cs-mini-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.cs-mini-application {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.cs-mini-dates,
.cs-mini-location,
.cs-mini-app-info,
.cs-mini-deadline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light);
    font-size: 1rem;
}

.cs-mini-emoji {
    font-size: 1.2rem;
}

.cs-mini-actions {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.cs-mini-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.cs-mini-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.cs-mini-footer {
    color: var(--light);
    opacity: 0.8;
    font-size: 0.95rem;
    margin: 0;
    position: relative;
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive styles for CS mini section */
@media (max-width: 768px) {
    .cs-mini-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .cs-mini-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cs-mini-header h2 {
        font-size: 1.5rem;
    }
    
    .cs-mini-details,
    .cs-mini-application {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .cs-mini-description {
        font-size: 1rem;
    }
}

/* Footer */
footer {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 2rem;
    text-align: center;
}

.footer-blessing {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent);
    font-style: italic;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--light);
    opacity: 0.8;
}

.footer-copyright a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-copyright a:hover {
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

/* Hide mobile break by default */
.mobile-break {
    display: none;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Desktop legend - keep inline */
@media (min-width: 768px) {
    .events-legend p {
        display: block !important;
        text-align: center !important;
        width: 100%;
        margin: 0 auto;
    }
    
    .legend-item {
        display: inline;
    }
    
    .legend-item:not(:last-child)::after {
        content: " \00a0\00a0 ";
    }
}

/* Large screens (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet portrait (768px - 900px) - iPad Air and similar - Use hamburger menu */
@media (min-width: 768px) and (max-width: 900px) {
    .nav-container {
        min-height: 60px;
        padding: 0;
    }
    
    .logo {
        left: 0;
        font-size: 1.7rem;
        position: static;
    }
    
    .logo-image {
        width: 75px;
        height: 75px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        right: 0;
        position: static;
        margin-left: auto;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 8, 24, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-menu.active {
        max-height: 800px;
        padding: 2rem 1rem;
        gap: 1rem;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        position: static;
        left: auto;
        transform: none;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links li a {
        padding: 0.8rem 1rem;
        font-size: 1rem;
        display: block;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .signup-btn {
        position: static;
        right: auto;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        margin-top: 0.5rem;
        align-self: center;
    }
    
    /* Fix hamburger menu X for tablet */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5.75px, 5.75px);
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4.75px, -4.75px);
    }
    
    /* Team photos - center and resize for tablet portrait */
    .team-member {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 1rem 0.5rem !important;
        box-sizing: border-box !important;
    }
    
    .member-photo {
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto 1rem auto !important;
    }
    
    .team-member img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    /* Contact section - single column layout for tablet */
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
    }
    
    .contact-methods {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .contact-info {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .contact-card {
        padding: 1.5rem !important;
        box-sizing: border-box !important;
    }
}

/* iPad Air landscape orientation (1180x820) */
@media (min-width: 1100px) and (max-width: 1199px) and (max-height: 900px) and (orientation: landscape) {
    .nav-container {
        min-height: 60px;
        padding: 0;
    }
    
    .logo {
        left: 0;
        position: static;
        margin-right: auto;
    }
    
    .mobile-menu-toggle {
        display: flex;
        right: 0;
        position: static;
        margin-left: auto;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 8, 24, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-menu.active {
        max-height: 500px;
        padding: 2rem 1rem;
        gap: 1rem;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        position: static;
        left: auto;
        transform: none;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links li a {
        padding: 0.8rem 1rem;
        font-size: 1rem;
        display: block;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .signup-btn {
        position: static;
        right: auto;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        margin-top: 0.5rem;
        align-self: center;
    }
    
    /* Fix hamburger menu X for iPad Air landscape */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5.75px, 5.75px);
    }

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

/* Medium screens (901px - 1199px) */
@media (min-width: 901px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cs-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Small screens (481px - 767px) */
@media (max-width: 767px) {
    nav {
        padding: 1rem 2rem;
    }
    
    .nav-container {
        min-height: 60px;
        padding: 0;
    }
    
    .logo {
        left: 0;
        font-size: 1.1rem;
        position: static;
    }
    
    .logo-image {
        width: 65px;
        height: 65px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        right: 0;
        position: static;
        margin-left: auto;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 8, 24, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-menu.active {
        max-height: 800px;
        padding: 2rem 1rem;
        gap: 1rem;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        position: static;
        left: auto;
        transform: none;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links li a {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        display: block;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .signup-btn {
        position: static;
        right: auto;
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        margin-top: 0.5rem;
        align-self: center;
    }
    
    /* Hero styles handled above in section-wide rules */
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Team section */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Offerings section */
    .offerings-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Weekly sit format */
    .format-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Events calendar */
    .events-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .calendar-header {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1.2rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
        padding: 0.5rem 0 !important;
    }
    
    .calendar-month-section {
        width: 100%;
        justify-content: center !important;
        order: 1;
    }
    
    .calendar-controls-section {
        width: 100%;
        justify-content: center !important;
        order: 2;
        flex-direction: column !important;
        gap: 0.8rem !important;
    }
    
    .calendar-header h3 {
        font-size: 0.95rem;
        margin-bottom: 0;
        white-space: nowrap;
        text-align: center;
    }
    
    .today-btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.3rem;
        white-space: nowrap;
    }
    
    .calendar-nav-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        order: 2;
        width: 100%;
    }
    
    .nav-btn {
        padding: 0.6rem 1rem;
        font-size: 1.2rem;
        min-width: 50px;
        flex-shrink: 0;
    }
    
    .calendar-day {
        min-height: 70px;
        font-size: 0.85rem;
        padding: 0.4rem 0.2rem;
        min-width: 0;
        overflow: hidden;
    }
    
    .calendar-day-header {
        font-size: 0.8rem;
        padding: 0.6rem 0.2rem;
        font-weight: 600;
        min-width: 0;
    }
    
    .calendar-grid {
        min-height: auto;
        gap: 1px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .calendar-container {
        padding: 1rem;
        overflow-x: auto;
    }
    
    .events-legend p {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        line-height: 1.6;
    }
    
    .legend-item {
        display: block;
        text-align: center;
        font-size: 0.9rem;
    }
    
    /* All section headings for mobile */
    section {
        padding-top: 100px !important;
    }
    
    section .glass-card {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }
    
    section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
        line-height: 1.2;
        padding: 0 0.5rem;
    }
    
    /* Hero section special handling */
    #home {
        padding-top: 160px !important;
    }
    
    .hero h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
        line-height: 1.1;
    }
    
    .hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    
    .cs-dates-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .cs-dates-card h3 {
        font-size: 1.3rem;
    }
    
    .cs-dates-card p {
        font-size: 1rem;
    }
    
    .cs-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cs-info-card {
        padding: 1.5rem;
    }
    
    .cs-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cs-btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Newsletter */
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .substack-subscribe {
        padding: 1.5rem;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .info-icon {
        align-self: center;
        margin-top: 0;
    }
    
    /* Show mobile break on mobile */
    .mobile-break {
        display: inline;
    }
    
    /* Add spacing between footer lines on mobile */
    .footer-copyright {
        line-height: 1.6;
    }
    
    
    /* Stack calendar header section vertically on mobile */
    .calendar-header-section {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }
    
    .events-calendar-heading {
        text-align: center !important;
    }
    
    .calendar-subscribe {
        text-align: center;
    }
    
    /* Center contemplative semester info card headings on mobile */
    .cs-info-card h3 {
        text-align: center;
    }
    
    /* Increase line height for hero subtitle on mobile */
    .hero-subtitle {
        line-height: 1.6;
    }
    
    /* Center contemplative semester description on mobile */
    .cs-description {
        text-align: center !important;
    }
    
    /* Center contact intro on mobile */
    .contact-intro {
        text-align: center !important;
    }
    
    /* Fix hamburger menu X for iPhone 12 Pro portrait */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(9px, 9px);
    }

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

/* Landscape orientation on mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    nav {
        padding: 0.3rem 1rem !important;
    }
    
    .nav-container {
        min-height: 30px !important;
        padding: 0 !important;
    }
    
    .logo {
        font-size: 1rem !important;
        margin-bottom: 0 !important;
    }
    
    .logo-image {
        width: 55px !important;
        height: 55px !important;
    }
    
    .mobile-menu-toggle {
        padding: 0.3rem !important;
        gap: 0.2rem !important;
    }
    
    .mobile-menu-toggle span {
        width: 22px !important;
        height: 2.5px !important;
    }
    
    .nav-menu.active {
        max-height: 300px !important;
        padding: 0.8rem 0.4rem !important;
    }
    
    .nav-links li a {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.8rem !important;
    }
    
    .signup-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Calendar legend - 2x2 grid for landscape */
    .events-legend {
        margin-bottom: 0 !important;
    }
    
    .events-legend p {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: 1fr 1fr !important;
        gap: 0.2rem 0.5rem !important;
        text-align: center !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0.3rem 0 0 0 !important;
        padding: 0 1rem !important;
    }
    
    .legend-item {
        display: block !important;
        font-size: 0.85rem !important;
    }
    
    .legend-item:not(:last-child)::after {
        content: none !important;
    }
    
    /* Team photos - center and resize for landscape */
    .team-member img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    .team-member {
        text-align: center !important;
        padding: 0.8rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    
    /* Contact section cards - prevent overflow */
    .contact-content {
        padding: 0 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .contact-methods,
    .contact-info {
        gap: 0.8rem !important;
    }
    
    .contact-card {
        padding: 1rem 0.8rem !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }

    /* Fix hamburger menu X for iPhone 12 Pro landscape */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(2px, 2px);
    }

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

    /* Ensure home section starts below navbar */
    #home {
        padding-top: 120px !important;
    }
}

/* Extra small screens (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 60px 1rem 60px;
    }
    
    .nav-container {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .logo {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .logo-image {
        width: 60px;
        height: 60px;
    }
    
    .nav-links {
        gap: 0.3rem;
    }
    
    .nav-links li a {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .signup-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .glass-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 1rem;
    }
    
    .calendar-day {
        min-height: 60px;
        font-size: 0.75rem;
        padding: 0.3rem 0.1rem;
    }
    
    .calendar-day-header {
        font-size: 0.7rem;
        padding: 0.4rem 0.1rem;
    }
    
    .calendar-container {
        padding: 0.8rem;
    }
    
    .event-indicator {
        font-size: 0.65rem;
    }
    
    .cs-dates-card {
        padding: 1rem;
    }
    
    .cs-info-card {
        padding: 1rem;
    }
    
    .contact-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-email {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}