/* ====== Base / Form Fallbacks ====== */
body { font-family: Arial, sans-serif; margin: 0; padding: 0; }
nav ul { list-style: none; padding: 0; }
nav li { display: inline; margin-right: 15px; }
.error { color: red; }
.success { color: green; }
form div { margin-bottom: 10px; }
label { display: block; font-weight: bold; }
input, select, textarea { width: 300px; padding: 5px; }
button { padding: 8px 15px; }
table { border-collapse: collapse; width: 100%; }
table, th, td { border: 1px solid #ccc; padding: 8px; }
th { background: #f2f2f2; }
.pagination { margin-top: 20px; }
.pagination a { margin: 0 5px; }

/* ====== Global Styles ====== */
:root {
    --primary: rgba(157, 46, 52, 1);      /* Deep red / maroon */
    --secondary: #fffac2;                /* barge */
    --bg-light: #f4f6f9;
    --text-dark: #222;
    --text-light: #555;
    --white: #fff;
    --border: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

a {
    text-decoration: none;
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====== Header & Navigation (ALWAYS MAROON) ====== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary);          /* maroon */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
}

/* Ensure all header text/icons are white/beige */
header .logo span,
header .logo-text .university,
header .logo-text .association,
header .nav-menu li a,
header .hamburger,
header .notification-bell {
    color: #fffac2 !important;
}

/* Login / Register button – maroon text on light background */
header .btn-login {
    background: #5b4345;
    color: #ffffff;
    font-weight: bold;
}

/* ====== Logo – Larger, Prominent Sizing ====== */
.logo {
    display: flex;
    align-items: center;
    margin-left: 0;
}
.logo img {
    height: 75px;          /* Increased for clear visibility */
    width: auto;           /* Maintains aspect ratio */
    max-width: 100%;
    object-fit: contain;
    margin: 4px 12px 4px 0;
    transition: height 0.3s ease;
}
.logo-text {
    display: flex;
    flex-direction: column;
}

/* ====== Full-Width Navbar Container ====== */
header .container,
.navbar {
    max-width: 100% !important;
    width: 100% !important;
    padding: 8px 25px !important;  /* Pushes logo to far left and menu to far right */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
}
.nav-menu li a {
    font-weight: 500;
    transition: color 0.3s;
}
.nav-menu li a:hover {
    color: var(--secondary);
}
.btn-login {
    background: #b0852e;
    color: var(--primary) !important;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
}
.btn-login:hover {
    background: #b0852e;
}
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}
.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}
.mobile-menu.active {
    display: flex;
}
.mobile-menu a {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}
.notification-bell {
    position: relative;
    font-size: 1.3rem;
    cursor: pointer;
}
.notification-bell .badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 0.7rem;
}

/* ====== Cookie Consent Banner ====== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    z-index: 2000;
}
.cookie-banner p {
    margin: 0;
    flex: 1 1 60%;
}
.cookie-banner button {
    background: var(--secondary);
    color: var(--primary);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* ====== Hero Section (EDGE-TO-EDGE VIEWPORT BLEED) ====== */
.hero {
    position: relative;
    width: 100vw !important;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    min-height: 80vh;
    padding: 0 !important;
    background: url('../images/banner.jpg') center/cover no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);   /* dark overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-overlay .container {
    max-width: 1200px;
    padding: 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero p, .hero h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: normal;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cta-btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
    text-decoration: none;
}

/* Primary button – maroon text on light background */
.btn-primary {
    background: var(--secondary);
    color: var(--primary) !important;
}

