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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Arabic Calligraphy Styles */
.arabic-calligraphy {
    text-align: center;
    margin: 25px auto;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
    transition: all 0.3s ease;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.arabic-calligraphy:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.8);
    background: rgba(255, 255, 255, 0.2);
}

.arabic-text {
    font-family: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 10px;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    direction: rtl;
    unicode-bidi: bidi-override;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    text-align: center;
}

.arabic-translation {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #666;
    font-style: italic;
    margin-top: 10px;
    font-weight: 500;
}

.hero-arabic .arabic-text {
    font-size: 3rem;
    color: #FFD700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.hero-arabic .arabic-translation {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.hero-arabic {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 215, 0, 0.7);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    transform: scale(1.03);
}

.hero-arabic:hover {
    transform: scale(1.06);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 215, 0, 0.9);
    background: rgba(255, 255, 255, 0.25);
}

.hero-social {
    margin: 20px 0;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-handle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.social-handle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-handle i {
    font-size: 1.2rem;
}

/* Platform-specific icon colors */
.social-handle i.fa-instagram {
    color: #E4405F;
}

.social-handle i.fa-youtube {
    color: #FF0000;
}

.social-handle i.fa-tiktok {
    color: #000000;
}

/* Contact and footer icon colors */
.contact-item i.fa-youtube {
    color: #FF0000;
}

.contact-item i.fa-tiktok {
    color: #000000;
}

.social-link i.fa-youtube {
    color: #FF0000;
}

.social-link i.fa-tiktok {
    color: #000000;
}

.section-arabic .arabic-text {
    font-size: 2rem;
    color: #2c5530;
}

/* Small Arabic text for team cards */
.team-arabic {
    margin: 10px 0;
    text-align: center;
}

.arabic-text-small {
    font-family: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', serif;
    font-size: 1.2rem;
    color: #FFD700;
    font-weight: 600;
    display: block;
    direction: rtl;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.arabic-translation-small {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    display: block;
    margin-top: 3px;
}

/* Enhanced decorative patterns */
.decorative-pattern {
    position: relative;
}

.decorative-pattern::before,
.decorative-pattern::after {
    content: '❁';
    position: absolute;
    color: #FFD700;
    font-size: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.decorative-pattern::before {
    left: -30px;
}

.decorative-pattern::after {
    right: -30px;
}

/* Islamic geometric patterns for backgrounds */
.islamic-pattern-bg {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(44, 85, 48, 0.1) 2px, transparent 2px);
    background-size: 40px 40px;
}

/* Calligraphic section dividers */
.section-divider {
    text-align: center;
    margin: 50px 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #FFD700, transparent);
    z-index: 1;
}

.section-divider .divider-text {
    display: inline-block;
    background: #f8f9fa;
    padding: 0 30px;
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    color: #2c5530;
    position: relative;
    z-index: 2;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #2c5530;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2c5530;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c5530;
    transition: width 0.3s ease;
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: #2c5530;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}





/* Hero Slideshow Background */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 20s ease-in-out;
    transform: scale(1) translateX(-5%);
}

.slide.active {
    opacity: 1;
    animation: slowPan 20s ease-in-out infinite;
}

@keyframes slowPan {
    0% {
        transform: scale(1.1) translateX(-5%);
    }
    50% {
        transform: scale(1.1) translateX(0%);
    }
    100% {
        transform: scale(1.1) translateX(-5%);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(44, 85, 48, 0.8) 0%,
        rgba(44, 85, 48, 0.6) 50%,
        rgba(44, 85, 48, 0.8) 100%
    );
    z-index: 2;
}







.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 90px 20px 20px 20px; /* Add top padding to account for fixed navbar */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 25px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.7s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.0s;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.1s;
}

.btn {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #fff;
    color: #2c5530;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.hero-scroll i {
    font-size: 24px;
    color: white;
}

/* Photo Collage Section */
.photo-collage-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    position: relative;
    overflow: hidden;
}

.photo-collage-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(44, 85, 48, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(44, 85, 48, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.collage-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.collage-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(44, 85, 48, 0.1);
}

.collage-header p {
    font-size: 1.2rem;
    color: #4a7c59;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.photo-collage {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 150px);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.collage-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    background: white;
}

.collage-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.collage-item.large:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.collage-item.large:nth-child(6) {
    grid-column: 5 / 7;
    grid-row: 3 / 5;
}

.collage-item.medium:nth-child(2) {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
}

.collage-item.medium:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
}

.collage-item.small:nth-child(3) {
    grid-column: 5 / 7;
    grid-row: 1 / 2;
}

