/* Homepage Specific Styles */

/* Reset any margin/padding on body and ensure header touches top */
html, body {
    margin: 0;
    padding: 0;
    border: none;
}

body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.site-header {
    margin-top: 0 !important;
    border-top: none;
}

/* Navigation Dropdowns */
:root {
    --gold: #d4a853;
}

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Spacer to balance the Apply Now button and keep logo centered */
.nav-spacer {
    flex: 0 0 auto;
    width: clamp(120px, 12vw, 160px);
}

/* Split Navigation Header Layout */
.site-header {
    background: #000;
    padding: 18px clamp(32px, 7vw, 80px);
    border-bottom: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 4vw, 48px);
    max-width: 1400px;
    margin: 0 auto;
}

.site-nav {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 0;
    gap: clamp(20px, 3vw, 40px);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.site-nav--left {
    justify-content: flex-end;
}

.site-nav--right {
    justify-content: flex-start;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.brand-logo,
.site-brand .custom-logo {
    width: clamp(280px, 30vw, 400px);
    max-height: 120px;
    height: auto;
    display: block;
    object-fit: contain;
}

.site-nav__item {
    position: relative;
}

.site-nav__link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
    white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link:focus,
.site-nav__item:hover .site-nav__link {
    color: #fff;
}

.site-nav__link.active,
.site-nav__item--current .site-nav__link {
    color: #feb901;
}

/* Gold underline for current/active top-level nav items - always visible */
.site-nav__item--current .site-nav__link::after {
    transform: scaleX(1);
    background: #feb901;
}

.site-nav__arrow {
    width: 10px;
    height: 10px;
    transition: transform 0.2s ease;
}

.site-nav__item:hover .site-nav__arrow {
    transform: rotate(180deg);
}

.site-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 100;
    margin-top: 8px;
}

.site-nav__dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #fff;
}

.site-nav__item:hover .site-nav__dropdown {
    opacity: 1;
    visibility: visible;
}

.site-nav__dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #333;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-nav__dropdown a:hover {
    background: var(--cream-100, #f8f6ef);
    color: var(--green-700, #294c36);
}

/* Current/active page highlighting in dropdown */
.site-nav__dropdown a.current-menu-item,
.site-nav__dropdown .current-menu-item > a,
.site-nav__dropdown a[aria-current="page"] {
    background: rgba(254, 185, 1, 0.12);
    color: #b8860b;
    font-weight: 600;
    position: relative;
}

.site-nav__dropdown a.current-menu-item::before,
.site-nav__dropdown .current-menu-item > a::before,
.site-nav__dropdown a[aria-current="page"]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #feb901;
}

.site-nav__dropdown hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 8px 16px;
}

/* Override base school.css underline effect for dropdown links */
.site-nav__dropdown a::after {
    display: none;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    background-color: #feb901;
    color: #000;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(254, 185, 1, 0.25);
    white-space: nowrap;
    flex: 0 0 auto;
    margin-left: clamp(16px, 2vw, 24px);
}

.nav-cta:hover {
    transform: translateY(-2px);
    background-color: #e5a701;
}

/* Feature Grid Wrapper with Arrows */
.feature-grid-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.feature-grid {
    display: flex;
    max-width: 90%;
    margin: -90px auto 0;
    position: relative;
    z-index: 10;
    box-shadow: none;
    gap: 0;
}

.feature-card {
    flex: 1;
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: clamp(16px, 2.5vw, 28px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 5;
}

.feature-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.feature-card h3 {
    font-size: clamp(0.6rem, 1vw, 0.75rem);
    max-width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin: 0;
}

.feature-card img {
    width: clamp(36px, 4vw, 40px);
    height: clamp(36px, 4vw, 40px);
    margin-bottom: 12px;
}

/* Larger icon for Green Envelope */
.feature-card.tone-3 img {
    width: clamp(50px, 6vw, 70px);
    height: clamp(50px, 6vw, 70px);
}

/* Arrows hidden by default on desktop */
.feature-grid-arrow {
    display: none;
}

/* News Section - Featured + Sidebar Layout */
.news-section {
    background: white;
    padding: clamp(40px, 6vw, 60px) 0 clamp(60px, 8vw, 100px);
}

.news-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(24px, 6vw, 48px);
    overflow: hidden;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.news-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--green-800);
    margin: 0;
    position: relative;
    padding-bottom: 16px;
}

