/* ================================
   BASE STYLES & VARIABLES
   ================================ */

:root {
    --site-header-height: 70px;
    --brand-teal: #03595d;
    --brand-teal-dark: #03454a;
    --brand-green: #20843e;
    --brand-gold: #e6a71b;
    --primary-color: var(--brand-teal);
    --primary-dark: var(--brand-teal-dark);
    --primary-light: #e7f3f0;
    --secondary-color: var(--brand-green);
    --success-color: var(--brand-green);
    --danger-color: #b93832;
    --warning-color: var(--brand-gold);
    --info-color: var(--brand-teal);
    --dark-color: #173c3b;
    --light-color: #f7f9f7;
    --gray-100: #f7f9f7;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --text-color: #263b39;
    --text-light: #5b6d69;
    --text-lighter: #778681;
    --white: #ffffff;
    --black: #000000;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 10px;
    --border-radius-lg: 16px;
    --border-radius-xl: 22px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--site-header-height);
    font-size: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    font-optical-sizing: auto;
    font-kerning: normal;
    font-feature-settings: "kern" 1, "liga" 1;
    text-rendering: optimizeLegibility;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

img,
video,
iframe {
    max-width: 100%;
}

.main-content :is(.services-banner, .event-media, .home-gallery-image-wrap, .doctor-image, .member-image, .founder-image, .partner-image),
.admin-content .admin-photo-image-wrap {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
}

.main-content :is(.services-banner, .event-media, .home-gallery-image-wrap, .doctor-image, .member-image, .founder-image, .partner-image, .hero-bg-slide) > img,
.admin-content .admin-photo-image-wrap > img {
    display: block;
    margin: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
}

.main-content img,
.admin-content img {
    filter: none;
    opacity: 1;
    image-rendering: auto;
}

.event-media-switcher {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: inherit;
    flex-direction: column;
}

.event-media-switcher-tabs {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    padding: 0.45rem;
    background: linear-gradient(180deg, rgba(10, 34, 32, 0.86), rgba(10, 34, 32, 0.42));
}

.event-media-switcher-tabs button {
    min-height: 34px;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
}

.event-media-switcher-tabs button.is-active,
.event-media-switcher-tabs button:hover {
    background: #ffffff;
    color: #03595d;
}

.event-media-switcher-tabs button:focus-visible {
    outline: 3px solid #e6a71b;
    outline-offset: 2px;
}

.event-media-switcher-panel {
    position: relative;
    flex: 1;
    min-height: 0;
}

.event-media-switcher-panel[hidden] {
    display: none !important;
}

.event-media-switcher-panel img,
.event-media-switcher-panel video,
.event-media > .event-video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    background: #102927;
    object-fit: cover;
}

.main-content :is(.doctor-image, .member-image, .founder-image, .partner-image) > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(var(--profile-image-zoom, 1));
    transform-origin: center;
}

.profile-image-preview-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 220px));
    align-items: start;
    gap: 1rem;
}

.profile-image-preview-panel {
    display: grid;
    justify-items: center;
    gap: 0.4rem;
    margin: 0;
}

