:root {
    --primary-color: #6d1915; /* Claret/Maroon */
    --secondary-color: #ffffff; /* White */
    --accent-color: #f8f9fa;
    --text-color: #333;
    --light-text: #666;
    --navbar-height: 80px;
}

html {
  font-size: 16px;
  height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 18px;
  }
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

/* Ensure the main content container expands to push footer to bottom */
body > div.container-fluid.p-0 {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1320px;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0.75rem 0;
    min-height: var(--navbar-height);
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-color) !important;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 45px;
    margin-right: 12px;
}

.nav-link {
    font-weight: 600;
    color: var(--primary-color) !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    opacity: 0.8;
}

/* Dropdown styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.dropdown-item {
    font-weight: 500;
    color: var(--text-color);
    padding: 0.6rem 1.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: var(--primary-color);
}

.hero-section {
    position: relative;
    background: linear-gradient(rgba(109, 25, 21, 0.7), rgba(109, 25, 21, 0.7)), url('/images/mcc_logo.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 0;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.25rem;
    letter-spacing: -1.5px;
    font-weight: 800;
}

.section-padding {
    padding: 60px 0;
}

.bg-light-red {
    background-color: #fdf5f5;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #5a1411;
    border-color: #5a1411;
    transform: translateY(-2px);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 6px;
}

.footer {
    background-color: var(--primary-color);
    padding: 40px 0 20px;
    color: #fff;
    border-top: 5px solid #fff;
}

.footer a {
    color: #ffffff !important;
    text-decoration: none;
    opacity: 0.85;
    transition: all 0.2s;
}

.footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer h5 {
    color: #fff;
    margin-bottom: 1.25rem;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
}

.section-banner {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: cover;
}

.membership-card {
    border-top: 5px solid var(--primary-color) !important;
}

.img-shadow {
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
/* Content Area Tables (for Quill output) */
.card-text table, 
.news-content table, 
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.card-text table td, .card-text table th,
.news-content table td, .news-content table th,
.page-content table td, .page-content table th {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    vertical-align: top;
}
.card-text table th,
.news-content table th,
.page-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.ls-wide {
    letter-spacing: 1px;
}

.sponsor-logo {
    max-height: 50px;
    width: auto;
}

.grayscale-hover {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.grayscale-hover:hover {
    filter: grayscale(0%);
    opacity: 1;
}