.news-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--green-600), #d4a853);
}

/* Filter Tabs */
.news-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 8px 18px;
    background: rgba(41, 76, 54, 0.08);
    border: 1px solid;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green-700);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(21, 50, 34, 0.1);
}

.news-tab:hover {
    background: rgba(41, 76, 54, 0.15);
    box-shadow: 0 4px 12px rgba(21, 50, 34, 0.15);
}

.news-tab.active {
    background: var(--green-700);
    color: white;
    box-shadow: 0 4px 12px rgba(21, 50, 34, 0.25);
}

/* Featured + Sidebar Grid */
.news-grid {
    /* Container for tab content */
}

.news-grid-content {
    display: none;
}

.news-grid-content.active {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    animation: fadeIn 0.4s ease;
}

/* Featured Posts Carousel Wrapper */
.featured-posts-wrapper {
    position: relative;
}

.featured-posts-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* padding: 4px; */
    box-shadow: 0 2px 12px rgb(0 0 0 / 19%);
}

.featured-posts-carousel::-webkit-scrollbar {
    display: none;
}

.featured-posts-carousel.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.featured-posts-carousel.is-dragging .featured-post {
    pointer-events: none;
}

/* Featured Posts Arrows - Absolute positioning within the wrapper */
.featured-posts-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--green-700);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 2;
}

.featured-posts-arrow--left {
    left: -16px;
}

.featured-posts-arrow--right {
    right: -16px;
}

.featured-posts-arrow:hover {
    background: var(--green-800);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.featured-posts-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.featured-posts-arrow svg {
    width: 20px;
    height: 20px;
}

/* Hide arrows when only one item */
.featured-posts-wrapper.single-item .featured-posts-arrow {
    display: none;
}

/* Featured Post - Large Card */
.featured-posts-carousel > .featured-post {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(21, 50, 34, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

.featured-post__image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.featured-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post:hover .featured-post__image img {
    transform: none;
}

/* Featured Post Placeholder Image */
.featured-post__image--placeholder {
    background: linear-gradient(135deg, var(--green-700) 0%, var(--green-800) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-post__image--placeholder img {
    width: 80px;
    height: auto;
    opacity: 0.4;
    object-fit: contain;
}

.featured-post__content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #efefef;
}

/* Meta row with badge + date */
.featured-post__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.featured-post__badge {
    background: var(--green-700);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-post__badge--pto {
    background: #8b5a2b;
}

.featured-post__badge--eighth {
    background: #3a6ea5;
}

.featured-post__date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.featured-post__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 2.5vw, 1.75rem);
    color: #111111;
    margin: 0 0 16px;
    line-height: 1.3;
}

.featured-post__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-post__title a:hover {
    color: var(--green-600);
}

.featured-post__excerpt {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 24px;
    flex: 1;
}

.featured-post__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--green-700);
    text-decoration: none;
    transition: all 0.2s ease;
}

.featured-post__link:hover {
    color: var(--green-600);
    gap: 12px;
}

.featured-post__link svg {
    width: 18px;
    height: 18px;
}

/* Sidebar - Small Posts (horizontal card: image left, content right) */
.sidebar-post {
    background: #efefef;
    border-radius: 0;
    overflow: visible;
    box-shadow: 0 2px 12px rgb(0 0 0 / 27%);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    gap: 0;
}

.sidebar-post:hover {
    box-shadow: 0 4px 20px rgb(0 0 0 / 32%);
    opacity: 0.8;
}

.sidebar-post__image {
    flex-shrink: 0;
    width: 120px;
    height: 100%;
    min-height: 100px;
    overflow: hidden;
}

.sidebar-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
}