.profile-image-preview-panel figcaption {
    color: #173c3b;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.profile-image-full-frame,
.profile-avatar-frame {
    width: clamp(160px, 22vw, 220px);
    height: clamp(160px, 22vw, 220px);
    flex: 0 0 auto;
}

.profile-image-full-frame {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #d6e8df;
    border-radius: 12px;
    background: #f1f7f4;
}

.profile-image-full-frame > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-avatar-frame {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 6px solid #ffffff;
    border-radius: 50%;
    outline: 1px solid #d6e8df;
    background: linear-gradient(145deg, #f1faf6, #dceee7);
    box-shadow: 0 12px 28px rgba(18, 59, 57, 0.16);
}

.main-content .profile-avatar-frame {
    display: grid;
    width: clamp(160px, 22vw, 220px);
    height: clamp(160px, 22vw, 220px);
    margin: 0 auto;
    padding: 0;
    border: 6px solid #ffffff;
    border-radius: 50%;
    outline: 1px solid #d6e8df;
    box-shadow: 0 12px 28px rgba(18, 59, 57, 0.16);
    overflow: hidden;
}

.main-content .profile-avatar-frame > img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.admin-image-upload-preview {
    margin-top: 0.75rem;
    padding: 0.8rem;
    border: 1px solid #d6e8df;
    border-radius: 12px;
    background: #f7faf8;
}

.admin-image-upload-preview[hidden] {
    display: none;
}

.admin-image-upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

.admin-image-upload-preview-card {
    min-width: 0;
    padding: 0.7rem;
    border: 1px solid #dce6f3;
    border-radius: 10px;
    background: #ffffff;
}

.admin-image-upload-preview-name {
    margin: 0 0 0.55rem;
    color: #263b39;
    font-size: 0.82rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.admin-image-upload-preview-views {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.admin-image-upload-preview-view {
    min-width: 0;
    margin: 0;
}

.admin-image-upload-preview-view figcaption {
    margin-bottom: 0.3rem;
    color: #5f6b7a;
    font-size: 0.72rem;
    font-weight: 650;
}

.admin-image-upload-preview-frame {
    display: grid;
    width: 100%;
    aspect-ratio: var(--image-preview-ratio, 4 / 3);
    place-items: center;
    overflow: hidden;
    border: 1px solid #d6e8df;
    border-radius: 8px;
    background: #edf4f1;
}

.admin-image-upload-preview-frame img {
    display: block;
    width: 100%;
    height: 100%;
}

.admin-image-upload-preview-frame--full img {
    object-fit: contain;
}

.admin-image-upload-preview-frame--website img {
    object-fit: cover;
}

.admin-image-upload-preview-status {
    margin: 0.55rem 0 0;
    color: #5f6b7a;
    font-size: 0.76rem;
    overflow-wrap: anywhere;
}

.readable-copy.is-clamped {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.read-more-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #03595d;
    cursor: pointer;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.read-more-trigger[hidden] {
    display: none;
}

.read-more-trigger:hover {
    color: #03454a;
}

.read-more-trigger:focus-visible {
    outline: 3px solid #e6a71b;
    outline-offset: 3px;
}

.public-content-reader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: transparent;
    color: #263b39;
}

.public-content-reader[open] {
    display: grid;
    place-items: center;
}

.public-content-reader::backdrop {
    background: rgba(8, 24, 23, 0.76);
    backdrop-filter: blur(4px);
}

.public-content-reader-panel {
    display: flex;
    width: min(100%, 900px);
    height: 100%;
    max-height: 100dvh;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.public-content-reader-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: max(0.9rem, env(safe-area-inset-top)) 1rem 0.85rem;
    border-bottom: 1px solid #dfece7;
    background: #f5faf7;
}

.public-content-reader-header h2 {
    margin: 0;
    color: #173c3b;
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    line-height: 1.2;
}

.public-content-reader-close {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid #c7ddd4;
    border-radius: 999px;
    background: #ffffff;
    color: #173c3b;
    cursor: pointer;
    font-weight: 700;
}

.public-content-reader-close:focus-visible {
    outline: 3px solid #e6a71b;
    outline-offset: 2px;
}

.public-content-reader-body {
    flex: 1;
    overflow: auto;
    padding: clamp(1rem, 4vw, 2rem);
    color: #3c4c49;
    font-size: 1.05rem;
    line-height: 1.75;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    overscroll-behavior: contain;
}

@media (max-height: 600px) {
    .readable-copy.is-clamped {
        -webkit-line-clamp: 4;
    }
}

@media (max-width: 600px) {
    .public-content-reader-panel {
        width: 100%;
    }
}

button,
input,
select,
textarea {
    font: inherit;
}

/* ================================
   TYPOGRAPHY
   ================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', 'Inter', 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
    letter-spacing: -0.02em;
    text-rendering: optimizeLegibility;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

ul, ol {
    list-style: none;
}

/* ================================
   LAYOUT UTILITIES
   ================================ */

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 4rem 0;
}

.section-sm {
    padding: 2rem 0;
}

.section-lg {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }

/* ================================
   HEADER & NAVIGATION
   ================================ */

.header {
    --nav-height: var(--site-header-height);
    background: transparent;
    box-shadow: 0 8px 26px rgba(13, 69, 64, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    isolation: isolate;
    transition: var(--transition);
}

.header > .container {
    position: relative;
    z-index: 1;
}

.header.scrolled {
    box-shadow: 0 8px 26px rgba(13, 69, 64, 0.12);
    padding: 0;
}

.header.is-hidden {
    transform: translateY(calc(-100% - 1px));
    pointer-events: none;
}

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 9997;
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--brand-teal);
    box-shadow: var(--shadow-md);
    color: var(--white);
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top:hover {
    transform: translateY(-2px);
    background: var(--brand-teal-dark);
    box-shadow: var(--shadow-lg);
}

.back-to-top:focus-visible {
    outline: 3px solid var(--brand-gold);
    outline-offset: 3px;
}

.back-to-top[hidden] {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .header,
    .back-to-top {
        transition: none;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 0;
    color: inherit;
    text-decoration: none;
    border-radius: 12px;
}

.logo:hover {
    text-decoration: none;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.logo-image {
    display: block;
    width: auto;
    height: calc(var(--nav-height) - 0.2cm);
    max-height: calc(var(--nav-height) - 0.2cm);
    object-fit: contain;
    object-position: left center;
    max-width: none;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

.logo-text {
    color: var(--dark-color);
    font-family: 'Manrope', 'Inter', 'Segoe UI', sans-serif;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: transparent;
}

.nav-link {
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-dropdown-icon {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-icon,
.nav-dropdown:focus-within .nav-dropdown-icon,
.nav-dropdown.open .nav-dropdown-icon {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    padding: 0.35rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 1200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-item {
    display: block;
    padding: 0.55rem 0.85rem;
    color: inherit;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--gray-200);
    text-decoration: none;
}

.nav-dropdown-item:last-child {
    border-bottom: none;
}

.nav-dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.admin-link {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    transition: var(--transition);
}

.nav-link.admin-link:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.nav-link.admin-link::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* ================================
   ALERTS & MESSAGES
   ================================ */

.alert {
    padding: 1rem;
    margin-bottom: 0;
    border-left: 4px solid;
    position: relative;
    margin-top: 60px;
}

.alert-success {
    background-color: #d4edda;
    border-color: var(--success-color);
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: var(--danger-color);
    color: #721c24;
}

.alert-warning {
    background-color: #fff9db;
    border-color: var(--warning-color);
    color: #705b08;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: var(--info-color);
    color: #0c5460;
}

.alert-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: var(--transition);
}

.alert-close:hover {
    opacity: 1;
}

/* ================================
   MAIN CONTENT
   ================================ */

.main-content {
    margin-top: var(--site-header-height);
    min-height: calc(100vh - 250px);
}

/* ================================
   BUTTONS
   ================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    user-select: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: #176f3b;
    text-decoration: none;
}

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

.btn-success:hover {
    background: #176f3b;
    text-decoration: none;
}

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

.btn-danger:hover {
    background: #c82333;
    text-decoration: none;
}

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

.btn-outline:hover {
    background: var(--primary-light);
    text-decoration: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ================================
   FORMS
   ================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(8, 122, 118, 0.14);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
}

.form-error {
    border-color: var(--danger-color) !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.form-error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ================================
   CARDS
   ================================ */

.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 28px rgba(24, 67, 59, 0.08);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-header {
    padding: 1.5rem;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ================================
   GRID SYSTEM
   ================================ */

.row {
    display: grid;
    gap: 2rem;
}

.col-1 { grid-template-columns: repeat(1, 1fr); }
.col-2 { grid-template-columns: repeat(2, 1fr); }
.col-3 { grid-template-columns: repeat(3, 1fr); }
.col-4 { grid-template-columns: repeat(4, 1fr); }
.col-5 { grid-template-columns: repeat(5, 1fr); }
.col-6 { grid-template-columns: repeat(6, 1fr); }

/* ================================
   FOOTER
   ================================ */

.footer {
    background: #123b39;
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

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

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

.footer-section p {
    color: #bbb;
    margin-bottom: 0.5rem;
}

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

.footer-section a {
    color: #bbb;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-contact-actions {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.55rem;
    max-width: 260px;
}

.footer-contact-btn {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 8px;
    padding: 0.62rem 0.8rem;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.footer-contact-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.24) 50%, transparent 100%);
    transition: left 0.35s ease;
}

.footer-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
    filter: brightness(1.04);
}

.footer-contact-btn:hover::after {
    left: 100%;
}

.footer-contact-btn:active {
    transform: translateY(0);
}

.footer-contact-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.footer-contact-btn-emergency {
    background: linear-gradient(135deg, var(--brand-gold) 0%, #d9ad10 100%);
    color: #173c3b;
}

.footer-contact-btn-care {
    background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-dark) 100%);
}

.footer-contact-btn-alternate {
    background: linear-gradient(135deg, #f8eab2 0%, #efd779 100%);
    color: #173c3b;
}

.emergency-dial-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.emergency-dial-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #f1b6b2;
    border-radius: 10px;
    background: #fff5f4;
    color: #a3211a;
    font-weight: 750;
    text-decoration: none;
}

.emergency-dial-link:hover,
.emergency-dial-link:focus-visible {
    background: #fee7e5;
    color: #861b16;
    text-decoration: none;
}

.emergency-dial-link-secondary {
    border-color: #d7e4dc;
    background: #f4f8f5;
    color: #245c46;
}

#commWidgetBtn {
    width: 64px !important;
    height: 64px !important;
    box-shadow: 0 12px 30px rgba(3, 69, 74, 0.3) !important;
}

#commWidgetBtn:hover {
    box-shadow: 0 16px 36px rgba(3, 69, 74, 0.38) !important;
    transform: translateY(-2px) scale(1.03) !important;
}

#commWidgetPanel {
    width: min(500px, calc(100vw - 2rem)) !important;
    height: min(84dvh, 780px) !important;
    max-height: calc(100dvh - 2rem) !important;
    border: 1px solid rgba(3, 89, 93, 0.12) !important;
    border-radius: 22px !important;
    box-shadow: 0 28px 80px rgba(10, 36, 39, 0.28) !important;
}

#commWidgetPanel > div:first-child {
    padding: 1.1rem 1.25rem !important;
    border-radius: 21px 21px 0 0 !important;
}

#commWidgetPanel > div:first-child h3 {
    font-size: 1.04rem !important;
    letter-spacing: 0.01em;
}

