/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-navy: #002D62;
    --accent-green: #1F6B42;
    --highlight-gold: #F0A500;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --max-width: 1200px;
    --border-radius: 5px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   2. UTILITY CLASSES & ACCESSIBILITY
   ========================================= */

/* Skip Navigation Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-navy);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* Enhanced Focus Indicators (Accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.visually-hidden {
    position: absolute;
    left: -9999px;
}

/* Responsive Utility Classes */
.text-center-mobile {
    text-align: left;
}

/* Ensure inline styles don't break mobile */
[style*="padding: 30px"] {
    padding: 30px !important;
}

[style*="max-width"] {
    max-width: 100% !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-navy);
    color: var(--white);
    border-color: var(--primary-navy);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-navy);
}

.btn-outline-white {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-navy);
}

.btn-accent {
    background-color: var(--highlight-gold);
    color: var(--primary-navy);
    border-color: var(--highlight-gold);
}

.btn-accent:hover {
    background-color: transparent;
    color: var(--highlight-gold);
}

.btn-outline-primary {
    border: 1px solid var(--primary-navy);
    color: var(--primary-navy);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-navy);
    color: white;
}

.small-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
    width: 100%;
    display: block;
    text-align: center;
}

.full-width {
    width: 100%;
}

/* Typography */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.page-header {
    background-color: var(--primary-navy);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.lead {
    font-size: 1.15rem;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.7;
}

.note {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 15px;
    text-align: center;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease;
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.top-bar {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-link {
    color: white;
    text-decoration: underline;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    height: 110px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .site-logo {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-dark);
}

.main-nav a:hover {
    color: var(--primary-navy);
}

.cta-button {
    background-color: var(--accent-green);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
}

.cta-button:hover {
    background-color: #165030;
    color: white;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-navy);
    transition: 0.3s;
}

/* =========================================
   4. HOMEPAGE SECTIONS
   ========================================= */
/* Hero */
.hero {
    background: linear-gradient(rgba(0, 45, 98, 0.8), rgba(0, 45, 98, 0.8)), url('../img/hero.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About */
.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h2 {
    color: var(--primary-navy);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    overflow-wrap: break-word;
}

.feature-list li::before {
    content: "✓";
    color: var(--accent-green);
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.map-placeholder {
    background-color: #e9ecef;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-image: url('../img/newengland.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Stats */
.stats {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--highlight-gold);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.key-stats-row {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.key-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* President's Message */
.president-msg {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.msg-container {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 50px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.president-photo {
    flex-basis: 300px;
    flex-shrink: 0;
}

.photo-placeholder {
    width: 100%;
    height: 300px;
    background-color: #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    overflow: hidden;
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.msg-content h2 {
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.msg-content blockquote {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-style: italic;
    border-left: 4px solid var(--highlight-gold);
    padding-left: 20px;
}

.signature {
    font-weight: bold;
    color: var(--primary-navy);
}

.title {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* =========================================
   5. MEMBERSHIP PAGE & FORMS
   ========================================= */
.membership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 60px 0;
}

.benefits-card {
    background: #fff;
    padding: 30px;
    border-left: 5px solid var(--highlight-gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.price-tag {
    font-size: 2.5rem;
    color: var(--primary-navy);
    font-weight: 700;
}

.price-sub {
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-box {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-navy);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-navy);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 45, 98, 0.1);
}

.error {
    color: #d9534f;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* =========================================
   6. FOOTER
   ========================================= */
footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--highlight-gold);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* =========================================
   7. INTERNAL PAGE LAYOUTS
   ========================================= */
/* Page Hero */
.page-hero {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    background-image: linear-gradient(rgba(0, 45, 98, 0.9), rgba(0, 45, 98, 0.9)), url('./img/laptops.webp');
    background-size: cover;
    background-position: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Sidebar Layout */
.page-content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 50px;
    margin-top: 50px;
    margin-bottom: 80px;
}

.sidebar-widget {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 4px;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    color: var(--primary-navy);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.side-nav li {
    margin-bottom: 5px;
}

.side-nav a {
    display: block;
    padding: 10px;
    color: var(--text-dark);
    border-radius: 4px;
    font-size: 0.95rem;
}

.side-nav a:hover,
.side-nav a.active {
    background-color: #f0f4f8;
    color: var(--primary-navy);
    font-weight: 600;
    border-left: 3px solid var(--primary-navy);
}

.highlight-widget {
    background-color: var(--bg-light);
    padding: 20px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.highlight-widget p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.highlight-box {
    margin-top: 20px;
}

.highlight-box h4 {
    font-size: 1.1rem;
}

/* Content Sections */
.content-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.content-section h2 {
    color: var(--primary-navy);
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--highlight-gold);
}

.content-section p {
    margin-bottom: 15px !important;
}

.content-section p:last-child {
    margin-bottom: 0 !important;
}

.content-section h3 {
    margin-top: 25px;
}

/* Override inline styles - paragraphs need spacing */
.content-section p[style*="margin: 0"] {
    margin-bottom: 15px !important;
}

/* Pricing Table */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.pricing-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    background: white;
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.pricing-card.featured {
    border-color: var(--primary-navy);
    background-color: #fff;
    position: relative;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 2;
}

.card-header {
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.card-sub {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.card-features {
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #555;
}

.card-features li {
    margin-bottom: 8px;
}

/* Schedule List */
.schedule-list {
    border-left: 2px solid #eee;
    margin-left: 20px;
    padding-left: 30px;
}

.schedule-item {
    position: relative;
    margin-bottom: 40px;
}

.schedule-item::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 0;
    width: 16px;
    height: 16px;
    background-color: var(--white);
    border: 4px solid var(--accent-green);
    border-radius: 50%;
}

.schedule-item .time {
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.schedule-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.schedule-item p {
    color: #666;
    margin: 0;
}

/* =========================================
   8. ABOUT & CONTACT PAGE STYLES
   ========================================= */
/* Download Card */
.download-card {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.download-card .icon {
    font-size: 2.5rem;
    margin-right: 20px;
}

.download-card .details {
    flex-grow: 1;
}

.download-card h4 {
    margin-bottom: 5px;
    color: var(--primary-navy);
}

.download-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

/* Board Grid */
.board-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.board-card {
    background: white;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.3s;
}

.board-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.board-card-executive {
    border: 2px solid var(--highlight-gold);
    background: linear-gradient(to bottom, #fffef8 0%, #ffffff 100%);
}

.board-card .avatar {
    width: 60px;
    height: 60px;
    background-color: var(--primary-navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.board-card h4 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.board-card .role {
    font-size: 0.85rem;
    color: var(--accent-green);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.board-card .uni {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.board-card .job-title {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
    display: block;
}

.board-email {
    font-size: 0.8rem;
    color: var(--accent-green);
    margin-top: 10px;
    display: inline-block;
    text-decoration: underline;
}

.board-email:hover {
    color: var(--primary-navy);
}

/* =========================================
   9. RESOURCES PAGE STYLES
   ========================================= */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.resource-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-navy);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card-icon {
    font-size: 2rem;
    color: var(--highlight-gold);
    margin-bottom: 20px;
}

.resource-card h3 {
    font-size: 1.2rem;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.resource-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.link-text {
    font-weight: 600;
    color: var(--accent-green);
    font-size: 0.9rem;
}

/* Archive List */
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.archive-item {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
}

.date-box {
    text-align: center;
    padding-right: 25px;
    margin-right: 25px;
    border-right: 2px solid #f0f0f0;
    min-width: 120px;
}

.date-box .year {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1;
}

.date-box .loc {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
}

.archive-item .details {
    flex-grow: 1;
}

.archive-item h3 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.tags {
    margin-top: 10px;
}

.tag {
    display: inline-block;
    background: #eef2f7;
    color: var(--primary-navy);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-right: 5px;
}

/* =========================================
   10. PARTNERS PAGE STYLES
   ========================================= */
.partner-category-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.partner-category-section {
    background: white;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-navy);
}

.category-header i {
    font-size: 1.5rem;
}

.category-header h3 {
    color: var(--primary-navy);
    font-size: 1.3rem;
    margin: 0;
}

.partner-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.partner-mini-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.partner-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-navy);
}

.ellucian-badge {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #5B2C82 0%, #7B4FA0 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 15px;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 2px 8px rgba(91, 44, 130, 0.3);
}

.partner-mini-card h4 {
    color: var(--primary-navy);
    margin-bottom: 8px;
    font-size: 1rem;
}

.partner-title {
    display: block;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-weight: 600;
}

.partner-mini-card a {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent-green);
    text-decoration: none;
    word-break: break-word;
}

.partner-mini-card a:hover {
    color: var(--primary-navy);
    text-decoration: underline;
}

/* =========================================
   11. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .partner-cards-grid[style*="repeat(5"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    body, html {
        overflow-x: hidden;
        max-width: 100vw;
    }

    * {
        max-width: 100%;
    }

    /* Header & Nav */
    .site-logo {
        height: 45px;
        max-width: 90px;
    }

    .nav-container {
        padding: 10px 20px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        flex-direction: column;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 15px;
    }

    .desktop-only {
        display: none;
    }

    /* Typography - Mobile Optimized */
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .page-hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .page-hero p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Container & Spacing */
    .container {
        padding: 0 15px;
    }

    .container[style*="margin-top"],
    .container[style*="margin-bottom"] {
        margin-top: 30px !important;
        margin-bottom: 30px !important;
    }

    .page-hero {
        padding: 40px 0;
    }

    /* Forms - Mobile Optimized */
    .form-box {
        padding: 20px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px; /* Larger touch targets */
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }

    /* Layout Grids */
    .about-grid,
    .msg-container,
    .footer-grid,
    .stats-grid,
    .membership-grid,
    .board-grid,
    .resource-grid,
    .pricing-table,
    .partner-category-row,
    .partner-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .partner-cards-grid[style*="repeat(5"] {
        grid-template-columns: 1fr !important;
    }

    /* Specific Components */
    .msg-container {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }

    .president-photo {
        width: 100%;
        flex-basis: auto;
        flex-shrink: 1;
    }

    .msg-content {
        width: 100%;
    }

    .msg-content blockquote {
        font-size: 1rem;
        padding-left: 15px;
    }

    .photo-placeholder {
        height: 250px;
    }

    .map-placeholder {
        height: 250px;
    }

    .page-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sidebar {
        order: 2; /* Move sidebar below main content */
    }

    .main-column {
        order: 1;
    }

    .pricing-card {
        padding: 25px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .key-stats-row {
        flex-direction: column;
        gap: 20px;
    }

    .key-stat {
        min-width: 100%;
    }

    .download-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .download-card .icon {
        margin-right: 0;
    }

    .archive-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .date-box {
        border-right: none;
        border-bottom: 2px solid #f0f0f0;
        padding-right: 0;
        padding-bottom: 10px;
        margin-right: 0;
        width: 100%;
        text-align: left;
        display: flex;
        gap: 10px;
        align-items: baseline;
    }

    .small-btn {
        width: 100%;
        text-align: center;
    }

    /* Benefits & Cards */
    .benefits-card {
        padding: 20px;
    }

    /* Ensure proper text wrapping on mobile */
    .feature-list li,
    .benefits-card p,
    .benefits-card li {
        overflow-wrap: break-word;
        word-break: normal;
    }

    /* Prevent long links from overflowing */
    a[href^="mailto:"],
    a[href^="http"] {
        display: inline-block;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-all;
    }

    /* Alerts */
    .alert-success,
    .alert-error {
        padding: 12px;
        font-size: 0.9rem;
    }

    /* Schedule Items */
    .schedule-item {
        flex-direction: column;
        gap: 10px;
    }

    .schedule-item .time {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #eee;
        padding-right: 0;
        padding-bottom: 10px;
    }

    /* Override inline styles for mobile */
    [style*="padding: 30px"],
    [style*="padding:30px"] {
        padding: 20px !important;
    }

    [style*="margin: 30px"],
    [style*="margin:30px"] {
        margin: 20px 0 !important;
    }

    .text-center-mobile {
        text-align: center;
    }

    /* Ensure images stay within bounds */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Fix any potential overflow */
    * {
        max-width: 100%;
    }

    pre, code {
        max-width: 100%;
        overflow-x: auto;
    }

    /* Ensure flex containers don't overflow */
    .msg-container,
    .about-grid,
    .hero-buttons {
        max-width: 100%;
    }

    /* Make sure images in containers stay within bounds */
    .president-photo img,
    .photo-placeholder img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* President message section spacing */
    .president-msg {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    /* Hero buttons - stack on mobile */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Stats section */
    .stats {
        padding: 40px 0;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    /* About section */
    .about {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    /* Extra Small Screens */
    .site-logo {
        height: 35px;
        max-width: 70px;
    }

    .container {
        padding: 0 12px;
    }

    /* Typography */
    .hero h1 {
        font-size: 1.75rem;
    }

    .page-hero h1 {
        font-size: 1.5rem;
    }

    .page-hero {
        padding: 30px 0;
    }

    h2 {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    /* Forms */
    .form-box {
        padding: 15px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    /* Stats */
    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Pricing */
    .pricing-card {
        padding: 20px;
    }

    .price {
        font-size: 2rem;
    }

    /* Footer */
    .footer-grid {
        gap: 30px;
    }

    .copyright {
        font-size: 0.85rem;
        padding: 15px 0;
    }

    /* Reduce spacing on very small screens */
    section {
        padding: 30px 0;
    }

    .content-section {
        margin-bottom: 30px;
    }

    /* Further reduce inline padding on very small screens */
    [style*="padding: 30px"],
    [style*="padding:30px"],
    [style*="padding: 20px"],
    [style*="padding:20px"] {
        padding: 15px !important;
    }

    /* Better touch targets */
    .btn,
    button,
    a.btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Improve readability */
    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* President message - extra small screens */
    .msg-container {
        padding: 15px;
        gap: 15px;
    }

    .msg-content blockquote {
        font-size: 0.95rem;
        padding-left: 12px;
    }

    .signature {
        font-size: 0.95rem;
    }

    .title {
        font-size: 0.85rem !important;
    }
}
