/*
 * St. Joseph's Schools - Complete Stylesheet (style.css)
 * Cross-browser compatible: Chrome, Firefox, Safari, Edge, IE11, mobile browsers.
 * Deploy at site root. In HTML: <link rel="stylesheet" href="style.css">
 */
/* Cross-browser reset and normalize */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a4d7a;
    --secondary-color: #2d6a9f;
    --accent-color: #d4af37;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Safe areas for notched devices (iPhone X+, Android with display cutout) */
    --safe-area-top: env(safe-area-inset-top, 0);
    --safe-area-right: env(safe-area-inset-right, 0);
    --safe-area-bottom: env(safe-area-inset-bottom, 0);
    --safe-area-left: env(safe-area-inset-left, 0);
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* Skip link - accessibility */
.skip-link {
    position: absolute;
    top: -3rem;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.6rem 1.25rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
    border-radius: 0 0 5px 0;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.skip-link::-moz-focus-inner {
    border: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background-color: #fff;
}

/* Responsive images - prevent overflow and layout shift */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    width: 100%;
}

/* Navigation - responsive, tappable, linkable on all devices */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    padding-top: calc(0.75rem + var(--safe-area-top));
    padding-left: calc(0px + var(--safe-area-left));
    padding-right: calc(0px + var(--safe-area-right));
    /* Stacking context so hamburger and nav stay above overlay on mobile */
    isolation: isolate;
}

.nav-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.logo a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
    padding: 4px 0;
}

.logo-image {
    height: 52px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.logo h1 {
    font-size: 1.55rem;
    color: var(--primary-color);
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.logo .motto {
    font-size: 0.78rem;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s, background-color 0.2s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-menu a:focus:not(:focus-visible) {
    outline: none;
}

.nav-menu a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.dropdown > a {
    cursor: pointer;
    min-height: 44px;
}

/* Hamburger: large touch target, no inner elements stealing taps (modern mobile pattern) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    min-width: 48px;
    min-height: 48px;
    padding: 12px;
    margin: -4px -4px -4px 0; /* expand hit area toward right edge */
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    font: inherit;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    z-index: 1001;
}

/* Expanded touch target for unreliable taps (WCAG 2.2 / iOS) */
.hamburger::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    z-index: -1;
}

.hamburger:focus {
    outline: none;
}

.hamburger:focus-visible,
.hamburger:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Spans must not capture pointer/touch so the button always receives the tap */
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    pointer-events: none;
    -webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
    transition: transform 0.3s, opacity 0.3s;
}