#commWidgetPanel > div:nth-child(2) {
    gap: 0.25rem;
    padding: 0.5rem 0.75rem 0 !important;
    background: #f8fbf9;
}

#commWidgetPanel .commTab {
    min-height: 48px;
    border-radius: 10px 10px 0 0;
    color: #637574 !important;
    font-weight: 700 !important;
}

#commWidgetPanel .commTab[data-active="true"] {
    color: #03595d !important;
    border-bottom-color: #03595d !important;
    background: #fff !important;
}

#commWidgetContent {
    padding: 1.15rem !important;
    background: #fff;
}

#commTabMessage #messageForm > div {
    margin-bottom: 0.95rem !important;
}

#messageForm label {
    margin-bottom: 0.42rem !important;
    color: #274543 !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
}

#messageForm input,
#messageForm select,
#messageForm textarea,
#messageReplyForm textarea {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 46px;
    padding: 0.72rem 0.82rem !important;
    border: 1px solid #d5e1dd !important;
    border-radius: 10px !important;
    background: #fbfdfc;
    color: #173c3b;
    font: inherit !important;
    font-size: 0.92rem !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#messageForm textarea,
#messageReplyForm textarea {
    min-height: 118px !important;
    resize: vertical;
    line-height: 1.55;
}

#messageForm input:focus,
#messageForm select:focus,
#messageForm textarea:focus,
#messageReplyForm textarea:focus {
    border-color: #238184 !important;
    outline: 0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(3, 89, 93, 0.13);
}

