/* === NCTM Website — Maroon & Grey Theme === */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&display=swap');

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    color: #333;
    line-height: 1.6;
    background: #fff;
}
a { color: #500000; text-decoration: none; transition: color 0.2s; }
a:hover { color: #7a0000; text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* === VARIABLES === */
:root {
    --maroon: #500000;
    --maroon-light: #7a0000;
    --maroon-dark: #3c0000;
    --white: #ffffff;
    --grey-100: #f5f5f5;
    --grey-200: #e8e8e8;
    --grey-300: #d0d0d0;
    --grey-400: #999999;
    --grey-500: #666666;
    --grey-600: #333333;
    --max-width: 1200px;
}

/* === UTILITY === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* === TOP BAR (TAMU stripe) === */
.top-bar {
    background: var(--maroon-dark);
    padding: 6px 0;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: rgba(255,255,255,0.7); font-size: 0.75rem; }
.top-bar a:hover { color: #fff; text-decoration: none; }

/* === HEADER === */
.site-header {
    background: var(--maroon);
    padding: 16px 0;
    border-bottom: 3px solid var(--maroon-dark);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-branding { display: flex; align-items: center; gap: 14px; }
.site-branding img { height: 50px; }
.site-branding .brand-text { color: #fff; }
.site-branding .brand-name {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.site-branding .brand-sub {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.site-branding a { color: #fff; text-decoration: none; }

/* === NAVIGATION === */
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav > li { position: relative; }
.main-nav > li > a {
    display: block;
    padding: 10px 18px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background 0.2s;
}
.main-nav > li > a:hover,
.main-nav > li.active > a {
    background: rgba(255,255,255,0.15);
    text-decoration: none;
}

/* Dropdown */
.main-nav .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-top: 3px solid var(--maroon);
    z-index: 100;
}
.main-nav li:hover .dropdown { display: block; }
.main-nav .dropdown a {
    display: block;
    padding: 10px 18px;
    color: var(--grey-600);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid var(--grey-200);
    text-decoration: none;
}
.main-nav .dropdown a:hover {
    background: var(--grey-100);
    color: var(--maroon);
    text-decoration: none;
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* === HERO BANNER === */
.hero {
    position: relative;
    background: linear-gradient(rgba(80,0,0,0.6), rgba(42,0,0,0.65)), url('../img/hero-bg.jpg') center/cover no-repeat;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 80px 20px;
}
.hero h2 {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.3;
    max-width: 800px;
    margin: 0 auto 20px;
    letter-spacing: 0.02em;
}
.hero p {
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 30px;
    color: rgba(255,255,255,0.85);
}
.hero .btn { margin-top: 10px; }

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-maroon {
    background: var(--maroon);
    color: #fff;
    border-color: var(--maroon);
}
.btn-maroon:hover {
    background: var(--maroon-light);
    border-color: var(--maroon-light);
    color: #fff;
    text-decoration: none;
}
.btn-outline {
    background: transparent;
    color: var(--maroon);
    border-color: var(--maroon);
}
.btn-outline:hover {
    background: var(--maroon);
    color: #fff;
    text-decoration: none;
}
.btn-white {
    background: #fff;
    color: var(--maroon);
    border-color: #fff;
}
.btn-white:hover {
    background: rgba(255,255,255,0.9);
    text-decoration: none;
}

/* === BREADCRUMB === */
.breadcrumb {
    padding: 14px 0;
    font-size: 0.8rem;
    color: var(--grey-400);
    border-bottom: 1px solid var(--grey-200);
    background: var(--grey-100);
}
.breadcrumb a { color: var(--maroon); }
.breadcrumb span { margin: 0 6px; color: var(--grey-300); }

/* === PAGE CONTENT === */
.page-content { padding: 50px 0 70px; }
.page-content h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--grey-600);
    margin-bottom: 30px;
    letter-spacing: 0.02em;
}
.page-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--maroon);
    margin: 35px 0 15px;
    letter-spacing: 0.02em;
}
.page-content h3 {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--grey-600);
    margin: 20px 0 10px;
}
.page-content p {
    margin-bottom: 16px;
    color: var(--grey-500);
    font-weight: 300;
    line-height: 1.7;
}
.page-content ul { margin: 0 0 20px 20px; }
.page-content ul li {
    margin-bottom: 8px;
    color: var(--grey-500);
    font-weight: 300;
    list-style: disc;
}
.page-content blockquote {
    border-left: 4px solid var(--maroon);
    padding: 16px 24px;
    margin: 30px 0;
    background: var(--grey-100);
    font-style: italic;
    color: var(--grey-500);
}

/* === CONTENT SECTIONS (homepage) === */
.section { padding: 60px 0; }
.section-grey { background: var(--grey-100); }
.section-maroon { background: var(--maroon); color: #fff; }
.section-maroon h2 { color: #fff; }
.section-maroon p { color: rgba(255,255,255,0.85); }

.section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}
.section p { font-weight: 300; line-height: 1.7; color: var(--grey-500); }

/* Two column layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.two-col img { border-radius: 4px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

/* === CARDS === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.card {
    background: #fff;
    border: 1px solid var(--grey-200);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.card-img {
    height: 200px;
    background: var(--grey-200);
    background-size: cover;
    background-position: center;
}
.card-body { padding: 24px; }
.card-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--grey-600);
}
.card-body p {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--grey-500);
    margin-bottom: 16px;
}

/* === TEAM GRID === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.team-member {
    text-align: center;
    padding: 30px 20px;
    background: var(--grey-100);
    border-radius: 4px;
}
.team-photo {
    width: 160px;
    height: 160px;
    border-radius: 4px;
    background: var(--grey-300);
    margin: 0 auto 16px;
    object-fit: cover;
}
.team-member h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--grey-600);
    margin-bottom: 4px;
}
.team-member .title {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--grey-400);
}

/* === FORMS === */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--grey-600);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    border: 1px solid var(--grey-300);
    border-radius: 3px;
    background: #fff;
    color: var(--grey-600);
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--maroon);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* === NEWS LIST === */
.news-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--grey-200);
}
.news-item h3 { margin-bottom: 8px; }
.news-item h3 a { color: var(--maroon); font-weight: 600; }
.news-item .date {
    font-size: 0.8rem;
    color: var(--grey-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.news-item p { font-size: 0.9rem; }
.read-more {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--maroon);
}

/* === EQUIPMENT TABLE === */
.equip-section { margin-bottom: 35px; }
.equip-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--maroon);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--grey-200);
    margin-bottom: 12px;
}
.equip-list { margin-left: 20px; }
.equip-list li {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--grey-500);
    margin-bottom: 6px;
    list-style: disc;
}

