/* Responsive Styles */

/* Large Screens (1200px and up) */
@media screen and (min-width: 1200px) {
    .site-header__wrapper {
        /* No max-width here to ensure full width */
    }
    .news__container,
    .site-footer__container {
        max-width: 1140px;
    }
}

/* Medium Screens (992px to 1199px) */
@media screen and (max-width: 1199px) {
    .site-header__wrapper,
    .news__container,
    .site-footer__container {
        max-width: 960px;
    }
    
    .hero__title {
        font-size: 3rem;
    }
}

/* Small Screens (768px to 991px) */
@media screen and (max-width: 991px) {
    .site-header__wrapper,
    .news__container,
    .site-footer__container {
        max-width: 720px;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .news__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Screens (up to 767px) */
@media screen and (max-width: 767px) {
    .site-header__wrapper,
    .news__container,
    .site-footer__container {
        max-width: 540px;
    }
    
    /* Mobile Navigation */
    .nav-primary__toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: var(--spacing-small);
    }
    
    .nav-primary__menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-primary);
        padding: var(--spacing-medium);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
    }
    
    .nav-primary__menu.is-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-primary__list {
        flex-direction: column;
        gap: var(--spacing-small);
    }
    
    .nav-primary__link {
        display: block;
        padding: var(--spacing-medium);
    }
    
    /* Hero Section */
    .hero {
        height: 60vh;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    /* News Section */
    .news__grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .site-footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Extra Small Screens (up to 575px) */
@media screen and (max-width: 575px) {
    .site-header__wrapper,
    .news__container,
    .site-footer__container {
        padding: 0 var(--spacing-small);
    }
    
    .hero__title {
        font-size: 1.75rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .hero,
    .news,
    .site-footer {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .news-commencement__wrapper,
    .fair-harvard__wrapper,
    .scholarship-articles,
    .school-events__grid {
        grid-template-columns: 1fr;
    }

    .fair-harvard__media {
        order: -1; /* Move image above text on smaller screens */
        margin-bottom: var(--spacing-large);
    }

    .news-commencement__side {
        margin-top: var(--spacing-large);
    }

    .site-header__right {
        gap: var(--spacing-medium);
    }

    .site-header__actions {
        padding: var(--spacing-small) var(--spacing-medium);
    }

    .site-header__search-toggle,
    .site-header__menu-toggle {
        font-size: 1.3rem;
    }

    .hero__title {
        font-size: 3.5rem;
    }

    .site-header__wrapper {
        padding: 0;
    }

    .site-header__left {
        padding-left: var(--spacing-medium);
    }

    .site-header__actions {
        border-radius: 0;
        border-top-left-radius: var(--border-radius);
        border-bottom-left-radius: var(--border-radius);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .site-header__actions {
        padding: var(--spacing-small) var(--spacing-medium);
    }

    .site-header__search-toggle,
    .site-header__menu-toggle {
        font-size: 1.2rem;
    }

    .hero__title {
        font-size: 2.8rem;
    }

    .hero__line {
        height: 150px; /* Adjusted for smaller screens */
        top: -150px;
    }

    .news-commencement__wrapper,
    .fair-harvard__wrapper,
    .scholarship-articles,
    .school-events__grid,
    .site-footer__row {
        grid-template-columns: 1fr;
    }

    .site-header__wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header__right {
        width: 100%;
        justify-content: space-between;
        margin-top: var(--spacing-small);
    }

    .hero {
        height: 400px;
    }

    .news-article__image {
        height: 300px;
    }

    .fair-harvard__image {
        height: 300px;
    }

    .site-footer__row--secondary {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-medium);
    }

    .social-follow__list {
        justify-content: center;
    }

    .nav-off-canvas__inner {
        width: 100%; /* Full width on smaller screens */
    }

    .hero__button-wrapper {
        flex-direction: column;
        gap: var(--spacing-small);
    }

    .hero__button-text {
        text-align: center;
    }

    .btn--circular {
        width: 35px; /* Further reduced for smaller screens */
        height: 35px;
        font-size: 1rem;
    }

    .site-header__search-toggle span,
    .site-header__menu-toggle span {
        display: none; /* Hide text on smaller screens if needed */
    }
}

@media (max-width: 480px) {
    .site-header__actions {
        padding: 5px 10px;
        border-radius: 5px;
        border-top-left-radius: var(--border-radius);
        border-bottom-left-radius: var(--border-radius);
    }

    .site-header__search-toggle,
    .site-header__menu-toggle {
        font-size: 1rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__line {
        height: 100px; /* Adjusted for smaller screens */
        top: -100px;
    }

    .news-article__title {
        font-size: 1.3rem;
    }

    .fair-harvard__title {
        font-size: 2rem;
    }

    .scholarship-article__title {
        font-size: 1.2rem;
    }

    .school-events__title {
        font-size: 2rem;
    }
} 