/* Outline button – white text and border */
.btn-outline {
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* ====== Section Headings ====== */
.section-title {
    text-align: center;
    margin: 40px 0 25px;
    font-size: 2rem;
    color: var(--primary);
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 8px auto 0;
}

/* ====== Upcoming Events ====== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.event-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.event-card:hover {
    transform: translateY(-5px);
}
.event-date {
    background: var(--primary);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}
.event-info {
    padding: 20px;
}
.event-info h3 {
    margin-bottom: 10px;
}
.event-info p {
    color: var(--text-light);
    margin-bottom: 5px;
}
.rsvp-btn {
    display: inline-block;
    margin-top: 10px;
    background: #9d2f34;
    color: #faf7c4;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
}

/* ====== Featured Alumni ====== */
.featured-alumni {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.featured-alumni img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--secondary);
}
.featured-quote {
    flex: 1;
}
.featured-quote blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 15px;
}
.featured-quote .alum-name {
    font-weight: bold;
    color: var(--primary);
}

/* ====== News / Announcements ====== */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.news-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.news-item h4 {
    margin-bottom: 10px;
}
.news-item .date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* ====== Quick Stats Spacing & Layout ====== */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    background: transparent !important;
    padding: 20px 0 !important;
    margin: 0 !important;
}

.stat-item {
    flex: 1 1 200px;            /* Evenly spaces out all 4 counters */
    background: rgba(255, 255, 255, 0.1); /* Subtle separated card background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.18);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
}

/* ====== Social Wall ====== */
.social-wall {
    text-align: center;
    margin: 40px 0;
}
.social-placeholder {
    background: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ====== Newsletter Signup ====== */
.newsletter {
    background: var(--secondary);
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    margin: 40px 0;
}
.newsletter h3 {
    color: var(--primary);
    margin-bottom: 15px;
}
.newsletter-form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.newsletter-form input[type="email"] {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    width: 300px;
    max-width: 100%;
}
.newsletter-form button {
    padding: 12px 25px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

/* ====== Footer ====== */
footer {
    background: var(--primary);
    color: white;
    padding: 40px 20px 20px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.footer-column h4 {
    margin-bottom: 15px;
    color: var(--secondary);
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 8px;
}
.footer-column a {
    color: #ccc;
}
.social-icons a {
    margin-right: 15px;
    font-size: 1.5rem;
    color: var(--secondary);
}
.copyright {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #aaa;
}

/* ====== Responsive Design ====== */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .nav-menu {
        display: none;
    }
    .hero { 
        height: 60vh; 
        min-height: 400px; 
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .stats-row {
        gap: 20px;
    }
    .logo img {
        height: 60px;
    }
    header .container,
    .navbar {
        padding: 8px 15px !important;
    }
}

/* ========== Page-specific styles ========== */

/* --- About Page --- */
.page-header {
    background: var(--primary);
    color: white;
    padding: 50px 20px;
    text-align: center;
}
.page-header h1 { font-size: 2.2rem; margin-bottom: 10px; }
.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}
.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    text-align: center;
}
.card .icon { font-size: 2.5rem; color: #9d2f34; margin-bottom: 15px; }
.card h3 { color: var(--primary); margin-bottom: 15px; }
.history-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.history-section h2 { color: var(--primary); margin-bottom: 20px; text-align: center; }
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
.board-member {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.board-member img {
    width: 100px; height: 100px; object-fit: cover;
    border-radius: 50%; border: 3px solid var(--secondary); margin-bottom: 15px;
}
.board-member h4 { color: var(--primary); margin-bottom: 5px; }
.board-member p { font-size: 0.9rem; color: var(--text-light); }
.bylaws-link {
    display: inline-block;
    background: var(--primary); color: white;
    padding: 12px 25px; border-radius: 5px; margin-top: 20px;
    transition: background 0.3s; text-decoration: none;
}
.bylaws-link:hover { background: var(--secondary); color: var(--primary); }

/* --- Services Page --- */
.services-section { margin: 40px 0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.service-card {
    background: white; border-radius: 12px; padding: 30px 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s; text-align: center;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.service-icon { font-size: 2.8rem; color: #9d2f34; margin-bottom: 20px; }
.service-card h3 { color: var(--primary); margin-bottom: 12px; }
.service-card p { color: var(--text-light); margin-bottom: 20px; line-height: 1.5; }
.service-btn {
    display: inline-block; padding: 10px 25px;
    background: var(--primary); color: white !important;
    border-radius: 5px; font-weight: bold; transition: background 0.3s; text-decoration: none;
}
.service-btn:hover { background: var(--secondary); color: var(--primary) !important; }

/* --- Contact Page --- */
.contact-section { margin: 40px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form {
    background: white; border-radius: 12px; padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.contact-form h2 { color: var(--primary); margin-bottom: 20px; font-size: 1.8rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--primary); }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 15px; border: 1px solid var(--border);
    border-radius: 6px; font-family: inherit; font-size: 1rem; transition: border 0.3s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--secondary); }
.form-group textarea { resize: vertical; min-height: 150px; }
.submit-btn {
    background: var(--secondary); color: var(--primary); border: none;
    padding: 12px 30px; border-radius: 6px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: background 0.3s;
}
.submit-btn:hover { background: #b0852e; color: white; }
.contact-info {
    background: white; border-radius: 12px; padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.contact-info h2 { color: var(--primary); margin-bottom: 20px; font-size: 1.8rem; }
.info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.info-icon { font-size: 1.5rem; color: #9d2f34; width: 40px; text-align: center; }
.info-text p { margin-bottom: 5px; color: var(--text-light); }
.map-container {
    margin-top: 30px; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.map-container iframe { width: 100%; height: 250px; border: 0; }
@media (max-width: 768px) { .contact-section { grid-template-columns: 1fr; } }

/* --- FAQ Page --- */
.faq-section { margin: 40px 0; }
.faq-item {
    background: white; border-radius: 8px; margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); overflow: hidden;
}
.faq-question {
    padding: 20px; font-weight: bold; color: var(--primary); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    background: white; border: none; width: 100%; text-align: left; font-size: 1.05rem;
}
.faq-question i { transition: transform 0.3s; }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px; color: var(--text-light);
}
.faq-item.active .faq-answer { max-height: 500px; padding: 0 20px 20px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* --- Awards Page --- */
.awards-section { margin: 40px 0; }
.awards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.award-card {
    background: white; border-radius: 12px; padding: 30px 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; text-align: center;
}
.award-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.award-icon { font-size: 2.8rem; color: #9d2f34; margin-bottom: 20px; }
.award-card h3 { color: var(--primary); margin-bottom: 12px; }
.award-card p { color: var(--text-light); margin-bottom: 20px; line-height: 1.5; }
.award-btn {
    display: inline-block; padding: 10px 25px; background: var(--primary);
    color: white !important; border-radius: 5px; font-weight: bold; transition: background 0.3s; cursor: pointer;
}
.award-btn:hover { background: var(--secondary); color: var(--primary) !important; }

/* --- Content Sections --- */
.content-section {
    background: white; border-radius: 12px; padding: 40px;
    margin: 40px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.content-section h2 { color: var(--primary); margin-bottom: 15px; }
.content-section p { margin-bottom: 20px; color: var(--text-light); }
@media (max-width: 768px) { .content-section { padding: 20px; } }

.content-section-flex {
    display: flex; flex-wrap: wrap; gap: 30px; align-items: center;
    background: white; border-radius: 12px; padding: 40px;
    margin: 40px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.content-text { flex: 1 1 300px; }
.content-text h2 { color: var(--primary); margin-bottom: 20px; }
.content-text p { margin-bottom: 15px; color: var(--text-light); }
.btn-back {
    display: inline-block; margin-top: 20px; background: var(--secondary);
    color: var(--primary); padding: 10px 25px; border-radius: 6px;
    font-weight: bold; transition: background 0.3s; text-decoration: none;
}
.btn-back:hover { background: #b0852e; color: white; }
.content-image { flex: 1 1 300px; text-align: center; }
.content-image i { font-size: 8rem; color: var(--secondary); opacity: 0.8; }
.content-text ul { list-style: none; margin: 15px 0; }
.content-text ul li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.content-text ul li i { color: var(--secondary); width: 20px; }
@media (max-width: 768px) { .content-section-flex { flex-direction: column; text-align: center; } }

/* --- Membership Page --- */
.membership-card {
    background: white; border-radius: 12px; padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06); max-width: 400px; flex: 1 1 300px; text-align: center;
}
.membership-card i { font-size: 2.5rem; color: var(--secondary); margin-bottom: 15px; }
.membership-card h2 { color: var(--primary); margin-bottom: 15px; }
.membership-card p { color: var(--text-light); margin-bottom: 20px; }

/* --- Merchandise Page --- */
.coming-soon {
    margin: 60px auto; max-width: 600px; text-align: center;
    background: white; border-radius: 12px; padding: 60px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.coming-soon i { font-size: 4rem; color: var(--secondary); margin-bottom: 20px; }
.coming-soon h2 { color: var(--primary); font-size: 2rem; margin-bottom: 15px; }
.coming-soon p { color: var(--text-light); font-size: 1.1rem; margin-bottom: 25px; }

/* ====== Two-column Profile Form ====== */
.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
}
.profile-form-grid .form-group.full-width {
    grid-column: 1 / -1;
}
@media (max-width: 768px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
}
.card, .auth-card {
    overflow: hidden;
}

.profile-form-grid .form-group select,
.profile-form-grid .form-group input,
.profile-form-grid .form-group textarea {
    max-width: 100%;
    box-sizing: border-box;
}

/* ====== Page Layout Alignment Rules ====== */

/* Center all main page container blocks */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px;
    padding-right: 20px;
}

/* Full-bleed section headers for inner pages (e.g. Alumni Services, About Us) */
.page-header {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

/* Center grid layouts neatly */
.services-grid,
.events-grid,
.news-list,
.awards-grid,
.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 40px;
}

/* ====== Full-Bleed Section Utility ====== */
.section-full {
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box;
}

/* Specific Full-Width Section Styling */
.stats-section {
    background: var(--primary);
    color: white;
    padding: 50px 0;
    margin: 50px 0;
}

.newsletter-section {
    background: var(--secondary);
    padding: 50px 0;
    margin: 50px 0;
    text-align: center;
}

/* Ensure inner content stays centered inside the full-width wrappers */
.stats-section .container,
.newsletter-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Reset old margins/border-radius on row elements */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.newsletter {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* ====== Centered Auth Page Card Layout ====== */
.auth-section {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: #f8f9fa;
}

.auth-card {
    width: 100%;
    max-width: 580px; /* Constrains form width into a floating card */
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0 auto;
}

.auth-card h2 {
    font-size: 1.8rem;
    color: var(--primary, #800000);
    margin-bottom: 6px;
    text-align: center;
}

.auth-card .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Form controls */
.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary, #800000);
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Submit button */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary, #800000);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #600000;
}

/* Social Login Divider & Buttons */
.divider {
    text-align: center;
    margin: 25px 0 20px;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
    z-index: 1;
}

.divider span {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0 12px;
    color: #888;
    font-size: 0.85rem;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.social-btn:hover {
    background: #f5f5f5;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: #666;
}

.auth-footer a {
    color: var(--primary, #800000);
    font-weight: 600;
    text-decoration: none;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    .auth-card {
        padding: 25px 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .social-buttons {
        grid-template-columns: 1fr;
    }
}
/* FORCE CENTERING AND CARD CONTAINMENT FOR REGISTRATION/LOGIN */
.auth-wrapper {
    width: 100% !important;
    padding: 60px 0 !important;
    background: #f4f6f9 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.auth-wrapper .auth-card {
    max-width: 550px !important;
    width: 100% !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    padding: 40px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
    box-sizing: border-box !important;
}

/* Fix text input full widths inside the card */
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="number"],
.auth-card input[type="password"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* ====== Fixed Sticky Header ====== */
header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background-color: var(--primary, #800000) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Push page content down so the top isn't hidden under the fixed header */
body {
    padding-top: 80px !important; /* Adjust if your header is taller/shorter */
}

/* Ensure full-width hero sections align seamlessly under fixed header */
.hero {
    margin-top: -80px !important; /* Pulls hero image behind transparent/scrolled header if needed */
    padding-top: 80px !important;
}