/* === VIDEO GRID === */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 30px;
}
.video-grid .video-item {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}
.video-grid .video-item iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* === GALLERY GRID === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 30px;
}
.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}
.gallery-grid img:hover { transform: scale(1.02); }

/* === COURSE REGISTRATION CARDS === */
.course-card {
    background: #fff;
    border: 1px solid var(--grey-200);
    border-left: 4px solid var(--maroon);
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}
.course-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--grey-600);
    margin-bottom: 8px;
}
.course-card p {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--grey-500);
    margin-bottom: 14px;
}
.course-meta {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: var(--grey-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

/* === FOOTER === */
.site-footer {
    background: var(--grey-600);
    color: rgba(255,255,255,0.7);
    padding: 50px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.footer-col p, .footer-col a {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

.social-links { display: flex; gap: 12px; margin-top: 12px; }
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: background 0.2s;
}
.social-links a:hover { background: var(--maroon); color: #fff; text-decoration: none; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }

/* === MAILING LIST FORM === */
.mailing-form { display: flex; gap: 10px; margin-top: 12px; }
.mailing-form input {
    flex: 1;
    padding: 10px 14px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 3px;
}
.mailing-form input::placeholder { color: rgba(255,255,255,0.4); }
.mailing-form button {
    padding: 10px 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--maroon);
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}
.mailing-form button:hover { background: var(--maroon-light); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--maroon);
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 100;
    }
    .main-nav.open { display: flex; }
    .main-nav > li > a { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .main-nav .dropdown {
        position: static;
        box-shadow: none;
        border-top: none;
        background: rgba(0,0,0,0.15);
    }
    .main-nav li:hover .dropdown { display: none; }
    .main-nav li.open .dropdown { display: block; }
    .main-nav .dropdown a { padding-left: 36px; color: rgba(255,255,255,0.7); border-bottom-color: rgba(255,255,255,0.05); }
    .main-nav .dropdown a:hover { background: rgba(255,255,255,0.05); color: #fff; }

    .site-header .container { position: relative; }
    .site-branding .brand-name { font-size: 1.1rem; }

    .hero { min-height: 300px; padding: 40px 20px; }
    .hero h2 { font-size: 1.6rem; }

    .two-col { grid-template-columns: 1fr; gap: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .video-grid { grid-template-columns: 1fr; }
    .mailing-form { flex-direction: column; }
}

/* === OUTLINE WHITE BUTTON (hero) === */
.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
}

/* === HERO TITLE (clean, responsive) === */
.hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    max-width: 700px;
    margin: 0 auto 16px;
    color: #fff;
}
.hero-sub {
    font-size: 1.05rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 30px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}
.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === STATS ROW === */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .hero-title { font-size: 1.8rem; }
    .hero-sub { font-size: 0.95rem; }
    .hero-btns { flex-direction: column; align-items: center; gap: 10px; }
    .hero-btns .btn { width: 220px; text-align: center; }
    .stats-row { gap: 30px; }
    .stat-num { font-size: 1.8rem; }
}

/* === FIX: Stats row + outline-white button === */
.stats-row { display: flex !important; justify-content: center; gap: 60px; flex-wrap: wrap; }
.btn.btn-outline-white { background: transparent !important; color: #fff !important; border: 2px solid #fff !important; }
.btn.btn-outline-white:hover { background: rgba(255,255,255,0.15) !important; color: #fff !important; text-decoration: none; }
@media (max-width: 768px) {
    .stats-row { gap: 20px 40px; }
    .stat-item { min-width: 120px; }
}

/* Bottom bar (mirror of top-bar) */
.bottom-bar {
    background: var(--maroon);
    color: rgba(255,255,255,0.8);
    font-size: 0.78rem;
    padding: 6px 0;
}
.bottom-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bottom-bar a {
    color: #fff;
    text-decoration: none;
}
.bottom-bar a:hover {
    text-decoration: underline;
}

/* === LOCATION CARDS === */
.location-card { margin-bottom: 20px; }
.location-card h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--maroon);
    margin-bottom: 10px;
}
.location-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--grey-600);
    margin: 20px 0 8px;
}
.location-card p {
    color: var(--grey-500);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* === TABLET BREAKPOINT === */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title { font-size: 2.2rem; }
    .two-col { gap: 24px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-row { gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* Team member hover effect */
a.team-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
a.team-member {
    transition: transform 0.2s, box-shadow 0.2s;
}