.sidebar-post:hover .sidebar-post__image img {
    transform: none;
}

/* Sidebar Post Placeholder Image */
.sidebar-post__image--placeholder {
    background: linear-gradient(135deg, var(--green-700) 0%, var(--green-800) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-post__image--placeholder img {
    width: 50px;
    height: auto;
    opacity: 0.4;
    object-fit: contain;
}

.sidebar-post__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 12px 14px;
}

.sidebar-post__badge {
    display: inline-block;
    background: var(--green-100, rgba(41, 76, 54, 0.1));
    color: var(--green-700);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    width: fit-content;
}

.sidebar-post__badge--event,
.sidebar-post__badge--pto {
    background: rgba(139, 90, 43, 0.12);
    color: #8b5a2b;
}

.sidebar-post__badge--fundraiser,
.sidebar-post__badge--eighth {
    background: rgba(58, 110, 165, 0.12);
    color: #3a6ea5;
}

.sidebar-post__title {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #111111;
    margin: 0 0 6px;
    line-height: 1.35;
}

.sidebar-post__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-post__title a:hover {
    color: var(--green-600);
}

.sidebar-post__date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.news-footer {
    text-align: center;
    margin-top: 48px;
}

.news-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--green-700);
    color: white;
    padding: 16px 32px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-view-all:hover {
    background: var(--green-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 50, 34, 0.25);
}

.news-view-all svg {
    width: 18px;
    height: 18px;
}

/* Sidebar Posts - Desktop: Vertical stack with thin scrollbar */
.sidebar-posts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-self: start;
}

.sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 530px;
    overflow-y: auto;
    padding-right: 12px;
    /* Thin scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--green-600) rgba(0, 0, 0, 0.08);
}

/* Webkit thin scrollbar */
.sidebar-posts::-webkit-scrollbar {
    width: 6px;
}

.sidebar-posts::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
}

.sidebar-posts::-webkit-scrollbar-thumb {
    background: var(--green-600);
    border-radius: 3px;
}

.sidebar-posts::-webkit-scrollbar-thumb:hover {
    background: var(--green-700);
}

/* Sidebar arrows - hidden on desktop */
.sidebar-posts-arrow {
    display: none;
}

/* Instagram Feed - Full Width */
.instagram-section {
    background: #1E3A2A;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.instagram-section__header,
.instagram-section__footer {
    position: relative;
    background-image: url("../images/rcs-cross.png");
    background-repeat: repeat;
    background-size: 200px 200px;
}

.instagram-section__header::before,
.instagram-section__footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #1E3A2A;
    opacity: 0.98;
    z-index: 0;
}

.instagram-section__header > *,
.instagram-section__footer > * {
    position: relative;
    z-index: 1;
}

.instagram-section__header {
    text-align: center;
    padding: clamp(40px, 5vw, 60px) clamp(24px, 6vw, 48px) clamp(20px, 3vw, 28px);
}

.instagram-section__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: white;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.instagram-section__title svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
}

.instagram-section__handle {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
}

.instagram-section__handle a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.instagram-section__handle a:hover {
    color: white;
}

/* Full-width Instagram Grid */
.instagram-feed {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    background: white;
}

.instagram-feed__item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

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

.instagram-feed__item:hover img {
    transform: scale(1.08);
}