.comm-message-hint {
    display: block;
    margin-top: 0.4rem;
    color: #657b78;
    font-size: 0.76rem;
    line-height: 1.45;
}

#messageForm button[type="submit"],
#messageReplyForm button[type="submit"] {
    min-height: 48px;
    border-radius: 11px !important;
    background: linear-gradient(135deg, #08767a, #03454a) !important;
    box-shadow: 0 8px 18px rgba(3, 89, 93, 0.18);
    font-weight: 750 !important;
}

#messageForm button[type="submit"]:hover,
#messageReplyForm button[type="submit"]:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

#messageConversationPanel {
    overflow: hidden;
    border-color: #d5e5de !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 28px rgba(25, 67, 58, 0.08);
}

#messageConversationThread {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 300px !important;
    overscroll-behavior: contain;
}

#messageReplyForm {
    border-top-color: #e4ece8 !important;
}

#callBusyActions {
    border-radius: 14px !important;
}

@media (max-width: 560px) {
    .emergency-dial-options {
        grid-template-columns: 1fr;
    }

    #commWidget {
        right: 14px !important;
        bottom: 84px !important;
    }

    #commWidgetPanel {
        inset: 0.5rem !important;
        width: auto !important;
        height: calc(100dvh - 1rem) !important;
        max-height: calc(100dvh - 1rem) !important;
        border-radius: 18px !important;
    }

    #commWidgetPanel > div:first-child {
        border-radius: 17px 17px 0 0 !important;
    }

    #commWidgetContent {
        padding: 0.9rem !important;
    }

    #messageConversationThread {
        max-height: min(32dvh, 260px) !important;
    }

    .footer-contact-actions {
        max-width: none;
    }
}

.admin-incoming-call[hidden] {
    display: none;
}

.admin-incoming-call {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.62);
}

.admin-incoming-call-card {
    width: min(100%, 430px);
    padding: 1.5rem;
    border: 1px solid #d6e8df;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
}

