html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Prevent horizontal overflow on all elements */
* {
    max-width: 100%;
}

/* Specific overflow prevention for text elements */
h1, h2, h3, h4, h5, h6, p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Ensure images and media never overflow */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

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

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.fly-away {
    opacity: 0;
    transform: translateY(60px) scale(0.8);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-left.fly-away {
    opacity: 0;
    transform: translateX(-100px) translateY(50px) rotate(-10deg);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right.fly-away {
    opacity: 0;
    transform: translateX(100px) translateY(50px) rotate(10deg);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up.fly-away {
    opacity: 0;
    transform: translateY(120px) scale(0.7);
}

/* Additional fly-away variations for more variety */
.grid-item:nth-child(odd).fly-away {
    transform: translateX(-120px) translateY(60px) rotate(-15deg) scale(0.6);
}

.grid-item:nth-child(even).fly-away {
    transform: translateX(120px) translateY(60px) rotate(15deg) scale(0.6);
}

.resource-item:nth-child(odd).fly-away {
    transform: translateX(-100px) translateY(80px) rotate(-12deg) scale(0.7);
}

.resource-item:nth-child(even).fly-away {
    transform: translateX(100px) translateY(80px) rotate(12deg) scale(0.7);
}

.calendar-item.fly-away {
    transform: translateY(120px) translateX(-50px) rotate(-8deg) scale(0.5);
}

.section.fly-away {
    transform: translateY(150px) scale(0.4);
}

/* Faster transition for fly-away effect */
.fly-away {
    transition: opacity 0.6s ease-in, transform 0.6s ease-in !important;
}

/* Enhanced fly-away effects with blur and scaling */
@keyframes flyAwayDramatic {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
    50% {
        opacity: 0.5;
        filter: blur(1px);
    }
    100% {
        opacity: 0;
        filter: blur(3px);
        transform: translateY(100px) translateX(var(--fly-x, 0px)) rotate(var(--fly-rotation, 0deg)) scale(0.3);
    }
}

/* Apply dramatic animation to flying elements */
.fly-away-dramatic {
    animation: flyAwayDramatic 0.8s ease-in forwards;
}

/* Staggered animation delays for multiple elements */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .fade-in-left,
    .fade-in-right,
    .fade-in-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Enhanced animations for better performance */
.fade-in,
.fade-in-left,
.fade-in-right,
.fade-in-up {
    will-change: opacity, transform;
}

/* Hero section special animations */
.hero-content {
    opacity: 0;
    transform: translateY(50px);
    animation: heroFadeIn 1.2s ease-out 0.3s forwards;
}

.hero-visual {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
    animation: heroSlideIn 1.2s ease-out 0.6s forwards;
}

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

@keyframes heroSlideIn {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

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

/* Mobile-first improvements */
.btn-primary,
.btn-secondary {
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
}

/* Ensure containers don't overflow */
.hero-container,
.grid-container,
.calendar-container,
.footer-content {
    max-width: 100%;
    overflow-x: hidden;
}

.btn-primary:focus,
.btn-secondary:focus {
    outline: 2px solid #A6192E;
    outline-offset: 2px;
}

.btn-primary:active,
.btn-secondary:active {
    transform: translateY(1px);
}

.nav-bar {
    width: 100%;
    height: 64px;
}

.nav-bar {
    width: 100%;
    height: 64px; /* Typical nav-bar height */
    background: #000;
    display: flex;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    padding: 0 32px;
}
.nav-logo {
    height: 40px;
    width: auto;
    margin-right: 24px;
    object-fit: contain;
    display: flex;
    align-items: center;
}

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

.nav-links {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(166, 25, 46, 0.2);
    color: #A6192E;
}

.nav-link.active {
    background: #A6192E;
    color: #ffffff;
}

/* Professional Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 64px;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #C41230 0%, #A6192E 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(196, 18, 48, 0.3);
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.1;
    color: #1a202c;
    margin: 0 0 1.5rem 0;
    letter-spacing: -2px;
}

.hero-highlight {
    font-weight: 700;
    background: linear-gradient(135deg, #C41230 0%, #FF6B6B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #4a5568;
    margin: 0 0 2.5rem 0;
    max-width: 400px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #C41230 0%, #A6192E 100%);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 8px 25px rgba(196, 18, 48, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(196, 18, 48, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: #C41230;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(196, 18, 48, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: #C41230;
    color: white;
    border-color: #C41230;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(196, 18, 48, 0.3);
}

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

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: float 6s ease-in-out infinite;
    object-fit: cover;
}

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

.visual-dots {
    position: absolute;
    top: 50%;
    right: -2rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #C41230;
    opacity: 0.6;
    animation: pulse 2s ease-in-out infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

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

.header {
    background-color: #A6192E; /* SDSU Red */
    min-height: 5rem;
    position: relative;
    margin: 0;
    width: 100%;
    padding-top: 80px; /* Space for nav-bar */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.header-title, .header-date {
    margin: 0.5rem 0;
    color: #fff;
    text-align: center;
}

.header-date {
    padding-bottom: 1rem; 
}

.welcome-section {
    padding: 2rem; 
    max-width: 100%; 
}

/* Minimalistic Section Headers */
.section {
    background-color: #C41230;
    margin: 2.5rem 0 1.5rem 0;
    overflow: hidden;
}

.section-text {
    color: #fff;
    text-align: center;
    padding: 1.5rem 2rem;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.sshd-banner {
    top: 5rem;
}

.sshd-banner-image {
    width: 100%; 
    height: auto; 
    max-width: fit-content;
}
/* Grid Container for Alternating Layout */
.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.grid-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: center;
}

.grid-item.reverse {
    grid-template-columns: 1fr 1fr;
}

.grid-item.reverse .grid-text {
    order: 1;
}

.grid-item.reverse .grid-image {
    order: 2;
}

.grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.grid-text {
    padding: 1rem;
}

.grid-text h3 {
    margin-bottom: 1rem;
    color: #A6192E;
    font-size: 1.5rem;
}

.grid-text p {
    line-height: 1.6;
    color: #333;
}

.calendar-item {
    max-width: 1000px;
    margin: 0 auto 2rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.calendar-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.calendar-item h3 {
    color: #C41230;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-item h3::before {
    content: "📅";
    font-size: 1.2rem;
}

.calendar-item p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

.calendar-item a {
    color: #C41230;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.calendar-item a:hover {
    border-bottom-color: #C41230;
}

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

.resource-item{
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
}

.resource-item img {
    max-width: 40%;
    max-height: 300px; 
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.resource-item-description {
    flex: 1;
    padding: 1rem;
}


/* Responsive Design */
@media (max-width: 768px) {
    .grid-item,
    .grid-item.reverse {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .grid-item.reverse .grid-text,
    .grid-item.reverse .grid-image {
        order: initial;
    }
    
    /* Professional Hero Responsive */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin: 0 0 2rem 0;
        max-width: 100%;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
    }
    
    .hero-visual {
        height: 300px;
        order: -1;
    }
    
    .hero-image {
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .hero-image {
        max-width: 280px;
    }
}

/* Footer Styles */
.footer {
    background-color: #A6192E;
    color: white;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    padding: 3rem 2rem 2rem 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.footer-logo p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-label {
    font-weight: bold;
    min-width: 60px;
    font-size: 0.95rem;
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-item a:hover {
    text-decoration: underline;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.social-section h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    color: white;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    transition: background-color 0.3s;
    border-radius: 5px;
}

.social-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.social-item a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.social-item a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Navigation */
    .nav-bar {
        padding: 0 1rem;
        height: 56px;
    }
    
    .nav-logo {
        height: 40px;
    }
    
    /* Hero Section */
    .hero {
        margin-top: 56px;
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        max-width: 100%;
        line-height: 1.5;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 48px; /* Touch-friendly size */
    }
    
    /* Body content improvements */
    body {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Better container spacing */
    .hero-container,
    .grid-container,
    .calendar-container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-visual {
        order: 1;
        justify-self: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin: 1rem 0;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    /* Section Headers */
    .section {
        padding: 2rem 1rem 1rem 1rem;
    }
    
    .section-text {
        font-size: 1.8rem;
        line-height: 1.3;
        padding: 1rem 1.5rem;
    }
    
    /* Grid Items */
    .grid-container {
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .grid-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
        gap: 1.5rem;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .grid-image {
        order: 1;
        width: 100%;
        max-width: 100%;
    }
    
    .grid-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
        border-radius: 8px;
    }
    
    .grid-text {
        order: 2;
        width: 100%;
        padding: 0 0.5rem;
    }
    
    .grid-text h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .grid-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
    }
    
    /* Calendar */
    .calendar-container {
        padding: 0 1rem;
    }
    
    .calendar-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .calendar-item h3 {
        font-size: 1.2rem;
    }
    
    /* Resource Items */
    .resource-item {
        flex-direction: column;
        text-align: left;
        padding: 2rem 1rem;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .resource-item-description {
        width: 100%;
    }
    
    .resource-item-description h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: #A6192E;
    }
    
    .resource-item img {
        max-width: 100%;
        max-height: 200px;
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .resource-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* See More Events Button */
    .see-more-container {
        text-align: center;
        margin: 2rem 0;
        padding: 0 1rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-left, .footer-right {
        width: 100%;
    }
    
    .contact-info {
        gap: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .nav-bar {
        padding: 0 0.5rem;
        height: 52px;
    }
    
    .nav-logo {
        height: 36px;
    }
    
    .hero {
        margin-top: 52px;
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .section {
        padding: 1.5rem 0.5rem 0.5rem 0.5rem;
    }
    
    .section-text {
        font-size: 1.5rem;
        padding: 0.8rem 1rem;
    }
    
    .grid-item {
        padding: 1rem 0.5rem;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .grid-text h3 {
        font-size: 1.2rem;
    }
    
    .grid-text p {
        font-size: 0.9rem;
    }
    
    .resource-item {
        padding: 1.5rem 0.5rem;
        gap: 1rem;
    }
    
    .resource-item-description h3 {
        font-size: 1.3rem;
    }
    
    .resource-description {
        font-size: 0.9rem;
    }
    
    .calendar-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .section-text {
        font-size: 1.75rem;
    }
    
    .calendar-item {
        padding: 1rem;
    }
    
    .resource-item {
        padding: 1rem;
    }
    
    .grid-item {
        padding: 1rem;
    }
}

/* Extra small screens - prevent horizontal scrolling */
@media (max-width: 375px) {
    .nav-bar {
        padding: 0 0.5rem;
    }
    
    .hero-container,
    .grid-container,
    .calendar-container {
        padding: 0 0.5rem;
        margin: 0;
    }
    
    .section {
        padding: 1rem 0.5rem 0.5rem 0.5rem;
    }
    
    .grid-item {
        padding: 1rem 0.25rem;
    }
    
    .resource-item {
        padding: 1rem 0.5rem;
    }
}

@media (max-width: 320px) {
    /* Very small screens */
    .nav-bar {
        padding: 0 0.25rem;
    }
    
    .nav-logo {
        height: 32px;
        margin-right: 8px;
    }
    
    .hero-container,
    .grid-container,
    .calendar-container {
        padding: 0 0.25rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-text {
        font-size: 1.3rem;
        padding: 0.5rem;
    }
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

body {
    margin-bottom: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    .footer-right {
        align-items: center;
        text-align: center;
    }
    
    .social-links {
        align-items: center;
    }
    
    .footer-bottom {
        padding: 1rem;
    }
    
    /* Responsive Section Headers */
    .section-text {
        font-size: 1.3rem;
        padding: 1.2rem 1rem;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 480px) {
    .section-text {
        font-size: 1.1rem;
        padding: 1rem 0.8rem;
    }
    
    .section {
        margin: 2rem 0 1rem 0;
    }
}

/* Calendar Grid Styles */
.calendar-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin: 1rem 0;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.calendar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #C41230;
    margin: 0;
}

.calendar-nav-btn {
    background: #C41230;
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.2s ease;
}

.calendar-nav-btn:hover {
    background: #A6192E;
}

.calendar-grid {
    width: 100%;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 1px;
}

.calendar-day-header {
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.875rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.calendar-day {
    background: white;
    border: 1px solid #e2e8f0;
    min-height: 100px;
    padding: 0.5rem;
    position: relative;
    cursor: default;
    transition: background-color 0.2s ease;
}

.calendar-day:hover {
    background: #f8fafc;
}

.calendar-day.empty {
    background: #f8fafc;
    cursor: default;
}

.calendar-day.today {
    background: #fef2f2;
    border-color: #C41230;
}

.calendar-day.has-events {
    background: #fff7ed;
}

.calendar-day-number {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.25rem;
}

.calendar-day.today .calendar-day-number {
    color: #C41230;
    font-weight: 700;
}

.calendar-events-indicator {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: #C41230;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.calendar-day-events {
    margin-top: 0.25rem;
}

.calendar-event {
    background: #C41230;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.calendar-event:hover {
    background: #A6192E;
}

/* Event Popup Styles */
.event-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.event-popup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.event-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #C41230;
    color: white;
    border-radius: 12px 12px 0 0;
}

.event-popup-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

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

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

.event-popup-content {
    padding: 1.5rem;
}

.popup-event-date,
.popup-event-description,
.popup-event-link {
    margin-bottom: 1rem;
}

.popup-event-date strong,
.popup-event-description strong,
.popup-event-link strong {
    color: #C41230;
    display: block;
    margin-bottom: 0.5rem;
}

.popup-event-description p {
    margin: 0;
    line-height: 1.6;
    color: #374151;
}

.popup-event-link a {
    color: #C41230;
    text-decoration: none;
    word-break: break-all;
}

.popup-event-link a:hover {
    text-decoration: underline;
}

/* Mobile Calendar Styles */
@media (max-width: 768px) {
    .calendar-widget {
        padding: 1rem;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 0.25rem;
    }
    
    .calendar-day-number {
        font-size: 0.75rem;
    }
    
    .calendar-event {
        font-size: 0.625rem;
        padding: 0.125rem 0.25rem;
    }
    
    .calendar-title {
        font-size: 1.25rem;
    }
    
    .event-popup {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
}

@media (max-width: 480px) {
    .calendar-day {
        min-height: 60px;
    }
    
    .calendar-event {
        font-size: 0.5rem;
        padding: 0.125rem;
    }
    
    .calendar-events-indicator {
        width: 16px;
        height: 16px;
        font-size: 0.625rem;
    }
}