.collage-item.small:nth-child(5) {
    grid-column: 3 / 5;
    grid-row: 2 / 4;
}

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

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

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.photo-tag {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.collage-cta {
    text-align: center;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.collage-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #4a7c59 0%, #2c5530 100%);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(44, 85, 48, 0.3);
    position: relative;
    overflow: hidden;
}

.collage-btn:hover {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(44, 85, 48, 0.4);
    color: white;
    text-decoration: none;
}

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

.collage-btn:hover::before {
    left: 100%;
}

/* Mobile Responsiveness for Collage */
@media (max-width: 768px) {
    .photo-collage-section {
        padding: 40px 0;
    }
    
    .collage-header {
        margin-bottom: 2rem;
    }
    
    .collage-header h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .collage-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .photo-collage {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(8, 100px);
        gap: 8px;
        margin: 0 1rem;
    }
    
    .collage-item.large:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
    
    .collage-item.large:nth-child(6) {
        grid-column: 1 / 3;
        grid-row: 7 / 9;
    }
    
    .collage-item.medium:nth-child(2) {
        grid-column: 1 / 2;
        grid-row: 3 / 5;
    }
    
    .collage-item.medium:nth-child(4) {
        grid-column: 1 / 2;
        grid-row: 5 / 7;
    }
    
    .collage-item.small:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }
    
    .collage-item.small:nth-child(5) {
        grid-column: 2 / 3;
        grid-row: 4 / 6;
    }
    
    .collage-cta {
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .collage-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .photo-collage-section {
        padding: 30px 0;
    }
    
    .collage-header h2 {
        font-size: 1.5rem;
    }
    
    .collage-header p {
        font-size: 0.9rem;
    }
    
    .photo-collage {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 150px);
        gap: 10px;
        margin: 0 0.5rem;
    }
    
    .collage-item.large:nth-child(1),
    .collage-item.large:nth-child(6),
    .collage-item.medium:nth-child(2),
    .collage-item.medium:nth-child(4),
    .collage-item.small:nth-child(3),
    .collage-item.small:nth-child(5) {
        grid-column: 1 / 2;
        grid-row: auto;
    }
    
    .collage-btn {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

/* About section logos */
.about-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.about-logo {
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.msa-logo {
    height: 120px;
    border-radius: 50%;
}

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



/* .rutgers-logo placeholder removed to avoid empty ruleset */

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: #f8f9fa;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(44, 85, 48, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.about-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Rutgers Red Styling */
.rutgers-red {
    color: #CC0033;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(204, 0, 51, 0.1);
}

/* MSA White Styling */
.msa-green {
    color: white;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Enhanced Mission Statement */
.mission-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.mission-icon {
    font-size: 2rem;
    animation: missionGlow 3s ease-in-out infinite;
}

.mission-statement h3 {
    font-size: 1.8rem;
    color: #2c5530;
    margin: 0;
    font-weight: 600;
}

.mission-statement p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

.mission-highlights {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    border-left: 4px solid #2c5530;
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.1);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 25px rgba(44, 85, 48, 0.15);
}

.highlight-icon {
    font-size: 1.5rem;
    animation: highlightFloat 2s ease-in-out infinite;
}

.highlight-text {
    flex: 1;
    color: #555;
    line-height: 1.5;
}

.highlight-text strong {
    color: #2c5530;
    font-weight: 700;
}

/* Mission Animations */
@keyframes missionGlow {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
    }
}

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

.quick-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    flex: 1;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Photo Collage */
.about-visual {
    position: relative;
}

.photo-collage {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 400px;
}

.photo-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.photo-large {
    grid-row: 1 / 3;
}

.photo-medium {
    grid-column: 2;
    grid-row: 1;
}

.photo-small {
    grid-column: 2;
    grid-row: 2;
}

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

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

/* Feature Cards */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.feature-card {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #FFD700;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.3rem;
    color: #2c5530;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Teams Section */
.teams {
    padding: 80px 0 120px 0;
    background: linear-gradient(135deg, #fafafa 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

/* Interactive Flip Cards Gallery */
.flip-cards-gallery {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 20px;
    perspective: 1000px;
    justify-items: center;
}

/* Special centering for Brothers Social when it's alone in the last row */
@media (min-width: 1200px) {
    .flip-cards-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .flip-card.brothers-card {
        grid-column: 2 / 3;
    }
}

/* Flip Card Container */
.flip-card {
    width: 100%;
    max-width: 380px;
    height: 400px;
    position: relative;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Front and Back Card Faces */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    transition: all 0.3s ease;
}

.flip-card-back {
    transform: rotateY(180deg);
    justify-content: flex-start;
    text-align: left;
}

/* Card Front Styling */
.card-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c5530;
}

.card-subtitle {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* Hover Hint Styling */
.hover-hint {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.8;
    animation: pulse 2s infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-hint i {
    font-size: 0.9rem;
    color: #ffd700;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.05);
    }
}

/* Hide hint on hover to avoid interference */
.flip-card:hover .hover-hint {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Card Back Styling */
.card-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c5530;
}

.description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 20px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.feature i {
    color: #2c5530;
    width: 16px;
}

.flip-card .social-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    color: white !important;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    margin: 20px auto 0 auto !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    box-shadow: 
        0 4px 14px rgba(240, 148, 51, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-align: center !important;
    width: fit-content !important;
    position: relative !important;
    overflow: hidden !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.flip-card .social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.flip-card .social-link:hover::before {
    left: 100%;
}

.flip-card .social-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 
        0 8px 25px rgba(240, 148, 51, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.15) !important;
    background: linear-gradient(45deg, #fd5949 0%, #d6249f 50%, #285AEB 100%) !important;
    color: white !important;
}

.flip-card .social-link:active {
    transform: translateY(0) !important;
    transition: all 0.1s ease !important;
}

.flip-card .social-link i {
    color: white !important;
    font-size: 1.1rem !important;
    transition: all 0.25s ease !important;
}

.flip-card .social-link:hover i {
    transform: rotate(-5deg) scale(1.05) !important;
}

/* Team-Specific Card Colors */

/* Ladders Card */
.flip-card.ladders-card .flip-card-front {
    background: linear-gradient(135deg, #2e4f63 0%, #4a6a7f 100%);
    color: white;
}

.flip-card.ladders-card .flip-card-back {
    background: linear-gradient(135deg, #2e4f63 0%, #4a6a7f 100%);
    color: white;
}

.flip-card.ladders-card .card-title,
.flip-card.ladders-card .card-content h3 {
    color: white;
}

.flip-card.ladders-card .card-subtitle,
.flip-card.ladders-card .description {
    color: rgba(255, 255, 255, 0.9);
}

.flip-card.ladders-card .feature {
    color: rgba(255, 255, 255, 0.8);
}

.flip-card.ladders-card .feature i {
    color: #ffd700;
}

.flip-card.ladders-card .social-link {
    color: white !important;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.flip-card.ladders-card .social-link:hover {
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: white !important;
    background: linear-gradient(45deg, #fd5949 0%, #d6249f 50%, #285AEB 100%) !important;
}

/* HOPE Card */
.flip-card.hope-card .flip-card-front {
    background: linear-gradient(135deg, #f4e4bc 0%, #fff7e6 100%);
    color: white;
}

.flip-card.hope-card .flip-card-back {
    background: linear-gradient(135deg, #f4e4bc 0%, #fff7e6 100%);
    color: white;
}

.flip-card.hope-card .card-title,
.flip-card.hope-card .card-content h3 {
    color: white !important;
}

.flip-card.hope-card .card-subtitle,
.flip-card.hope-card .description {
    color: rgba(255, 255, 255, 0.9) !important;
}

.flip-card.hope-card .feature {
    color: rgba(255, 255, 255, 0.8) !important;
}

.flip-card.hope-card .feature i {
    color: #e74c3c !important;
}

/* R2R Card */
.flip-card.r2r-card .flip-card-front {
    background: linear-gradient(135deg, #a8d5a8 0%, #c4e3c4 100%);
    color: white;
}

.flip-card.r2r-card .flip-card-back {
    background: linear-gradient(135deg, #a8d5a8 0%, #c4e3c4 100%);
    color: white;
}

.flip-card.r2r-card .card-title,
.flip-card.r2r-card .card-content h3 {
    color: white !important;
}

.flip-card.r2r-card .card-subtitle,
.flip-card.r2r-card .description {
    color: rgba(255, 255, 255, 0.9) !important;
}

.flip-card.r2r-card .feature {
    color: rgba(255, 255, 255, 0.8) !important;
}

.flip-card.r2r-card .feature i {
    color: #2e8b57 !important;
}

/* Submissions Card */
.flip-card.submissions-card .flip-card-front {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4a 100%);
    color: white;
}

.flip-card.submissions-card .flip-card-back {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4a 100%);
    color: white;
}

.flip-card.submissions-card .card-title,
.flip-card.submissions-card .card-content h3 {
    color: white;
}

.flip-card.submissions-card .card-subtitle,
.flip-card.submissions-card .description {
    color: rgba(255, 255, 255, 0.9);
}

.flip-card.submissions-card .feature {
    color: rgba(255, 255, 255, 0.8);
}

.flip-card.submissions-card .feature i {
    color: #64ffda;
}

.flip-card.submissions-card .social-link {
    color: white !important;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.flip-card.submissions-card .social-link:hover {
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: white !important;
    background: linear-gradient(45deg, #fd5949 0%, #d6249f 50%, #285AEB 100%) !important;
}

/* IAW Card */
.flip-card.iaw-card .flip-card-front {
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 50%, #b8860b 100%);
    color: white;
}

.flip-card.iaw-card .flip-card-back {
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 50%, #b8860b 100%);
    color: white;
}

.flip-card.iaw-card .card-title,
.flip-card.iaw-card .card-content h3 {
    color: white !important;
}

.flip-card.iaw-card .card-subtitle,
.flip-card.iaw-card .description {
    color: rgba(255, 255, 255, 0.9) !important;
}

.flip-card.iaw-card .feature {
    color: rgba(255, 255, 255, 0.8) !important;
}

.flip-card.iaw-card .feature i {
    color: #ffd700 !important;
}

/* Sisters Card */
.flip-card.sisters-card .flip-card-front {
    background: linear-gradient(135deg, #f4e4d6 0%, #f8f0e3 50%, #f2e2c7 100%);
    color: #2c5530;
}

.flip-card.sisters-card .flip-card-back {
    background: linear-gradient(135deg, #f4e4d6 0%, #f8f0e3 50%, #f2e2c7 100%);
    color: #2c5530;
}

.flip-card.sisters-card .card-title,
.flip-card.sisters-card .card-content h3 {
    color: #2c5530 !important;
}

.flip-card.sisters-card .card-subtitle,
.flip-card.sisters-card .description {
    color: rgba(44, 85, 48, 0.8) !important;
}

.flip-card.sisters-card .feature {
    color: rgba(44, 85, 48, 0.7) !important;
}

.flip-card.sisters-card .feature i {
    color: #d4af37 !important;
}

/* Brothers Card */
.flip-card.brothers-card .flip-card-front {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #404040 100%);
    color: white;
}

.flip-card.brothers-card .flip-card-back {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #404040 100%);
    color: white;
}

.flip-card.brothers-card .card-title,
.flip-card.brothers-card .card-content h3 {
    color: white !important;
}

.flip-card.brothers-card .card-subtitle,
.flip-card.brothers-card .description {
    color: rgba(255, 255, 255, 0.9) !important;
}

.flip-card.brothers-card .feature {
    color: rgba(255, 255, 255, 0.8) !important;
}

.flip-card.brothers-card .feature i {
    color: #ffd700 !important;
}

/* Mobile Touch Support */
@media (hover: none) and (pointer: coarse) {
    .flip-card-inner {
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .flip-card.flipped .flip-card-inner {
        transform: rotateY(180deg);
    }
}

/* Responsive Design for Flip Cards */
@media (max-width: 1200px) {
    .flip-cards-gallery {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .flip-cards-gallery {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        padding: 0 15px;
    }
    
    .flip-card {
        height: 350px;
    }
    
    .card-logo {
        width: 100px;
        height: 100px;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .card-content h3 {
        font-size: 1.4rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .flip-cards-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .flip-card {
        height: 320px;
    }
    
    .flip-card-front,
    .flip-card-back {
        padding: 25px;
    }
    
    .card-logo {
        width: 80px;
        height: 80px;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-subtitle {
        font-size: 0.9rem;
    }
    
    .card-content h3 {
        font-size: 1.2rem;
    }
    
    .description {
        font-size: 0.85rem;
    }
    
    .hover-hint {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

/* Ladders Featured Hero */
.magazine-card.hero-card.ladders-featured {
    background: linear-gradient(135deg, #2e4f63 0%, #4a6a7f 100%);
    color: white;
    box-shadow: 
        0 25px 50px rgba(46, 79, 99, 0.3),
        0 0 0 1px rgba(46, 79, 99, 0.2);
}

.magazine-card.hero-card.ladders-featured::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.6s ease;
}

.magazine-card.hero-card.ladders-featured:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 35px 70px rgba(46, 79, 99, 0.4),
        0 0 0 1px rgba(46, 79, 99, 0.3);
}

.magazine-card.hero-card.ladders-featured:hover::before {
    transform: rotate(45deg) scale(1.2);
}

.magazine-card.hero-card.ladders-featured .team-name,
.magazine-card.hero-card.ladders-featured .team-description {
    color: white;
}

.magazine-card.hero-card.ladders-featured .team-category {
    background: linear-gradient(45deg, #ffffff, #f0f7ff);
    color: #2e4f63;
}

.magazine-card.hero-card.ladders-featured .stat {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.magazine-card.hero-card.ladders-featured .stat i {
    color: #ffd700;
}

/* Magazine Row Layouts */
.magazine-row {
    display: flex;
    gap: 20px;
}

.magazine-row.medium-row {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.magazine-row.small-row {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Medium Cards */
.magazine-card.medium-card {
    flex: 1;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

/* Hope Medium Card */
.magazine-card.medium-card.hope-card {
    background: linear-gradient(135deg, #f4e4bc 0%, #fff7e6 100%);
    box-shadow: 
        0 15px 35px rgba(244, 228, 188, 0.3),
        0 0 0 1px rgba(244, 228, 188, 0.2);
}

.magazine-card.medium-card.hope-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 25px 50px rgba(244, 228, 188, 0.4),
        0 0 0 1px rgba(244, 228, 188, 0.3);
}

/* R2R Medium Card */
.magazine-card.medium-card.r2r-card {
    background: linear-gradient(135deg, #a8d5a8 0%, #c4e3c4 100%);
    box-shadow: 
        0 15px 35px rgba(168, 213, 168, 0.3),
        0 0 0 1px rgba(168, 213, 168, 0.2);
}

.magazine-card.medium-card.r2r-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 25px 50px rgba(168, 213, 168, 0.4),
        0 0 0 1px rgba(168, 213, 168, 0.3);
}

/* Small Cards */
.magazine-card.small-card {
    border-radius: 18px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    min-height: 160px;
    display: flex;
    flex-direction: column;
}

/* IAW Small Card */
.magazine-card.small-card.iaw-card {
    background: linear-gradient(135deg, #B0C4DE 0%, #d4e2f0 100%);
    box-shadow: 
        0 10px 25px rgba(176, 196, 222, 0.3),
        0 0 0 1px rgba(176, 196, 222, 0.2);
}

.magazine-card.small-card.iaw-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 15px 35px rgba(176, 196, 222, 0.4),
        0 0 0 1px rgba(176, 196, 222, 0.3);
}

/* Submissions Small Card */
.magazine-card.small-card.submissions-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4a 100%);
    color: white;
    box-shadow: 
        0 10px 25px rgba(26, 26, 46, 0.4),
        0 0 0 1px rgba(26, 26, 46, 0.3);
}

.magazine-card.small-card.submissions-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 15px 35px rgba(26, 26, 46, 0.5),
        0 0 0 1px rgba(26, 26, 46, 0.4);
}

.magazine-card.small-card.submissions-card .team-name {
    color: white;
}

/* Sisters Small Card */
.magazine-card.small-card.sisters-card {
    background: linear-gradient(135deg, #EEB7E8 0%, #f5d3f0 100%);
    box-shadow: 
        0 10px 25px rgba(238, 183, 232, 0.3),
        0 0 0 1px rgba(238, 183, 232, 0.2);
}

.magazine-card.small-card.sisters-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 15px 35px rgba(238, 183, 232, 0.4),
        0 0 0 1px rgba(238, 183, 232, 0.3);
}

/* Brothers Small Card */
.magazine-card.small-card.brothers-card {
    background: linear-gradient(135deg, #87CEEB 0%, #a8ddf0 100%);
    box-shadow: 
        0 10px 25px rgba(135, 206, 235, 0.3),
        0 0 0 1px rgba(135, 206, 235, 0.2);
}

.magazine-card.small-card.brothers-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 15px 35px rgba(135, 206, 235, 0.4),
        0 0 0 1px rgba(135, 206, 235, 0.3);
}

/* Magazine Content Layout */
.magazine-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
}

.hero-card .magazine-content {
    gap: 20px;
}

.medium-card .magazine-content,
.small-card .magazine-content {
    gap: 15px;
}

/* Magazine Logos */
.magazine-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.hero-card .magazine-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.small-card .magazine-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

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

.magazine-card:hover .magazine-logo {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.magazine-card:hover .magazine-logo img {
    transform: scale(1.05);
}

/* Magazine Info Content */
.magazine-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.team-category {
    display: inline-block;
    background: linear-gradient(45deg, #2c5530, #4a7c59);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.3);
}

.team-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-card .team-name {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.small-card .team-name {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.team-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 1rem;
}

.hero-card .team-description {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Team Stats (Hero only) */
.team-stats {
    margin-bottom: 15px;
}

.stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(44, 85, 48, 0.1);
    color: #2c5530;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.stat i {
    color: #e74c3c;
}

/* Social Links */
.team-social {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c5530;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
    transition: all 0.3s ease;
}

.team-social i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
}

.magazine-card:hover .team-social {
    transform: translateY(-2px);
    color: #1a3d1f;
}

/* Team-specific accent colors - Removed borders for cleaner look */

/* Responsive Magazine Layout */
@media (max-width: 768px) {
    .teams-magazine {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .magazine-card.hero-card {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        min-height: 300px;
        padding: 30px 25px;
    }
    
    .magazine-row.medium-row {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        flex-direction: column;
        gap: 15px;
    }
    
    .magazine-row.small-row {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .hero-card .team-name {
        font-size: 2rem;
    }
    
    .hero-card .magazine-logo {
        width: 80px;
        height: 80px;
    }
    
    .medium-card .magazine-content,
    .small-card .magazine-content {
        gap: 12px;
    }
    
    .magazine-card.medium-card,
    .magazine-card.small-card {
        min-height: 140px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .magazine-row.small-row {
        grid-template-columns: 1fr;
    }
    
    .team-name {
        font-size: 1.5rem;
    }
    
    .hero-card .team-name {
        font-size: 1.8rem;
    }
    
    .small-card .team-name {
        font-size: 1.2rem;
    }
}

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

/* Centered grid for single team card */
.teams-grid-centered {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.teams-grid-centered .team-card {
    max-width: 350px;
    width: 100%;
}

.team-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: #2c5530;
    box-shadow: 0 20px 50px rgba(44, 85, 48, 0.2);
}

/* Themed tile backgrounds and borders derived from team icon theme */
.team-card.card-theme-hope {
    background: linear-gradient(180deg, #fff7f5 0%, #fff 50%);
    border-color: rgba(255, 107, 107, 0.35);
}

.team-card.card-theme-ladders {
    background: linear-gradient(180deg, #f2f7ff 0%, #fff 50%);
    border-color: rgba(46, 111, 176, 0.3);
}

.team-card.card-theme-iaw {
    background: linear-gradient(180deg, #f8efe3 0%, #fff 50%);
    border-color: rgba(167, 123, 93, 0.3);
}

.team-card.card-theme-r2r {
    background: #a8d5a8 !important;
    border-color: #a8d5a8;
    color: #2c2c2c;
}

.team-card.card-theme-submissions {
    background: linear-gradient(180deg, #e9fbf8 0%, #fff 50%);
    border-color: rgba(13, 96, 89, 0.25);
}

.team-card.card-theme-sisters {
    background: linear-gradient(180deg, #fff0f6 0%, #fff 50%);
    border-color: rgba(245, 168, 198, 0.3);
}

.team-card.card-theme-brothers {
    background: linear-gradient(180deg, #f3f4f6 0%, #fff 50%);
    border-color: rgba(31, 41, 55, 0.25);
}

.team-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    padding: 6px; /* show ring around inner image */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.team-icon i {
    font-size: 2rem;
    color: white;
}

/* Ensure inserted logos display nicely */
.team-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Themed icon backgrounds/rings based on team */
.team-icon.theme-hope, .team-icon.hope {
    background: linear-gradient(135deg, #ffe3dd, #ffd1c6);
    box-shadow: 0 10px 22px rgba(255, 107, 107, 0.35);
}

.team-icon.theme-ladders, .team-icon.ladders {
    background: linear-gradient(135deg, #d7e6ff, #a8c7ff);
    box-shadow: 0 10px 22px rgba(46, 111, 176, 0.35);
}

.team-icon.theme-iaw, .team-icon.iaw {
    background: linear-gradient(135deg, #f3e0c7, #d9b894);
    box-shadow: 0 10px 22px rgba(167, 123, 93, 0.35);
}

.team-icon.theme-r2r, .team-icon.r2r {
    background: linear-gradient(135deg, #d7f2df, #bde6cd);
    box-shadow: 0 10px 22px rgba(44, 85, 48, 0.35);
}

.team-icon.theme-submissions, .team-icon.submissions {
    background: linear-gradient(135deg, #c7f5ef, #a6f2e5);
    box-shadow: 0 10px 22px rgba(13, 96, 89, 0.28);
}

.team-icon.theme-sisters, .team-icon.sisters {
    background: linear-gradient(135deg, #ffe3ef, #f7c7d9);
    box-shadow: 0 10px 22px rgba(245, 168, 198, 0.35);
}

.team-icon.theme-brothers, .team-icon.brothers {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    box-shadow: 0 10px 22px rgba(31, 41, 55, 0.35);
}

/* Team Card Themes */
.team-hope {
    border: 2px solid #ffe3dd;
    background: linear-gradient(135deg, #fffafa, #fff5f5);
}

.team-hope:hover {
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.2);
    border-color: #ffd1c6;
}

.team-ladders {
    border: 2px solid #d7e6ff;
    background: linear-gradient(135deg, #f8faff, #f0f7ff);
}

.team-ladders:hover {
    box-shadow: 0 15px 40px rgba(46, 111, 176, 0.2);
    border-color: #a8c7ff;
}

.team-iaw {
    border: 2px solid #f3e0c7;
    background: linear-gradient(135deg, #fffbf6, #fef9f1);
}

.team-iaw:hover {
    box-shadow: 0 15px 40px rgba(167, 123, 93, 0.2);
    border-color: #d9b894;
}

.team-r2r {
    border: 2px solid #a8d5a8;
    background: #a8d5a8;
    color: #2c2c2c;
}

.team-r2r:hover {
    box-shadow: 0 15px 40px rgba(168, 213, 168, 0.4);
    border-color: #a8d5a8;
}

.team-submissions {
    border: 2px solid #c7f5ef;
    background: linear-gradient(135deg, #f4fdfc, #edfbf8);
}

.team-submissions:hover {
    box-shadow: 0 15px 40px rgba(13, 96, 89, 0.2);
    border-color: #a6f2e5;
}

.team-sisters {
    border: 2px solid #ffe3ef;
    background: linear-gradient(135deg, #fffafc, #fef7fa);
}

.team-sisters:hover {
    box-shadow: 0 15px 40px rgba(245, 168, 198, 0.2);
    border-color: #f7c7d9;
}

.team-brothers {
    border: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.team-brothers:hover {
    box-shadow: 0 15px 40px rgba(31, 41, 55, 0.2);
    border-color: #cbd5e1;
}

.team-card h3 {
    font-size: 1.5rem;
    color: #2c5530;
    margin-bottom: 15px;
    font-weight: 600;
}

.team-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Team Instagram styling */
.team-instagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.team-card-link:hover .team-instagram {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(188, 24, 136, 0.3);
}

.team-instagram i {
    font-size: 1.1rem;
}

.team-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* New Logo-Focused Teams Design */
.teams-showcase {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.teams-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    justify-items: center;
}

.teams-row:last-child {
    margin-bottom: 0;
}

.team-logo-card {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
}

.team-logo-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: inherit;
}

.team-logo-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.team-logo-card:hover .team-logo-image {
    transform: scale(1.1);
}

.team-logo-overlay {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 85%;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6), transparent);
    color: white;
    padding: 30px 15px 20px;
    border-radius: 0 0 50% 50%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-logo-card:hover .team-logo-overlay {
    transform: translateX(-50%) translateY(0);
}

.team-logo-overlay h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.team-logo-overlay p {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.team-follow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #FFD700;
    font-weight: 600;
}

.team-follow i {
    font-size: 1.1rem;
}

/* Individual Team Card Styling */
.hope-card:hover {
    box-shadow: 0 25px 50px rgba(255, 107, 107, 0.3);
}

.ladders-card:hover {
    box-shadow: 0 25px 50px rgba(46, 111, 176, 0.3);
}

.iaw-card:hover {
    box-shadow: 0 25px 50px rgba(167, 123, 93, 0.3);
}

.r2r-card {
    background: #a8d5a8 !important;
    border-color: #a8d5a8 !important;
    color: #2c2c2c !important;
}

.r2r-card:hover {
    box-shadow: 0 25px 50px rgba(168, 213, 168, 0.4);
}

.submissions-card:hover {
    box-shadow: 0 25px 50px rgba(13, 96, 89, 0.3);
}

.sisters-card:hover {
    box-shadow: 0 25px 50px rgba(245, 168, 198, 0.3);
}

.brothers-card:hover {
    box-shadow: 0 25px 50px rgba(31, 41, 55, 0.3);
}

/* Mobile Responsiveness for New Teams Design */
@media (max-width: 768px) {
    .teams-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .team-logo-card {
        width: 250px;
        height: 250px;
    }
    
    .team-logo-overlay {
        transform: translateX(-50%) translateY(60%);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7), transparent);
    }
    
    .team-logo-card:hover .team-logo-overlay {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 480px) {
    .teams-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-logo-card {
        width: 220px;
        height: 220px;
    }
    
    .team-logo-overlay h3 {
        font-size: 1.2rem;
    }
    
    .team-logo-overlay p {
        font-size: 0.9rem;
    }
}

/* Events Section */
.events {
    background: #f8f9fa;
    position: relative;
}

.events::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Remove gold triangle pattern */
    background-image: none;
    pointer-events: none;
}

.calendar-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    padding: 40px;
    margin: 0 auto 60px auto;
    max-width: 1200px; /* Make calendar wider on desktop */
    box-shadow: 0 15px 40px rgba(44, 85, 48, 0.1);
    border: 1px solid rgba(44, 85, 48, 0.1);
    position: relative;
    overflow: hidden;
}

.calendar-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(44, 85, 48, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 2px solid rgba(44, 85, 48, 0.1);
    position: relative;
    z-index: 2;
}

.calendar-nav {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    border: none;
    padding: 15px 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(44, 85, 48, 0.3);
    font-size: 1.1rem;
}

.calendar-nav:hover {
    background: linear-gradient(135deg, #4a7c59 0%, #2c5530 100%);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(44, 85, 48, 0.4);
}

#currentMonth {
    font-size: 2rem;
    font-weight: 700;
    color: #2c5530;
    text-shadow: 1px 1px 2px rgba(44, 85, 48, 0.1);
    position: relative;
    z-index: 2;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: rgba(44, 85, 48, 0.1);
    border-radius: 15px;
    overflow: hidden;
    padding: 8px;
    position: relative;
    z-index: 2;
}

.calendar-day {
    background: white;
    padding: 18px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.calendar-day:hover {
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 85, 48, 0.15);
}

.calendar-day.has-event {
    position: relative;
}

/* Event type specific colors - Higher specificity to ensure they apply */
.calendar-day.has-event.event-general,
.calendar-day.event-general {
    background: #2c5530 !important; /* Dark green to match MSA logo */
    color: white !important;
}

.calendar-day.has-event.event-ladders,
.calendar-day.event-ladders {
    background: #2e4f63 !important; /* Dark blue to match Ladders logo */
    color: white !important;
}

.calendar-day.has-event.event-sisters-social,
.calendar-day.event-sisters-social {
    background: #EEB7E8 !important; /* Light magenta for Sisters' Social */
    color: #2c5530 !important;
}

.calendar-day.has-event.event-brothers-social,
.calendar-day.event-brothers-social {
    background: #87CEEB !important; /* Sky blue for Brothers' Social */
    color: #2c5530 !important;
}

.calendar-day.has-event.event-hope,
.calendar-day.event-hope {
    background: #f4e4bc !important; /* Cream/beige to match Hope logo background */
    color: #2c5530 !important;
}

.calendar-day.has-event.event-iaw,
.calendar-day.event-iaw {
    background: #B0C4DE !important; /* Light steel blue for IAW */
    color: #2c5530 !important;
}

.calendar-day.has-event.event-r2r,
.calendar-day.event-r2r {
    background: #F0E68C !important; /* Khaki for R2R */
    color: #2c5530 !important;
}

.calendar-day.has-event.event-submissions,
.calendar-day.event-submissions {
    background: #1a1a2e !important; /* Dark navy to match Submissions logo background */
    color: white !important;
}

.event-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background: #FFD700;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Past Event Styling */
.calendar-day.past-event {
    opacity: 0.7;
    filter: grayscale(30%);
    position: relative;
}

.past-event-x {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff4444;
    text-shadow: 
        1px 1px 0 #fff,
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        2px 2px 3px rgba(0, 0, 0, 0.3);
    z-index: 10;
    pointer-events: none;
    animation: fadeInX 0.5s ease-in-out;
}

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

/* Hover effect for past events */
.calendar-day.past-event:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.calendar-day.past-event:hover .past-event-x {
    color: #cc0000;
}

/* Event Logo Styling */
.event-logo-single {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.9;
}

/* Circular logos for specific teams in calendar - Perfect circles */
.calendar-day.event-ladders .event-logo-single,
.calendar-day.event-submissions .event-logo-single,
.calendar-day.event-hope .event-logo-single,
.calendar-day.event-ladders .event-logo,
.calendar-day.event-submissions .event-logo,
.calendar-day.event-hope .event-logo,
.calendar-day.event-ladders img,
.calendar-day.event-submissions img,
.calendar-day.event-hope img,
.event-ladders .event-logo-single,
.event-submissions .event-logo-single,
.event-hope .event-logo-single,
.event-ladders .event-logo,
.event-submissions .event-logo,
.event-hope .event-logo,
.event-ladders img,
.event-submissions img,
.event-hope img,
img.event-logo-single[src*="Lad.jpg"],
img.event-logo-single[src*="Sub.jpg"],
img.event-logo-single[src*="hope.jpg"],
img.event-logo[src*="Lad.jpg"],
img.event-logo[src*="Sub.jpg"],
img.event-logo[src*="hope.jpg"],
.calendar-day img[src*="Lad.jpg"],
.calendar-day img[src*="Sub.jpg"],
.calendar-day img[src*="hope.jpg"] {
    border-radius: 50% !important;
    overflow: hidden !important;
    object-fit: cover !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1 !important;
}

/* Position date number overlay in top-right corner */
.day-number-overlay {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    z-index: 10 !important;
    font-weight: bold !important;
    font-size: 12px !important;
    line-height: 1 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #333 !important;
    text-shadow: none !important;
    min-width: 16px !important;
    text-align: center !important;
}

/* Ladders logo specific positioning - Updated for circular */
.ladders-logo {
    transform: translate(-50%, -50%) !important;
    width: 55px !important;
    height: 55px !important;
}

.calendar-day.multiple-events {
    position: relative;
}

.event-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    border-radius: 8px;
    overflow: hidden;
}

.event-element {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.event-color-only {
    width: 100%;
    height: 100%;
}

.day-number-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    color: #2c5530;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

/* Past event indicator in legend */
.legend-color.past-event-indicator {
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    color: #ff4444;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
}

/* Legend logo styling */
.legend-logo {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legend-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Calendar Legend */
.calendar-legend {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    border: 1px solid rgba(44, 85, 48, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

.calendar-legend h4 {
    margin-bottom: 20px;
    color: #2c5530;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.calendar-legend h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #2c5530, #FFD700);
    border-radius: 2px;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.legend-item:hover {
    background: white;
    box-shadow: 0 3px 10px rgba(44, 85, 48, 0.1);
    transform: translateY(-1px);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.legend-color.event-general {
    background: #2c5530; /* Dark green to match MSA logo */
}

.legend-color.event-ladders {
    background: #2e4f63; /* Dark blue to match Ladders logo */
}

.legend-color.event-hope {
    background: #f4e4bc; /* Cream/beige to match Hope logo */
}

.legend-color.event-iaw {
    background: #B0C4DE; /* Light steel blue for IAW */
}

.legend-color.event-r2r {
    background: #F0E68C; /* Khaki for R2R */
}

.legend-color.event-submissions {
    background: #1a1a2e; /* Dark navy to match Submissions logo */
}

.legend-color.event-sisters-social {
    background: #EEB7E8; /* Light magenta for Sisters' Social */
}

.legend-color.event-brothers-social {
    background: #87CEEB; /* Sky blue for Brothers' Social */
}

.legend-color.event-r2r {
    background: #F0E68C; /* Khaki for R2R */
}

/* Event Modal */
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2c5530;
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-event {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #2c5530;
    background: #f8f9fa;
}

.modal-event:last-child {
    margin-bottom: 0;
}

.modal-event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.modal-event-header h4 {
    margin: 0;
    color: #2c5530;
    font-size: 1.1rem;
}

.modal-event-type {
    background: #2c5530;
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.modal-event-details p {
    margin: 5px 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-event-details i {
    color: #2c5530;
    width: 16px;
}

/* Modal event type styling */
.modal-event.event-general {
    border-left-color: #2c5530;
}

.modal-event.event-general .modal-event-type {
    background: #2c5530;
    color: white;
}

.modal-event.event-ladders {
    border-left-color: #2e4f63;
}

.modal-event.event-ladders .modal-event-type {
    background: #2e4f63;
    color: white;
}

.modal-event.event-sisters-social {
    border-left-color: #EEB7E8;
}

.modal-event.event-sisters-social .modal-event-type {
    background: #EEB7E8;
    color: #2c5530;
}

.modal-event.event-brothers-social {
    border-left-color: #87CEEB;
}

.modal-event.event-brothers-social .modal-event-type {
    background: #87CEEB;
    color: #2c5530;
}

.modal-event.event-hope {
    border-left-color: #f4e4bc;
}

.modal-event.event-hope .modal-event-type {
    background: #f4e4bc;
    color: #2c5530;
}

.modal-event.event-iaw {
    border-left-color: #B0C4DE;
}

.modal-event.event-iaw .modal-event-type {
    background: #B0C4DE;
    color: #2c5530;
}

.modal-event.event-r2r {
    border-left-color: #F0E68C; /* Khaki for R2R */
}

.modal-event.event-r2r .modal-event-type {
    background: #F0E68C; /* Khaki for R2R */
    color: #2c5530;
}

.modal-event.event-submissions {
    border-left-color: #1a1a2e;
}

.modal-event.event-submissions .modal-event-type {
    background: #1a1a2e;
    color: white;
}

.calendar-day.other-month {
    color: #ccc;
}

.events-list h3 {
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
    position: relative;
    text-shadow: 1px 1px 2px rgba(44, 85, 48, 0.1);
}

.events-list h3::before {
    content: '✦';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFD700;
    font-size: 1.5rem;
}

.events-list h3::after {
    content: '✦';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFD700;
    font-size: 1.5rem;
}

/* Modern Featured Events Grid */
.featured-events-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Featured Event Card (Main) */
.featured-event-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfa 100%);
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(44, 85, 48, 0.15);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(44, 85, 48, 0.1);
}

.featured-event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(44, 85, 48, 0.25);
}

.event-poster {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

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

.featured-event-card .event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(44, 85, 48, 0.1) 0%, 
        rgba(0, 0, 0, 0.05) 100%
    );
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
}

.event-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #2c5530;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-content {
    padding: 30px;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.event-header h4 {
    font-size: 1.8rem;
    color: #2c5530;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.event-type-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 15px;
}

.event-type-badge.ladders {
    background: linear-gradient(135deg, #2e4f63 0%, #4a7c8a 100%);
    color: white;
}

.event-info {
    margin-bottom: 25px;
}

.event-info p {
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.event-info i {
    color: #2c5530;
    width: 18px;
    font-size: 1rem;
}

.event-sponsors {
    margin-top: 15px;
}

.boba-highlight {
    background: linear-gradient(135deg, #E8F5E8 0%, #F0FFF0 50%, #E8F5E8 100%);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid #90EE90;
    box-shadow: 0 8px 25px rgba(144, 238, 144, 0.3);
    position: relative;
    overflow: hidden;
    animation: bobaPulse 3s ease-in-out infinite;
}

.boba-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: bobaShine 4s ease-in-out infinite;
}

.boba-icon {
    font-size: 2.5rem;
    animation: bobaFloat 2s ease-in-out infinite;
}

.boba-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.free-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #2c5530;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(44, 85, 48, 0.1);
}

.sponsor-info {
    font-size: 0.9rem;
    color: #666;
}

.sponsor-handle {
    color: #2c5530;
    font-weight: 700;
    background: linear-gradient(135deg, #90EE90, #32CD32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.boba-sparkle {
    font-size: 1.5rem;
    animation: sparkleRotate 3s linear infinite;
}

/* Boba Animations */
@keyframes bobaPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(144, 238, 144, 0.3);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 12px 35px rgba(144, 238, 144, 0.5);
    }
}

@keyframes bobaFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

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

@keyframes bobaShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.event-actions {
    display: flex;
    gap: 15px;
}

.learn-more-btn, .remind-me-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.learn-more-btn {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
}

.learn-more-btn:hover {
    background: linear-gradient(135deg, #1e3a21 0%, #2c5530 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 85, 48, 0.3);
}

.remind-me-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #2c5530;
    border: 2px solid #2c5530;
}

.remind-me-btn:hover {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 85, 48, 0.3);
}

/* Upcoming Events Sidebar */
.upcoming-events-sidebar {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(44, 85, 48, 0.1);
    border: 1px solid rgba(44, 85, 48, 0.05);
}

.upcoming-events-sidebar h5 {
    font-size: 1.3rem;
    color: #2c5530;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.mini-event-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 85, 48, 0.05);
}

.mini-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 85, 48, 0.15);
}

.mini-event-date {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    min-width: 60px;
    height: fit-content;
}

.mini-event-date .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.mini-event-date .month {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
    opacity: 0.9;
}

.mini-event-info {
    flex: 1;
}

.mini-event-info h6 {
    font-size: 1rem;
    color: #2c5530;
    margin-bottom: 5px;
    font-weight: 600;
}

.mini-event-info p {
    color: #666;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.mini-event-info i {
    color: #2c5530;
    width: 12px;
    font-size: 0.8rem;
}

.mini-event-type {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.mini-event-type.general {
    background: #e8f5e8;
    color: #2c5530;
}

.mini-event-type.sisters {
    background: #fef2ff;
    color: #8b5a8c;
}

.mini-event-type.ladders {
    background: #e6f3ff;
    color: #2e4f63;
}

.view-all-events {
    margin-top: 20px;
    text-align: center;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: linear-gradient(135deg, #1e3a21 0%, #2c5530 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 85, 48, 0.3);
    text-decoration: none;
    color: white;
}

.event-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfa 100%);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 25px;
    box-shadow: 0 8px 30px rgba(44, 85, 48, 0.12);
    transition: all 0.4s ease;
    border: 1px solid rgba(44, 85, 48, 0.1);
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c5530, #FFD700, #2c5530);
}

.event-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(44, 85, 48, 0.2);
}

.event-date {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 5px 15px rgba(44, 85, 48, 0.3);
    position: relative;
}

.event-date::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FFD700, #2c5530, #FFD700);
    border-radius: 17px;
    z-index: -1;
    opacity: 0.3;
}

.event-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.event-date .month {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.event-details h4 {
    font-size: 1.3rem;
    color: #2c5530;
    margin-bottom: 10px;
}

.event-details p {
    color: #666;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-details i {
    color: #2c5530;
    width: 16px;
}

/* Event type badges */
.event-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 10px;
}

.event-card.event-general .event-type {
    background: #90EE90;
    color: #2c5530;
}

.event-card.event-ladders .event-type {
    background: #FFA07A;
    color: #2c5530;
}

.event-card.event-sisters-social .event-type {
    background: #EEB7E8;
    color: #2c5530;
}

.event-card.event-brothers-social .event-type {
    background: #87CEEB;
    color: #2c5530;
}

.event-card.event-hope .event-type {
    background: #FFDAB9;
    color: #2c5530;
}

.event-card.event-iaw .event-type {
    background: #B0C4DE;
    color: #2c5530;
}

.event-card.event-r2r .event-type {
    background: #F0E68C; /* Khaki for R2R */
    color: #2c5530;
}

.event-card.event-submissions .event-type {
    background: #D4B5FF;
    color: #2c5530;
}

/* Enhanced event cards with type-specific borders */
.event-card.event-general {
    border-left: 4px solid #90EE90;
}

.event-card.event-ladders {
    border-left: 4px solid #FFA07A;
}

.event-card.event-sisters-social {
    border-left: 4px solid #EEB7E8;
}

.event-card.event-brothers-social {
    border-left: 4px solid #87CEEB;
}

.event-card.event-hope {
    border-left: 4px solid #FFDAB9;
}

.event-card.event-iaw {
    border-left: 4px solid #B0C4DE;
}

.event-card.event-r2r {
    border-left: 4px solid #F0E68C; /* Khaki for R2R */
}

.event-card.event-submissions {
    border-left: 4px solid #D4B5FF;
}

/* Gallery Section */
.gallery {
    background: white;
}

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

.filter-btn {
    padding: 12px 25px;
    background: transparent;
    border: 2px solid #2c5530;
    color: #2c5530;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2c5530;
    color: white;
}

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

/* Initially show only 3 items */
.gallery-grid:not(.expanded) .gallery-item:nth-child(n+4) {
    display: none;
}

/* Show More/Less button */
.gallery-toggle {
    text-align: center;
    margin-top: 30px;
}

.gallery-toggle-btn {
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.3);
}

.gallery-toggle-btn:hover {
    background: linear-gradient(135deg, #4a7c59, #6b9474);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 85, 48, 0.4);
}

.toggle-icon {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.gallery-toggle-btn:hover .toggle-icon {
    transform: translateY(2px);
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    aspect-ratio: 1;
}

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

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

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

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

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

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

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    background: #f8f9fa;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(44, 85, 48, 0.04) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 215, 0, 0.04) 2px, transparent 2px);
    background-size: 50px 50px;
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #2c5530;
    width: 30px;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.2rem;
    color: #2c5530;
    margin-bottom: 5px;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

/* Modern Contact Section */
.contact .section-header {
    margin-bottom: 30px;
}

.contact-content-simple {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    padding: 0;
}

.contact-links {
    display: flex;
    gap: 30px;
    max-width: 700px;
    align-items: center;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.1),
        0 1px 3px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(44, 85, 48, 0.1);
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.contact-link:hover::before {
    left: 100%;
}

.contact-link:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.15),
        0 0 0 1px rgba(44, 85, 48, 0.1);
    text-decoration: none;
    color: inherit;
}

.contact-link i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #2c5530;
    width: auto;
    transition: all 0.3s ease;
}

.contact-link:hover i {
    transform: scale(1.1);
}

.contact-link i.fa-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-link i.fa-link {
    color: #2c5530;
}

.contact-link h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.contact-link:hover h4 {
    color: #1a3d1f;
}

.contact-link p {
    color: #666;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.contact-link:hover p {
    opacity: 1;
    color: #2c5530;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5530;
}

/* Footer */
.footer {
    background: #2c5530;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: contain;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-social h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: white;
    color: #2c5530;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

.footer-arabic {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.footer-arabic .arabic-text {
    font-family: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', serif;
    font-size: 1.5rem;
    color: #FFD700;
    direction: rtl;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
}

.footer-arabic .arabic-translation {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* Developer Credit */
.developer-credit {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-top: 8px;
}

.developer-credit a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.developer-credit a:hover {
    color: #4a7c59;
    text-decoration: underline;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    /* Hamburger Animation */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hide Arabic calligraphy on mobile */
    .hero-arabic,
    .section-arabic {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: 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-menu li {
        margin: 15px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        padding: 80px 15px 20px 15px; /* Reduced padding since Arabic box is hidden */
    }
    
    .social-handle {
        font-size: 0.85rem;
        padding: 8px 12px;
        gap: 6px;
    }
    
    .hero-social {
        gap: 10px;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Mobile About Enhancements */
    .mission-header {
        gap: 10px;
    }
    
    .mission-icon {
        font-size: 1.5rem;
    }
    
    .highlight-item {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .highlight-item:hover {
        transform: translateX(5px);
    }
    
    .highlight-icon {
        font-size: 1.2rem;
    }
    
    .photo-collage {
        height: 300px;
        grid-template-columns: 1fr 1fr;
    }
    
    .quick-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Carousel mobile responsiveness */
    .album-carousel {
        height: 50vh;
    }
    
    .carousel-container {
        width: 90%;
    }
    
    .view-toggle {
        flex-direction: column;
        gap: 5px;
        margin: 10px 0;
    }
    
    .view-toggle-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-info {
        bottom: 10px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    /* About logos responsive */
    .about-logos {
        gap: 20px;
    }
    
    .about-logo {
        height: 60px;
    }
    
    .msa-logo {
        height: 90px;
    }
    
    .teams-grid {
        grid-template-columns: 1fr;
    }
    
    /* Team Instagram responsive */
    .team-instagram {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 25px;
        max-width: 350px;
    }
    
    .contact-link {
        padding: 30px 25px;
    }
    
    .contact-link i {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .contact-link h4 {
        font-size: 1.2rem;
    }
    
    /* Mobile Footer - Very Small */
    .footer {
        padding: 20px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        margin-bottom: 15px;
        gap: 0;
    }
    
    /* Hide Quick Links and Follow Us on mobile */
    .footer-links,
    .footer-social {
        display: none;
    }
    
    /* Make footer logo smaller on mobile */
    .footer-logo img {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    
    .footer-logo h3 {
        font-size: 1.1rem;
        margin-bottom: 3px;
    }
    
    .footer-logo p {
        font-size: 0.8rem;
        margin-bottom: 0;
    }
    
    /* Make footer bottom smaller */
    .footer-bottom {
        padding-top: 15px;
        font-size: 0.8rem;
    }
    
    .footer-arabic {
        margin-bottom: 10px;
        padding: 15px;
    }
    
    .footer-arabic .arabic-text {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    .footer-arabic .arabic-translation {
        font-size: 0.8rem;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 20px;
        padding: 15px 0;
    }
    
    .calendar-container {
        padding: 20px;
        margin-bottom: 40px;
        border-radius: 15px;
    }
    
    #currentMonth {
        font-size: 1.5rem;
    }
    
    /* Mobile calendar improvements */
    .calendar-grid {
        gap: 1px;
        border-radius: 10px;
    }
    
    .calendar-day {
        padding: 12px 4px;
        font-size: 0.9rem;
        min-height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .calendar-header {
        margin-bottom: 20px;
    }
    
    .calendar-header h3 {
        font-size: 1.5rem;
    }
    
    .calendar-nav {
        padding: 8px 12px;
        font-size: 1rem;
    }
    
    /* Mobile legend adjustments */
    .calendar-legend {
        margin-top: 20px;
    }
    
    .legend-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
    
    .legend-color {
        width: 12px;
        height: 12px;
    }
    
    .events-list h3::before,
    .events-list h3::after {
        display: none;
    }
    
    /* Featured Events Mobile */
    .featured-events-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .event-poster {
        height: 250px;
    }
    
    .event-content {
        padding: 25px;
    }
    
    .event-header h4 {
        font-size: 1.5rem;
    }
    
    .event-actions {
        flex-direction: column;
    }
    
    /* Mobile Boba Section */
    .boba-highlight {
        padding: 15px;
        gap: 12px;
    }
    
    .boba-icon {
        font-size: 2rem;
    }
    
    .free-text {
        font-size: 1rem;
    }
    
    .boba-sparkle {
        font-size: 1.2rem;
    }
    
    .gallery-filters {
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 14px;
        padding: 10px 20px;
    }

    /* Photo collage responsive adjustments */
    .hero-photos-collage {
        opacity: 0.08;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 15px;
        padding: 20px;
    }
    
    /* Removed empty .collage-photo ruleset to satisfy linter */
    
    /* Simplified grid layout for mobile */
    .collage-photo-1 {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
    
    .collage-photo-2 {
        grid-column: 3 / 4;
        grid-row: 1 / 3;
    }
    
    .collage-photo-3 {
        grid-column: 1 / 2;
        grid-row: 2 / 4;
    }
    
    .collage-photo-4 {
        grid-column: 2 / 4;
        grid-row: 2 / 3;
    }
    
    .collage-photo-5 {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }
    
    .collage-photo-6 {
        grid-column: 3 / 4;
        grid-row: 3 / 4;
    }
    
    /* Hide extra photos on mobile for cleaner look */
    .collage-photo-7, 
    .collage-photo-8, 
    .collage-photo-9,
    .collage-photo-10,
    .collage-photo-11,
    .collage-photo-12 {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 90px 10px 20px 10px; /* Reduced padding since Arabic box is hidden */
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .event-cards {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* Arabic text responsive adjustments */
    .arabic-text {
        font-size: 2rem;
    }
    
    .hero-arabic .arabic-text {
        font-size: 2.5rem;
    }
    
    .section-arabic .arabic-text {
        font-size: 1.5rem;
    }
    
    .arabic-calligraphy {
        padding: 15px;
        margin: 20px 0;
    }
    
    .decorative-pattern::before,
    .decorative-pattern::after {
        display: none; /* Hide decorative elements on mobile */
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 90px 10px 20px 10px; /* Reduced padding since Arabic box is hidden */
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .event-cards {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* About logos on small screens */
    .about-logos {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .about-logo {
        height: 50px;
    }
    
    .msa-logo {
        height: 70px;
    }
    
    /* Further Arabic text adjustments for small screens */
    .arabic-text {
        font-size: 1.3rem;
        line-height: 1.6;
        word-spacing: 0.1em;
        padding: 0 10px;
    }
    
    .hero-arabic .arabic-text {
        font-size: 1.8rem;
        line-height: 1.5;
    }
    
    .section-arabic .arabic-text {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    .arabic-text-small {
        font-size: 0.9rem;
    }
    
    .arabic-calligraphy {
        padding: 15px 10px;
        margin: 15px 5px;
        border-radius: 10px;
        transform: none; /* Remove scaling on mobile */
    }
    
    .arabic-calligraphy:hover {
        transform: none; /* Remove hover scaling on mobile */
    }
    
    .arabic-translation {
        font-size: 0.85rem;
        line-height: 1.4;
        padding: 0 10px;
    }
    
    /* Enhanced mobile calendar for small screens */
    .calendar-container {
        padding: 15px;
        margin: 20px 10px 30px 10px;
    }
    
    .calendar-day {
        padding: 8px 2px;
        font-size: 0.85rem;
        min-height: 40px;
        font-weight: 500;
    }
    
    .calendar-header h3 {
        font-size: 1.3rem;
        margin: 0;
    }
    
    .calendar-nav {
        padding: 6px 10px;
        font-size: 0.9rem;
        min-width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .legend-items {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .legend-item {
        font-size: 0.75rem;
        padding: 4px 0;
    }
    
    .legend-color {
        width: 10px;
        height: 10px;
    }

    /* Further reduce photo collage on very small screens */
    .hero-photos-collage {
        opacity: 0.06;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .collage-photo-1 {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    
    .collage-photo-2 {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    
    .collage-photo-3 {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }
    
    .collage-photo-4 {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
    
    .collage-photo-5, .collage-photo-6 {
        display: none;
    }
}

/* Extra small screens - Arabic text optimization */
@media (max-width: 360px) {
    .hero-content {
        padding: 100px 8px 15px 8px !important; /* Reduced padding since Arabic box is hidden */
    }
    
    .arabic-text {
        font-size: 1.1rem !important;
        line-height: 1.8 !important;
        word-spacing: 0.15em;
        padding: 0 15px;
        white-space: normal;
    }
    
    .hero-arabic .arabic-text {
        font-size: 1.5rem !important;
        line-height: 1.6 !important;
    }
    
    .section-arabic .arabic-text {
        font-size: 1rem !important;
        line-height: 1.8 !important;
    }
    
    .arabic-calligraphy {
        padding: 10px 8px !important;
        margin: 10px 2px !important;
        border-radius: 8px;
        min-height: auto;
    }
    
    .arabic-translation {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
        padding: 0 15px;
        white-space: normal;
    }
    
    /* Ultra-compact calendar for very small screens */
    .calendar-container {
        padding: 10px !important;
        margin: 15px 5px 25px 5px !important;
        border-radius: 10px;
    }
    
    .calendar-day {
        padding: 6px 1px !important;
        font-size: 0.8rem !important;
        min-height: 35px !important;
        font-weight: 600;
    }
    
    .calendar-header h3 {
        font-size: 1.2rem !important;
    }
    
    .calendar-nav {
        padding: 4px 8px !important;
        font-size: 0.8rem !important;
        min-width: 30px !important;
        height: 30px !important;
    }
    
    .calendar-legend {
        margin-top: 15px !important;
    }
    
    .calendar-legend h4 {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }
    
    .legend-item {
        font-size: 0.7rem !important;
        padding: 2px 0 !important;
    }
    
    .legend-color {
        width: 8px !important;
        height: 8px !important;
    }
}

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

.event-tile {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(44, 85, 48, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f5f2e8;
}

.event-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(44, 85, 48, 0.3);
}

.event-poster {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 200px;
    overflow: hidden;
    background: #f5f2e8;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
}

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

.event-tile:hover .event-poster img {
    transform: scale(1.05);
}

/* Freshman Orientation specific styling */
.freshman-orientation-tile {
    background: #2c5a7d;
}

.freshman-orientation-tile .event-poster {
    background: #2c5a7d;
}

.freshman-orientation-tile .event-poster img {
    background: #2c5a7d;
}

.events-gallery-grid .event-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: white;
}

.events-gallery-grid .event-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.events-gallery-grid .event-info p {
    margin-bottom: 1rem;
    opacity: 0.9;
    color: white;
}

.view-event-btn {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-event-btn:hover {
    background: linear-gradient(135deg, #4a7c59 0%, #2c5530 100%);
    transform: translateY(-2px);
}

.view-event-btn:disabled {
    background: linear-gradient(135deg, #888 0%, #666 100%);
    cursor: not-allowed;
    opacity: 0.7;
}

.view-event-btn:disabled:hover {
    background: linear-gradient(135deg, #888 0%, #666 100%);
    transform: none;
}

/* Floating Notification Button */
.floating-notification-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    border-radius: 25px;
    padding: 15px 20px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(44, 85, 48, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    animation: floatingPulse 3s ease-in-out infinite;
}

.floating-notification-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(44, 85, 48, 0.4);
}

.notification-icon {
    font-size: 1.1rem;
    animation: bellShake 2s ease-in-out infinite;
}

.notification-text {
    white-space: nowrap;
}

/* Enhanced Notification Modal */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-modal.active {
    display: flex;
    opacity: 1;
}

.notification-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.15) 0%, rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.notification-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fcf9 100%);
    border-radius: 28px;
    padding: 55px 50px;
    max-width: 540px;
    width: 92%;
    position: relative;
    box-shadow: 
        0 30px 90px rgba(44, 85, 48, 0.15),
        0 15px 50px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.notification-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(44, 85, 48, 0.03) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 1.4rem;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-close-btn:hover {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    transform: scale(1.1);
}

.modal-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: iconPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 15px rgba(44, 85, 48, 0.2));
}

.modal-header h3 {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    margin-bottom: 12px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(44, 85, 48, 0.1);
}

.modal-header p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
}

.notification-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.notification-input {
    padding: 18px 20px;
    border: 2px solid rgba(44, 85, 48, 0.1);
    border-radius: 15px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-weight: 500;
}

.notification-input::placeholder {
    color: #999;
    font-weight: 400;
}

.notification-input:focus {
    border-color: #2c5530;
    background: #ffffff;
    box-shadow: 
        0 0 0 4px rgba(44, 85, 48, 0.1),
        0 8px 25px rgba(44, 85, 48, 0.1);
    transform: translateY(-2px);
}

.input-divider {
    text-align: center;
    color: #2c5530;
    font-weight: 700;
    font-size: 0.85rem;
    position: relative;
    margin: 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-divider::before,
.input-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(44, 85, 48, 0.3), transparent);
}

.input-divider::before {
    left: 0;
}

.input-divider::after {
    right: 0;
}

.notification-submit-btn {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.notification-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(44, 85, 48, 0.3),
        0 0 20px rgba(44, 85, 48, 0.2);
}

.notification-submit-btn:hover::before {
    left: 100%;
}

.notification-submit-btn:active {
    transform: translateY(-1px);
}

.form-message {
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 10px;
}

/* Animations */
@keyframes floatingPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(44, 85, 48, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(44, 85, 48, 0.4);
    }
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 15px rgba(44, 85, 48, 0.2));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 6px 25px rgba(44, 85, 48, 0.4));
    }
}

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

.photo-notification-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(44, 85, 48, 0.05) 0%, transparent 70%);
    animation: subtle-pulse 4s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.notification-container {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.notification-header h3 {
    color: #2c5530;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.notification-header p {
    color: #4a7c59;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.notification-form {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 3px 15px rgba(44, 85, 48, 0.1);
    border: 2px solid rgba(44, 85, 48, 0.1);
    transition: all 0.3s ease;
}

.input-container:focus-within {
    border-color: #4a7c59;
    box-shadow: 0 8px 25px rgba(44, 85, 48, 0.2);
    transform: translateY(-2px);
}

.notification-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.5rem;
    font-size: 1rem;
    color: #2c5530;
    background: transparent;
}

.notification-input::placeholder {
    color: #888;
}

.input-divider {
    color: #4a7c59;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0 0.5rem;
    white-space: nowrap;
}

.notification-btn {
    background: linear-gradient(135deg, #4a7c59 0%, #2c5530 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.notification-btn:hover {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 85, 48, 0.4);
}

.notification-btn:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    min-height: 1rem;
    transition: all 0.3s ease;
}

.form-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* Enhanced Remind Me Modal */
.remind-me-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.remind-me-modal.active {
    display: flex;
    opacity: 1;
}

.remind-me-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.remind-me-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #fffef8 100%);
    border-radius: 25px;
    padding: 50px 45px;
    max-width: 500px;
    width: 92%;
    position: relative;
    box-shadow: 
        0 25px 80px rgba(255, 215, 0, 0.15),
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.remind-me-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.03) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.remind-me-modal .modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 1.4rem;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.remind-me-modal .modal-close-btn:hover {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    transform: scale(1.1);
}

.remind-me-modal .modal-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.remind-me-modal .modal-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: iconPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 15px rgba(255, 215, 0, 0.3));
}

.remind-me-modal .modal-header h3 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    margin-bottom: 12px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.1);
}

.remind-me-modal .modal-header p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
}

.remind-me-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.remind-me-input {
    padding: 18px 20px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-weight: 500;
}

.remind-me-input::placeholder {
    color: #999;
    font-weight: 400;
}

.remind-me-input:focus {
    border-color: #FFD700;
    background: #ffffff;
    box-shadow: 
        0 0 0 4px rgba(255, 215, 0, 0.1),
        0 8px 25px rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.remind-me-submit-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #2c5530;
    border: none;
    padding: 18px 30px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.remind-me-submit-btn::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.6s ease;
}

.remind-me-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(255, 215, 0, 0.4),
        0 0 20px rgba(255, 215, 0, 0.3);
}

.remind-me-submit-btn:hover::before {
    left: 100%;
}

.remind-me-submit-btn:active {
    transform: translateY(-1px);
}

/* Mobile Responsiveness for Floating Notification */
@media (max-width: 768px) {
    .floating-notification-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
        font-size: 0.8rem;
    }
    
    .notification-text {
        display: none;
    }
    
    .notification-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.5rem;
    }
    
    .modal-icon {
        font-size: 2.5rem;
    }
    
    .remind-me-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .notification-modal-content {
        padding: 40px 25px;
        margin: 20px;
        border-radius: 20px;
        max-width: 95%;
    }
    
    .modal-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .modal-header h3 {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }
    
    .modal-header p {
        font-size: 1rem;
    }
    
    .notification-input {
        padding: 16px 18px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .notification-submit-btn {
        padding: 16px 25px;
        font-size: 1rem;
    }
    
    /* Enhanced Remind Me Modal Mobile */
    .remind-me-modal-content {
        padding: 40px 25px;
        margin: 20px;
        border-radius: 22px;
        max-width: 95%;
    }
    
    .remind-me-modal .modal-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .remind-me-modal .modal-header h3 {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }
    
    .remind-me-modal .modal-header p {
        font-size: 1rem;
    }
    
    .remind-me-input {
        padding: 16px 18px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .remind-me-submit-btn {
        padding: 16px 25px;
        font-size: 1rem;
    }
}
    
    .notification-header p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .input-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .input-divider {
        order: -1;
        margin: 0;
        font-size: 0.8rem;
    }
    
    .notification-input {
        width: 100%;
        text-align: center;
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .notification-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

.add-event-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    border: 2px dashed #ddd;
    border-radius: 20px;
    background: #f9f9f9;
    text-align: center;
    padding: 2rem;
}

.placeholder-content i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.placeholder-content h3 {
    color: #999;
    margin-bottom: 0.5rem;
}

.placeholder-content p {
    color: #bbb;
}

/* Modal Styles */
.event-modal, .album-preview-modal, .full-album-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.modal-header h3 {
    color: #2c5530;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modal-header p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #2c5530;
}

.back-to-event-btn, .back-to-preview-btn {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.back-to-event-btn:hover, .back-to-preview-btn:hover {
    background: linear-gradient(135deg, #4a7c59 0%, #2c5530 100%);
    transform: translateY(-2px);
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* Albums Selection */
.albums-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.album-choice {
    border: 2px solid #eee;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.album-choice:hover {
    border-color: #2c5530;
    background: #f8f9fa;
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(44, 85, 48, 0.2);
}

.album-preview-thumbs {
    position: relative;
    height: 180px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: #f0f0f0;
}

.album-preview-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-choice:hover .album-preview-thumb {
    transform: scale(1.05);
}

.album-overlay-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.album-choice-content {
    padding: 1.5rem;
    text-align: center;
}

.album-choice h4 {
    color: #2c5530;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.album-choice p {
    color: #666;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.choose-album-btn {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

.choose-album-btn:hover {
    background: linear-gradient(135deg, #4a7c59 0%, #2c5530 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(44, 85, 48, 0.4);
}

/* Album-specific themes */
.album-choice-brothers {
    border-color: #e2e8f0;
}

.album-choice-brothers:hover {
    border-color: #cbd5e1;
    box-shadow: 0 15px 30px rgba(31, 41, 55, 0.2);
}

.album-choice-brothers .choose-album-btn {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
}

.album-choice-brothers .choose-album-btn:hover {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.album-choice-sisters {
    border-color: #ffe3ef;
}

.album-choice-sisters:hover {
    border-color: #f7c7d9;
    box-shadow: 0 15px 30px rgba(245, 168, 198, 0.2);
}

.album-choice-sisters .choose-album-btn {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
}

.album-choice-sisters .choose-album-btn:hover {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
}

/* Rotating Preview Carousel */
.rotating-preview {
    margin-bottom: 2rem;
    min-height: 80px;
    background: #fafafa;
    border-radius: 10px;
    padding: 10px;
    overflow: hidden;
}

.preview-carousel-container {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.preview-carousel-track {
    display: flex;
    gap: 5px;
    width: calc(200% + 5px); /* Space for 10 items */
}

.preview-carousel-item {
    flex: 0 0 17%; /* Ensure 5 photos (17% × 5 = 85%) plus gaps fit within 100% */
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 17%;
}

.preview-carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.preview-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.preview-carousel-item:hover img {
    transform: scale(1.05);
}

/* Legacy preview photo styles for compatibility */
.preview-photo {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.preview-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

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

.preview-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: placeholderPulse 1.5s ease-in-out infinite;
}

.preview-placeholder i {
    font-size: 1.5rem;
    color: #ccc;
}

/* Album Actions */
.album-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.view-full-album-btn, .download-album-btn {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-full-album-btn:hover, .download-album-btn:hover {
    background: linear-gradient(135deg, #4a7c59 0%, #2c5530 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 85, 48, 0.4);
}

.download-album-btn {
    background: linear-gradient(135deg, #1e6091 0%, #2980b9 100%);
}

.download-album-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1e6091 100%);
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 10px;
    margin-left: auto;
    margin-right: 15px;
}

.view-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #666;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-toggle-btn:hover {
    background: rgba(44, 85, 48, 0.1);
    color: #2c5530;
    border-color: #2c5530;
}

.view-toggle-btn.active {
    background: #2c5530;
    color: white;
    border-color: #2c5530;
}

/* Full Album Grid */
.full-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    min-height: 300px;
    background: #fafafa;
    border-radius: 10px;
    padding: 15px;
    position: relative;
    z-index: 1;
    /* Optimize for large number of items */
    contain: layout style paint;
}

/* Album Carousel */
.album-carousel {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    position: relative;
    width: 80%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

.carousel-slide .download-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.carousel-slide:hover .download-overlay {
    opacity: 1;
}

.carousel-slide .download-overlay:hover {
    background: rgba(44, 85, 48, 0.9);
    transform: scale(1.1);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: rgba(44, 85, 48, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.carousel-counter {
    font-weight: 500;
}

/* Loading indicator */
.loading-more {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

.full-album-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
}

.full-album-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.full-album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    display: block;
    transition: transform 0.3s ease; /* Only animate transform for hover */
}

.full-album-item img.loaded {
    opacity: 1;
}

/* Photo Placeholder */
.photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: placeholderPulse 1.5s ease-in-out infinite;
}

/* Image Placeholder for Lazy Loading */
.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Placeholder Spinner */
.placeholder-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #4a7c59;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Lazy Image Transitions */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Optimized Loading Animation */
@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.photo-placeholder i {
    font-size: 2rem;
    color: #ccc;
}

@keyframes placeholderPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.5;
    }
}

/* Lazy loading animation */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

.download-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.full-album-item:hover .download-overlay {
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .events-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-poster {
        height: 250px;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .albums-selection {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .album-preview-thumbs {
        height: 150px;
    }
    
    .album-choice-content {
        padding: 1rem;
    }
    
    .choose-album-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .rotating-preview {
        min-height: 60px;
        padding: 8px;
    }
    
    .preview-carousel-item {
        flex: 0 0 16%;
        border-radius: 4px;
        max-width: 16%;
    }
    
    .preview-carousel-track {
        gap: 4px;
    }
    
    .album-actions {
        flex-direction: column;
    }
    
    .full-album-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
        padding: 10px;
        border-radius: 8px;
    }
    
    .full-album-item {
        border-radius: 8px;
        min-height: 140px;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 2.5vh auto;
    }
    
    .modal-header {
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: calc(95vh - 120px);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .collage-item:hover,
    .full-album-item:hover {
        transform: none;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }
    
    .collage-item:active,
    .full-album-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .photo-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    }
}

/* Prevent zoom on input focus on iOS */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select,
    textarea,
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"],
    input[type="number"] {
        font-size: 16px;
        transform: scale(1);
    }
}

/* Extra mobile optimizations */
@media (max-width: 480px) {
    .full-album-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 6px;
        padding: 8px;
    }
    
    .full-album-item {
        min-height: 120px;
        border-radius: 6px;
    }
    
    .modal-content {
        max-width: 98vw;
        max-height: 98vh;
        margin: 1vh auto;
        border-radius: 10px;
    }
    
    .modal-header {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 0.75rem;
        max-height: calc(98vh - 100px);
    }
    
    .download-overlay {
        padding: 8px;
        font-size: 0.8rem;
    }
}