/* Hero Section - background image in same folder as style.css */
.hero {
    height: 90vh;
    min-height: 400px;
    background-color: var(--primary-color);
    background-image: url("gallery/background%20homepage.avif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@supports (height: 90dvh) {
    .hero {
        height: 90dvh;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.hero-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo img {
    max-width: 300px;
    width: auto;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-motto {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Buttons - touch-friendly (min 44px for iOS/Android) */
.btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 12px 30px;
    min-height: 44px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #b8941f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:focus:not(:focus-visible) {
    outline: none;
}

.btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Section Styles - content-visibility speeds up initial render */
section {
    padding: 80px 0;
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* About Section */
.about-section {
    background: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ===== Our Identity: Slogan, Motto, Vision, Prayer – fresh card design ===== */
.featured-cards-section {
    padding: 4.5rem 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
    position: relative;
}

.container--featured {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    width: 100%;
}

.featured-cards-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.featured-cards-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
}

.featured-cards-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    margin: 0;
}

.featured-cards-section .featured-cards-grid {
    max-width: 100%;
}

.featured-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.featured-card--wide {
    grid-column: 1 / -1;
}

/* Card: clean panel with left accent bar */
.featured-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(26, 77, 122, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(26, 77, 122, 0.06);
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(26, 77, 122, 0.12);
}

.featured-card__glow {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-color);
    opacity: 0.9;
}

.featured-card--slogan .featured-card__glow { background: linear-gradient(180deg, #1a4d7a, #2d6a9f); }
.featured-card--motto .featured-card__glow { background: linear-gradient(180deg, #d4af37, #c9a227); }
.featured-card--vision .featured-card__glow { background: linear-gradient(180deg, #1a4d7a, #3a7bb5); }
.featured-card--prayer .featured-card__glow { background: linear-gradient(180deg, #d4af37, #1a4d7a); width: 5px; }

.featured-card__content {
    position: relative;
    padding: 1.75rem 1.5rem 1.75rem 1.75rem;
    z-index: 1;
}

.featured-card__label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.6rem;
    background: rgba(26, 77, 122, 0.08);
    border-radius: 4px;
}

.featured-card__quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0;
}

/* Prayer card full width */
.featured-card__content--prayer {
    padding: 2rem 2.5rem 2rem 3.25rem;
}

.featured-card__quote-mark {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--accent-color);
    opacity: 0.25;
}

.featured-card__text {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    position: relative;
    z-index: 1;
    font-style: italic;
}

.featured-card__amen {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    text-align: right;
    letter-spacing: 0.02em;
}

/* Campuses Section */
.campuses-section {
    background: var(--bg-light);
}

.campuses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.campus-card {
    background: var(--white);
    padding: 0;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.campus-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 26px 80px rgba(15, 23, 42, 0.35);
}

.campus-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 55%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.campus-card-content {
    position: relative;
    z-index: 2;
    padding: 3rem 3rem;
    width: 100%;
    color: var(--white);
}

.campus-card h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.campus-card p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-size: 1rem;
}

.campus-card .btn {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
    font-weight: 600;
    text-shadow: none;
}

.campus-card .btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.campus-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Values Section */
.values-section {
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    position: relative;
    text-align: left;
    padding: 2.2rem 2.4rem;
    border-radius: 18px;
    background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.08), transparent 55%), var(--white);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.3);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease, background 0.35s ease;
}

.value-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(45, 106, 159, 0.08), transparent 55%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.value-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.2);
    border-color: rgba(37, 99, 235, 0.6);
}

.value-item:hover::before {
    opacity: 1;
}

.value-item h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-item p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.98rem;
}

/* Campus Page Styles */
.campus-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 150px 0 100px;
    padding-top: calc(150px + var(--safe-area-top));
    padding-bottom: calc(100px + var(--safe-area-bottom));
    padding-left: var(--safe-area-left);
    padding-right: var(--safe-area-right);
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.campus-hero .container {
    position: relative;
    z-index: 2;
}

.campus-hero-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.campus-hero-logo img {
    max-width: 250px;
    width: auto;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.campus-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.campus-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* School Story Section */
.school-story {
    padding: 80px 0;
    background: var(--white);
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
}

.story-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), transparent 50%), var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
    border-color: rgba(37, 99, 235, 0.7);
}

.team-card img {
    pointer-events: none;
    user-select: none;
}

.team-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    text-align: center;
    margin: 0;
    padding: 0;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: transparent;
    margin: 0;
    padding: 0;
}

/* When image exists, hide text/emoji */
.team-image:has(img) {
    font-size: 0;
    line-height: 0;
}

/* Fallback for browsers without :has() support */
.team-image img + * {
    display: none;
}

.team-info {
    padding: 1.75rem 1.9rem 1.9rem;
}

.team-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-info .role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

/* News Section */
.news-section {
    padding: 80px 0;
    background: var(--white);
}

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

@media (min-width: 769px) and (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.news-card {
    position: relative;
    background: radial-gradient(circle at top left, rgba(26, 77, 122, 0.09), transparent 55%), var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease, background 0.35s ease;
}

.news-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.3);
    border-color: rgba(37, 99, 235, 0.75);
}

.news-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.news-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.35), transparent 55%);
    mix-blend-mode: screen;
    opacity: 0.9;
    pointer-events: none;
}