.instagram-feed__item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(21, 50, 34, 0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.instagram-feed__item:hover::before {
    opacity: 1;
}

.instagram-feed__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.instagram-feed__item:hover .instagram-feed__overlay {
    opacity: 1;
}

.instagram-feed__stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.instagram-feed__stat svg {
    width: 18px;
    height: 18px;
}

.instagram-section__footer {
    text-align: center;
    padding: clamp(32px, 4vw, 48px) clamp(24px, 6vw, 48px) clamp(40px, 5vw, 60px);
}

.instagram-section__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #c9a227;
    color: white;
    padding: 16px 32px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.instagram-section__cta:hover,
.instagram-section__cta:focus {
    background: white !important;
    color: var(--green-900);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.instagram-section__cta svg {
    width: 18px;
    height: 18px;
}

/* Testimonials - Two Column Layout - Full Width Edge to Edge */
.testimonials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    margin: 0;
    padding: 0;
}

.testimonials__image {
    background: url('../images/rcs_school_banner.jpg');
    background-size: cover;
    background-position: center top;
}

.testimonials__content {
    background: white;
    padding: clamp(48px, 6vw, 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Testimonials cross is defined globally in school.css */

.testimonials__kicker {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--green-700);
    margin-bottom: 24px;
    text-align: center;
}

.testimonials__carousel {
    position: relative;
}

.testimonial-slide {
    display: none;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.6s ease;
}

.testimonial-slide__quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-style: italic;
    line-height: 1.7;
    color: var(--green-800);
    margin: 0 0 24px;
    position: relative;
    text-align: center;
}

.testimonial-slide__author {
    font-size: 0.95rem;
    color: var(--green-600);
    margin: 0;
    text-align: center;
}

.testimonials__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.testimonials__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(41, 76, 54, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials__dot:hover {
    background: rgba(41, 76, 54, 0.4);
}

.testimonials__dot.active {
    background: var(--green-700);
    transform: scale(1.2);
}

/* Gold Border Above Footer */
.gold-border {
    height: 3px;
    background: #c9a227;
}

/* Map Section */
.map-section {
    width: 100%;
    line-height: 0;
}

.map-section iframe {
    display: block;
    width: 100%;
}

/* Footer Bar - Dark Bottom Strip */
.footer-bar {
    background: #000;
    padding: 32px clamp(24px, 6vw, 48px);
    text-align: center;
}

.footer-bar__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.footer-bar__nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-bar__nav a:hover {
    color: white;
}

.footer-bar__copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0;
}

.footer-bar__copyright a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bar__copyright a:hover {
    color: white;
}

/* Hamburger for mobile */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger__line {
    display: block;
    width: 28px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger__line:nth-child(1) {
    margin-bottom: 7px;
}

.hamburger__line:nth-child(2) {
    margin-bottom: 7px;
}

/* Hamburger to X animation */
.hamburger.is-active .hamburger__line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .hamburger__line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hide mobile apply button on desktop */
.mobile-apply-btn {
    display: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .instagram-feed {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1080px) {
    .site-header__inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
    }

    .site-header {
        padding: 16px clamp(20px, 5vw, 48px);
    }

    .site-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .brand-logo,
    .site-brand .custom-logo {
        width: clamp(240px, 50vw, 320px);
    }

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

    .nav-spacer {
        display: none;
    }

    .nav-cta {
        display: none !important;
    }

    /* Hamburger - aligned with logo on first row */
    .hamburger {
        display: flex;
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    /* Mobile Apply Now - second row, full width */
    .mobile-apply-btn {
        display: flex !important;
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
        padding-top: 12px;
    }

    .mobile-apply-btn a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 24px;
        background: #feb901;
        color: #000;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        text-decoration: none;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .mobile-apply-btn a:hover {
        background: #e5a701;
    }

    /* Keep hamburger visible and fixed when menu is open */
    .hamburger.is-active {
        position: fixed;
        top: 20px;
        right: 24px;
        z-index: 1002;
    }
}

@media (max-width: 900px) {
    /* Hide the arch on mobile */
    .hero::after {
        display: none;
    }

    .feature-grid-wrapper {
        position: relative;
        margin-top: 0;
    }

    .feature-grid {
        margin-top: 0;
        max-width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 16px;
        scroll-behavior: smooth;
    }

    .feature-grid::-webkit-scrollbar {
        display: none;
    }

    .feature-card {
        flex: 0 0 140px;
        aspect-ratio: 1 / 1;
        scroll-snap-align: start;
        padding: 14px 10px;
    }

    .feature-card img {
        width: 36px;
        height: 36px;
    }

    .feature-card.tone-3 img {
        width: 60px;
        height: 60px;
    }

    .feature-card h3 {
        font-size: 0.6rem;
    }

    /* Scroll Arrows - absolute overlay near edges */
    .feature-grid-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        background: var(--green-700);
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0,0,0,0.35);
        transition: background 0.2s ease, transform 0.15s ease;
        z-index: 10;
    }

    .feature-grid-arrow--left {
        left: 6px;
        z-index: 12;
    }

    .feature-grid-arrow--right {
        right: 6px;
        z-index: 12;
    }

    .feature-grid-arrow:hover {
        background: var(--green-800);
    }

    .feature-grid-arrow:active {
        transform: translateY(-50%) scale(0.95);
    }

    .feature-grid-arrow svg {
        width: 18px;
        height: 18px;
    }

    /* News Grid Responsive */
    .news-inner {
        overflow: hidden;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .news-grid-content.active {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    /* Featured Posts Carousel on Mobile - Green arrows at edges */
    .featured-posts-wrapper {
        display: block;
        position: relative;
        margin: 0 -16px;
        padding: 0;
    }

    /* Green arrows on mobile - positioned at screen edges */
    .featured-posts-arrow {
        position: absolute;
        top: 25%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        background: var(--green-700);
        color: white;
        border-radius: 50%;
        z-index: 10;
    }

    .featured-posts-arrow--left {
        left: 0;
    }

    .featured-posts-arrow--right {
        right: 0;
    }

    .featured-posts-arrow:active {
        transform: translateY(-50%) scale(0.95);
    }

    .featured-posts-carousel {
        margin: 0 16px;
        grid-auto-columns: 100%;
    }

    /* Featured Post - Responsive Image */
    .featured-post {
        width: 100%;
    }

    .featured-post__image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    /* Sidebar Posts Mobile Carousel */
    .sidebar-posts-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        gap: 8px;
        overflow: hidden;
    }

    .sidebar-posts {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        gap: 16px;
        padding: 8px 0;
        padding-right: 0;
        flex: 1;
        min-width: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sidebar-posts::-webkit-scrollbar {
        display: none;
    }

    .sidebar-post {
        flex-shrink: 0;
        width: 260px;
        flex-direction: column;
        padding: 0;
        scroll-snap-align: start;
    }

    .sidebar-post:hover {
        transform: none;
    }

    .sidebar-post__image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 0;
    }

    .sidebar-post__content {
        padding: 14px;
    }

    /* Sidebar Arrows - visible on mobile */
    .sidebar-posts-arrow {
        display: flex;
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        background: var(--green-700);
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        transition: all 0.2s ease;
        z-index: 10;
    }

    .sidebar-posts-arrow:hover {
        background: var(--green-800);
    }

    .sidebar-posts-arrow:active {
        transform: scale(0.95);
    }

    .sidebar-posts-arrow svg {
        width: 18px;
        height: 18px;
    }

    /* Testimonials */
    .testimonials {
        grid-template-columns: 1fr;
    }

    .testimonials__image {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .instagram-feed {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    .site-header__inner {
        gap: 12px;
    }

    .brand-logo,
    .site-brand .custom-logo {
        width: clamp(200px, 60vw, 280px);
    }
}

@media (max-width: 640px) {
    .news-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .news-tabs::-webkit-scrollbar {
        display: none;
    }

    .news-tab {
        flex-shrink: 0;
    }

    .featured-post__image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    /* Smaller cards on small screens */
    .sidebar-post {
        width: 220px;
    }

    .sidebar-posts-arrow {
        width: 32px;
        height: 32px;
    }

    .sidebar-posts-arrow svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .instagram-feed {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Navigation Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--green-900);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 80px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav__close svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
}

.mobile-nav__links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav__item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 16px;
}

.mobile-nav__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 0;
}

.mobile-nav__cta {
    display: block;
    background: var(--gold);
    color: var(--green-900);
    text-align: center;
    padding: 16px 32px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    margin-top: auto;
}

body.nav-open {
    overflow: hidden;
}