.admin-incoming-call-heading {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.admin-incoming-call-heading h2 {
    margin: 0;
    color: #173c3b;
    font-size: 1.2rem;
}

.admin-incoming-call-heading p {
    margin: 0.4rem 0 0;
    color: #5f6b7a;
}

.admin-call-indicator {
    width: 14px;
    height: 14px;
    margin-top: 0.3rem;
    border-radius: 50%;
    background: #20843e;
    box-shadow: 0 0 0 7px #e8f3ee;
    animation: adminCallPulse 1.25s infinite;
}

.admin-incoming-call-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.admin-incoming-call-actions button {
    flex: 1;
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.admin-call-answer {
    background: #20843e;
}

.admin-call-reject {
    background: #b42318;
}

#adminCallStatus {
    margin: 0.8rem 0 0;
    color: #5f6b7a;
}

@keyframes adminCallPulse {
    50% { box-shadow: 0 0 0 11px rgba(32, 132, 62, 0.08); }
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    text-decoration: none;
}

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

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (min-width: 1281px) {
    .container {
        max-width: 1280px;
        padding: 0 30px;
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .container {
        max-width: 1160px;
        padding: 0 24px;
    }

    .nav-menu {
        gap: 1.15rem;
    }

    .nav-link {
        font-size: 0.95rem;
    }

}

@media (max-width: 1024px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.65rem; }
    h3 { font-size: 1.3rem; }

    .container {
        padding: 0 18px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        z-index: 2;
        background: transparent;
        border-bottom: none;
        padding: 0.95rem;
        gap: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 0.72rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    }

    .nav-dropdown {
        width: 100%;
        display: block;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        margin: 0 0.5rem 0.6rem;
        border-radius: 8px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        display: none;
        background: transparent;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-item {
        padding: 0.58rem 0.72rem;
        color: inherit;
        border-bottom-color: rgba(255, 255, 255, 0.2);
    }

    .nav-link::after {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-6 {
        grid-template-columns: repeat(1, 1fr);
    }

    .section,
    .section-lg {
        padding: 2.5rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    :root {
        --site-header-height: 68px;
    }

    .container {
        max-width: 960px;
        padding: 0 20px;
    }

    .header-content {
        padding: 0;
    }

    .main-content {
        margin-top: var(--site-header-height);
    }

    .nav-menu {
        top: 68px;
        max-height: calc(100vh - 68px);
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .section,
    .section-lg {
        padding: 2.7rem 0;
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .section,
    .section-lg {
        padding: 2.35rem 0;
    }

    .footer {
        margin-top: 4rem;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    :root {
        --site-header-height: 64px;
    }

    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.55rem; }
    h3 { font-size: 1.22rem; }

    .container {
        padding: 0 14px;
    }

    .header-content {
        padding: 0;
    }

    .main-content {
        margin-top: var(--site-header-height);
    }

    .nav-menu {
        top: 64px;
        max-height: calc(100vh - 64px);
        padding: 0.9rem;
    }
}

@media (max-width: 480px) {
    :root {
        --site-header-height: 60px;
    }

    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.45rem; }
    h3 { font-size: 1.15rem; }

    .header-content {
        padding: 0;
    }

    .logo {
        gap: 0;
    }

    .container {
        padding: 0 12px;
    }

    .main-content {
        margin-top: var(--site-header-height);
    }

    .nav-menu {
        top: 60px;
        max-height: calc(100vh - 60px);
        padding: 0.82rem;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.68rem 0.54rem;
    }

    .btn {
        white-space: normal;
        padding: 0.68rem 1rem;
        font-size: 0.95rem;
    }

    .footer-contact-actions {
        max-width: 100%;
    }
}

/* ================================
   ANIMATIONS
   ================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-in {
    animation: slideIn 0.5s ease forwards;
}

.slide-in-up {
    animation: slideInUp 0.5s ease forwards;
}

/* ================================
   UTILITY CLASSES
   ================================ */

.d-none {
    display: none !important;
}

.d-inline {
    display: inline !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

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

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.cursor-pointer {
    cursor: pointer;
}

.text-muted {
    color: var(--text-lighter);
}

.text-primary {
    color: var(--primary-color);
}

.text-success {
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color);
}

.bg-light {
    background-color: var(--light-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

/* ================================
   ACCESSIBILITY
   ================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

/* ================================
   PRINT STYLES
   ================================ */

@media print {
    .header,
    .footer,
    .mobile-menu-toggle,
    .admin-link {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}