.news-content {
    padding: 1.6rem 1.85rem 1.85rem;
}

.news-date {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.news-content h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.news-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Alumni Section */
.alumni-section {
    padding: 80px 0;
    background: var(--white);
}

.alumni-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.alumni-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-items: center;
    align-items: start;
}

.alumni-card {
    position: relative;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.07), transparent 55%), var(--bg-light);
    padding: 2.1rem 2.3rem 2.3rem;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.45);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease, background 0.35s ease;
}

.alumni-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 72px rgba(15, 23, 42, 0.27);
    border-color: rgba(37, 99, 235, 0.7);
}

.alumni-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-color);
    position: relative;
    background: var(--bg-light);
    display: block;
}

.alumni-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.alumni-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.alumni-testimony {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
    padding-bottom: calc(20px + var(--safe-area-bottom));
    padding-left: var(--safe-area-left);
    padding-right: var(--safe-area-right);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section .motto {
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.social-media {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

.social-media a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-media svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Campus Address Footer */
.campus-footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a2332 100%);
    color: var(--white);
    padding: 60px 0 30px;
    padding-bottom: calc(30px + var(--safe-area-bottom));
    padding-left: var(--safe-area-left);
    padding-right: var(--safe-area-right);
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.campus-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--accent-color));
}

.campus-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.campus-footer-section {
    display: flex;
    flex-direction: column;
}

.campus-footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
}

.campus-footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

.campus-footer-section p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.campus-footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.campus-footer-section a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.campus-footer-section strong {
    color: var(--white);
    font-weight: 600;
    margin-right: 0.5rem;
}

.campus-footer-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.campus-footer-info-item svg {
    width: 18px;
    height: 18px;
    fill: var(--accent-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.campus-footer-info-item span {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.campus-footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.campus-footer-bottom p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.campus-footer-bottom p:first-child {
    margin-top: 0;
}

.campus-footer-bottom p:last-child {
    margin-bottom: 0;
}

.campus-footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.campus-footer-bottom a:hover {
    color: var(--white);
}

/* Responsive Design */
/* Tablet and below (1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .featured-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .featured-card--wide {
        grid-column: 1 / -1;
    }

    .featured-card__quote {
        font-size: 1.15rem;
    }

    .campuses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .team-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .campus-card {
        min-height: 450px;
    }

    .campus-card-content {
        padding: 2.5rem 2rem;
    }
}

/* Overlay for mobile menu - only exists when active so it never blocks the hamburger */
.nav-overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    background: rgba(0, 0, 0, 0.4);
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.nav-overlay.active {
    display: block;
}

/* Tablet: show hamburger so nav fits (992px) */
@media (max-width: 992px) {
    /* Hamburger must be on top so mobile touches reach it (no overlay/menu blocking) */
    .nav-wrapper {
        position: relative;
        z-index: 1002;
    }

    .hamburger {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        position: relative;
        z-index: 10001;
        min-width: 48px;
        min-height: 48px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        -webkit-user-select: none;
        user-select: none;
    }

    /* Overlay only when menu is open – when closed it's display:none so it cannot block taps */
    .nav-overlay:not(.active) {
        display: none !important;
    }
    .nav-overlay.active {
        display: block !important;
    }

    /* When closed, menu is behind navbar so it never steals touches; when open it's above content */
    .nav-menu {
        position: fixed;
        left: 0;
        top: 0;
        width: 85%;
        max-width: 320px;
        height: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        padding-top: calc(70px + env(safe-area-inset-top, 0));
        padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0));
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
        z-index: 999;
        margin: 0;
        gap: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        visibility: hidden;
        pointer-events: none;
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
        -webkit-transition: -webkit-transform 0.3s ease, visibility 0.3s ease;
        transition: transform 0.3s ease, visibility 0.3s ease;
    }

    .nav-menu.active {
        visibility: visible;
        pointer-events: auto;
        z-index: 1000;
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    .nav-menu > li {
        border-bottom: 1px solid rgba(26, 77, 122, 0.08);
    }

    .nav-menu a {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        width: 100%;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        -webkit-user-select: none;
        user-select: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(26, 77, 122, 0.06);
        margin: 0;
        padding: 0;
        border-radius: 0;
        min-width: 0;
    }

    .dropdown-menu li {
        border-bottom: none;
    }

    .dropdown-menu a {
        padding: 0.75rem 1.25rem 0.75rem 2.5rem;
        font-size: 0.9rem;
        min-height: 48px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .dropdown > a {
        min-height: 48px;
    }

}

/* Mobile and Tablet (768px) - compact bar, smaller logo */
@media (max-width: 768px) {
    .hamburger {
        -webkit-user-select: none;
        user-select: none;
        z-index: 10001;
    }

    .nav-wrapper {
        position: relative;
        z-index: 1002;
    }

    .hamburger.active span:nth-child(1) {
        -webkit-transform: translateY(7px) rotate(45deg);
        transform: translateY(7px) rotate(45deg);
    }

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

    .hamburger.active span:nth-child(3) {
        -webkit-transform: translateY(-7px) rotate(-45deg);
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-overlay:not(.active) {
        display: none !important;
    }
    .nav-overlay.active {
        display: block !important;
    }

    .nav-menu {
        padding-top: calc(64px + env(safe-area-inset-top, 0));
        padding-bottom: 1.5rem;
    }

    .logo a {
        min-height: 44px;
    }

    .logo-image {
        height: 42px;
    }

    .logo h1 {
        font-size: 1.35rem;
    }

    .logo .motto {
        font-size: 0.7rem;
    }

    .hero-logo img {
        max-width: 200px;
        max-height: 120px;
    }

    .campus-hero-logo img {
        max-width: 180px;
        max-height: 100px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-motto {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Featured cards - tablet/mobile: single column, normal height */
    .featured-cards-section {
        padding: 3rem 0;
    }

    .featured-cards-header {
        margin-bottom: 2rem;
    }

    .featured-cards-title {
        font-size: 1.75rem;
    }

    .featured-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .featured-card {
        border-radius: 12px;
    }

    .featured-card__content {
        padding: 1.5rem 1.25rem;
        width: 100%;
    }

    .featured-card__content--prayer {
        padding: 2rem 1.5rem 2rem 2.5rem;
    }

    .featured-card__quote {
        font-size: 1.1rem;
    }

    .featured-card__quote-mark {
        font-size: 2.75rem;
        top: 1rem;
        left: 1rem;
    }

    .featured-card__text {
        font-size: 1rem;
        line-height: 1.85;
    }

    .featured-card__amen {
        font-size: 1.2rem;
    }

    section {
        padding: 60px 0;
    }

    .campuses-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .campus-card {
        min-height: 400px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .campus-card-content {
        padding: 2.5rem 2rem;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-card {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .news-content {
        padding: 1.5rem 1.5rem 1.5rem;
    }

    .campus-hero {
        min-height: 400px;
        padding: 120px 0 80px;
        background-attachment: scroll !important;
    }
    
    .campus-hero h1 {
        font-size: 2rem;
    }

    .campus-hero p {
        font-size: 1.1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }

    .social-media {
        justify-content: center;
    }

    .campus-footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .campus-footer-section {
        text-align: center;
    }

    .campus-footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .campus-footer-info-item {
        justify-content: center;
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .logo .motto {
        font-size: 0.65rem;
    }

    .logo-image {
        height: 38px;
    }

    .nav-menu a {
        min-height: 48px;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .dropdown-menu a {
        min-height: 48px;
        padding: 0.7rem 1rem 0.7rem 2rem;
        font-size: 0.875rem;
    }

    .featured-cards-section {
        padding: 2.5rem 0;
    }

    .featured-cards-title {
        font-size: 1.6rem;
    }

    .featured-cards-subtitle {
        font-size: 0.95rem;
    }

    .featured-card__content {
        padding: 1.25rem 1rem;
    }

    .featured-card__quote {
        font-size: 1.05rem;
    }

    .featured-card__content--prayer {
        padding: 1.5rem 1.25rem 1.5rem 2rem;
    }

    .featured-card__quote-mark {
        font-size: 2.25rem;
        top: 0.75rem;
        left: 0.75rem;
    }

    .featured-card__text {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .featured-card__amen {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .campus-card {
        min-height: 350px;
    }

    .campus-card-content {
        padding: 2rem 1.5rem;
    }

    .campus-card h3 {
        font-size: 1.5rem;
    }

    .campus-card p {
        font-size: 0.95rem;
    }

    .news-content h3 {
        font-size: 1.1rem;
    }

    .news-content p {
        font-size: 0.9rem;
    }

    .campus-footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .campus-footer-section h3 {
        font-size: 1.1rem;
    }

    .campus-footer-section p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }

    .team-info {
        padding: 1.5rem 1.5rem 1.5rem;
    }

    .team-info h3 {
        font-size: 1.2rem;
    }
}

/* Extra Small Mobile (360px) */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .campus-card-content {
        padding: 1.5rem 1.25rem;
    }

    .news-content {
        padding: 1.25rem 1.25rem 1.25rem;
    }
}

/* Very Small Mobile (320px) - iPhone SE, small Android */
@media (max-width: 320px) {
    .container {
        padding: 0 16px;
    }

    .navbar {
        padding: 0.5rem 0;
        padding-top: calc(0.5rem + var(--safe-area-top));
    }

    .logo h1 {
        font-size: 1.05rem;
    }

    .logo .motto {
        font-size: 0.6rem;
    }

    .logo-image {
        height: 34px;
    }

    .hamburger {
        min-width: 44px;
        min-height: 44px;
    }

    .nav-menu a {
        min-height: 48px;
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }

    .dropdown-menu a {
        min-height: 44px;
        padding: 0.65rem 0.875rem 0.65rem 1.75rem;
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-motto {
        font-size: 1rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .campus-card-content {
        padding: 1.25rem 1rem;
    }

    .campus-card h3 {
        font-size: 1.35rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
    }
}

/* Landscape on small screens - reduce hero height to avoid excessive scroll */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 3rem 0;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-logo {
        margin-bottom: 1rem;
    }

    .hero-logo img {
        max-height: 80px;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .hero-motto {
        font-size: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .campus-hero {
        min-height: 100vh;
        padding: 3rem 0;
    }
}

/* iOS Specific Optimizations */
@supports (-webkit-touch-callout: none) {
    .campus-hero {
        background-attachment: scroll !important;
    }

    .hero {
        background-attachment: scroll !important;
    }

    .nav-menu {
        -webkit-overflow-scrolling: touch;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .campus-card:hover,
    .news-card:hover,
    .team-card:hover {
        transform: none;
    }

    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .social-media a {
        width: 44px;
        height: 44px;
    }

    .dropdown > a {
        min-height: 44px;
    }
}

/* Contact form - mobile friendly (16px input font prevents iOS zoom on focus) */
.contact-form input,
.contact-form select,
.contact-form textarea {
    font-size: 16px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 0;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        min-height: 48px;
        padding: 14px 16px;
    }

    .contact-form textarea {
        min-height: 120px;
    }

    .contact-form button[type="submit"] {
        width: 100%;
        min-height: 48px;
    }
}

/* Prevent long words/URLs from overflowing on small screens */
p, li, .about-text, .section-subtitle, .news-content p, .team-info p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Scrollable tables on small screens */
@media (max-width: 768px) {
    .table-wrapper,
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Ensure tap targets on cards (whole card tappable on touch) */
@media (hover: none) and (pointer: coarse) {
    .news-card a,
    .campus-card .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Reduced motion - faster perceived performance */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

