/* ==========================================================================
   COPLER FOUNDATION — Stylesheet
   Christus Omnibus Praeest | Christ Above All
   Serve • Build • Restore
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand palette */
    --red: #9A2324;
    --red-dark: #7F1C1D;
    --red-darker: #6B1718;
    --gray-dark: #736D6D;
    --gray-light: #B59D9D;
    --off-white: #E6DFDE;
    --white: #FFFFFF;

    /* UI palette */
    --text: #333333;
    --text-secondary: #736D6D;
    --bg: #FFFFFF;
    --bg-section: #F7F7F7;
    --bg-alt: #E6DFDE;
    --border: #DDDDDD;
    --border-light: #ECECEC;

    /* Typography */
    --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing */
    --container: 1200px;
    --container-narrow: 820px;
    --section-pad: 5rem;
    --section-pad-sm: 3rem;

    /* Radius */
    --radius: 8px;
    --radius-lg: 16px;
    --radius-sm: 4px;

    /* Shadows — subtle, no blur-heavy */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --t-fast: 150ms ease;
    --t: 250ms ease;
    --t-slow: 400ms ease;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--red);
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover {
    color: var(--red-dark);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

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

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

.text-gray {
    color: var(--gray-dark);
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    width: 100%;
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-pad) 0;
}

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

.section-alt {
    background: var(--bg-section);
}

.section-off-white {
    background: var(--off-white);
}

.section-dark {
    background: #2B2B2B;
    color: #D0D0D0;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

/* --------------------------------------------------------------------------
   5. Section Header
   -------------------------------------------------------------------------- */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.section-header .eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.section-header .divider {
    width: 50px;
    height: 3px;
    background: var(--red);
    margin: 1.25rem auto 0;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--t);
    cursor: pointer;
    text-align: center;
    line-height: 1.4;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

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

.btn-outline:hover {
    background: var(--red);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--red);
    border: 2px solid var(--white);
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-ghost:hover {
    border-color: var(--gray-dark);
    color: var(--gray-dark);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   7. Navigation
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow var(--t);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    height: 56px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text .logo-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--red);
    letter-spacing: 0.02em;
}

.logo-text .logo-sub {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--gray-dark);
    text-transform: uppercase;
    margin-top: 2px;
}

/* Nav menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: color var(--t-fast), background var(--t-fast);
    text-decoration: none;
}

.nav-link:hover {
    color: var(--red);
    background: var(--bg-section);
}

.nav-link.active {
    color: var(--red);
    font-weight: 600;
}

.nav-cta {
    margin-left: 0.75rem;
}

/* Nav dropdowns (desktop) */
.nav-dropdown {
    position: relative;
}

.nav-dropdown__trigger::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    margin-left: 0.4rem;
    opacity: 0.5;
    transition: transform var(--t-fast);
}

.nav-dropdown:hover .nav-dropdown__trigger::after {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-dropdown__menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown__item {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--t-fast);
}

.nav-dropdown__item:hover {
    color: var(--red);
    background: var(--bg-section);
}

/* Mobile-only links — hidden on desktop, shown in hamburger menu */
.nav-mobile-only {
    display: none;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--t);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding-top: 72px;
    background: var(--off-white);
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 72px);
    padding: 4rem 0;
}

.hero-content {
    max-width: 640px;
}

.hero-latin {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

.hero-latin .pillars {
    display: block;
    font-style: normal;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-top: 0.3rem;
    color: var(--red);
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero h1 .accent {
    color: var(--red);
}

.hero .lead {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero visual — image panel */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-visual svg {
    width: 100%;
    max-width: 480px;
}

.hero-image {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* Hero stats bar */
.hero-stats {
    background: var(--white);
    border-top: 1px solid var(--border-light);
}

.hero-stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    border-right: 1px solid var(--border-light);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

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

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card-icon.red {
    background: rgba(154, 35, 36, 0.08);
}

.card-icon.red svg {
    color: var(--red);
}

.card-icon.gray svg {
    color: var(--gray-dark);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: -1.5rem -1.5rem 1.25rem;
    width: calc(100% + 3rem);
}

.card h3 {
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* --------------------------------------------------------------------------
   10. Pillar Cards
   -------------------------------------------------------------------------- */
.pillar-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t);
}

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

.pillar-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.pillar-header.red {
    background: var(--red);
    color: var(--white);
}

.pillar-header.gray {
    background: var(--gray-dark);
    color: var(--white);
}

.pillar-header.light {
    background: var(--off-white);
    color: var(--text);
}

.pillar-latin {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.pillar-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

.pillar-body {
    padding: 2rem;
}

.pillar-body p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.pillar-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pillar-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text);
}

.pillar-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   11. Values
   -------------------------------------------------------------------------- */
.value-item {
    text-align: center;
    padding: 1.5rem;
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    border-radius: 50%;
}

.value-icon svg {
    width: 30px;
    height: 30px;
    color: var(--red);
}

.value-item h4 {
    margin-bottom: 0.5rem;
}

.value-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   12. Programme Cards
   -------------------------------------------------------------------------- */
.programme-card {
    display: flex;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--t), transform var(--t);
}

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

.programme-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    flex-shrink: 0;
}

.programme-content {
    padding: 2rem;
    flex: 1;
}

.programme-content h3 {
    margin-bottom: 0.75rem;
}

.programme-content > p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-dark);
    background: var(--bg-section);
    border: 1px solid var(--border-light);
    border-radius: 20px;
}

/* --------------------------------------------------------------------------
   13. Institution Cards
   -------------------------------------------------------------------------- */
.institution-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform var(--t), box-shadow var(--t);
}

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

.institution-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    border-radius: 50%;
}

.institution-icon svg {
    width: 36px;
    height: 36px;
    color: var(--red);
}

.institution-card h3 {
    margin-bottom: 0.75rem;
}

.institution-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   14. CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner {
    background: var(--red);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 580px;
    margin: 0 auto 2rem;
}

.cta-banner .btn-white:hover {
    background: var(--white);
    color: var(--red);
}

/* --------------------------------------------------------------------------
   15. Forms
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.form-group label .required {
    color: var(--red);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(154, 35, 36, 0.12);
}

.form-control::placeholder {
    color: #AAA;
}

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

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23736D6D' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

/* --------------------------------------------------------------------------
   16. Contact Info
   -------------------------------------------------------------------------- */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    border-radius: 10px;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 22px;
    height: 22px;
    color: var(--red);
}

.contact-info-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-info-item p,
.contact-info-item a {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-info-item a:hover {
    color: var(--red);
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.footer {
    background: #1F1F1F;
    color: #B0B0B0;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #333;
}

.footer-brand .logo-mark {
    height: 80px;
}

.footer-brand .logo-text .logo-name {
    color: var(--white);
}

.footer-brand p {
    font-size: 0.9rem;
    color: #999;
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: #999;
    text-decoration: none;
    transition: color var(--t-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact-item {
    display: flex;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--gray-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-item a {
    color: #999;
}

.footer-contact-item a:hover {
    color: var(--white);
}

/* Newsletter in footer */
.footer-newsletter {
    margin-top: 1.25rem;
}

.footer-newsletter form {
    display: flex;
    gap: 0.5rem;
}

.footer-newsletter input {
    flex: 1;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    background: #2A2A2A;
    border: 1px solid #3A3A3A;
    border-radius: var(--radius-sm);
    color: var(--white);
}

.footer-newsletter input:focus {
    outline: none;
    border-color: var(--gray-light);
}

.footer-newsletter input::placeholder {
    color: #777;
}

.footer-newsletter button {
    padding: 0.65rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--red);
    color: var(--white);
    border-radius: var(--radius-sm);
    transition: background var(--t-fast);
    white-space: nowrap;
}

.footer-newsletter button:hover {
    background: var(--red-dark);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: #777;
}

.footer-bottom a {
    color: #999;
}

.footer-latin {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--gray-light);
}

/* --------------------------------------------------------------------------
   18. Page Hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
    padding-top: 72px;
    background: var(--off-white);
    text-align: center;
}

.page-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 1.5rem 3.5rem;
}

.page-hero .eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.page-hero h1 {
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--red);
}

.breadcrumb span {
    color: var(--gray-light);
}

/* --------------------------------------------------------------------------
   19. Content Blocks
   -------------------------------------------------------------------------- */
.content-block {
    max-width: 760px;
    margin: 0 auto;
}

.content-block h2 {
    margin-bottom: 1rem;
}

.content-block h3 {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.content-block p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.content-block ul.bullet-list {
    list-style: none;
    margin: 1rem 0 1.5rem;
}

.content-block ul.bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
}

.content-block ul.bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 2px;
    background: var(--red);
}

/* Two-column layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.two-col--reverse {
    grid-template-columns: 1fr 1fr;
}

.two-col--reverse .two-col-visual {
    order: 2;
}

.two-col--reverse > div:not(.two-col-visual) {
    order: 1;
}

.two-col-text h2 {
    margin-bottom: 1.25rem;
}

.two-col-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.two-col-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.two-col-visual svg {
    width: 100%;
    max-width: 400px;
}

.two-col-image {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   20. Approach / Integration
   -------------------------------------------------------------------------- */
.integration-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
}

.integration-item {
    text-align: center;
    padding: 1.5rem 0.75rem;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: border-color var(--t), transform var(--t);
}

.integration-item:hover {
    border-color: var(--red);
    transform: translateY(-2px);
}

.integration-item svg {
    width: 28px;
    height: 28px;
    color: var(--red);
    margin: 0 auto 0.75rem;
}

.integration-item span {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

/* --------------------------------------------------------------------------
   21. Get Involved Cards
   -------------------------------------------------------------------------- */
.involve-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform var(--t), box-shadow var(--t);
    height: 100%;
}

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

.involve-card .card-icon {
    margin: 0 auto 1.25rem;
}

.involve-card h3 {
    margin-bottom: 0.75rem;
}

.involve-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   22. Alert / Toast
   -------------------------------------------------------------------------- */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    padding: 1rem 1.5rem;
    background: var(--text);
    color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    max-width: 380px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--t), transform var(--t);
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: #1B7A3E;
}

.toast.error {
    background: var(--red);
}

/* --------------------------------------------------------------------------
   23. Animations
   -------------------------------------------------------------------------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up:nth-child(2) {
    transition-delay: 0.1s;
}

.fade-up:nth-child(3) {
    transition-delay: 0.2s;
}

.fade-up:nth-child(4) {
    transition-delay: 0.3s;
}

/* --------------------------------------------------------------------------
   24. Quote Block
   -------------------------------------------------------------------------- */
.quote-block {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 0;
}

.quote-block blockquote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.quote-block blockquote::before {
    content: "\201C";
    font-size: 3rem;
    color: var(--red);
    line-height: 0;
    vertical-align: -0.4em;
    margin-right: 0.1em;
}

.quote-block cite {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-style: normal;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   25. Gallery — Masonry Grid + Lightbox
   -------------------------------------------------------------------------- */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.gallery-filter {
    padding: 0.5rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--t-fast);
}

.gallery-filter:hover {
    border-color: var(--gray-dark);
    color: var(--text);
}

.gallery-filter.is-active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.gallery-grid {
    column-count: 3;
    column-gap: 1rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-section);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity var(--t);
}

.gallery-item:hover .gallery-item__overlay,
.gallery-item:focus .gallery-item__overlay {
    opacity: 1;
}

.gallery-item__category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--red);
    padding: 0.2rem 0.7rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.gallery-item__caption {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t);
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox__img {
    max-width: 85vw;
    max-height: 80vh;
    border-radius: var(--radius);
    object-fit: contain;
}

.lightbox__caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    max-width: 600px;
    padding: 0 1rem;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    line-height: 1;
    transition: color var(--t-fast), transform var(--t-fast);
    z-index: 3001;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    color: var(--gray-light);
}

.lightbox__close {
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
}

.lightbox__prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}

.lightbox__next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}

.lightbox__prev:hover {
    transform: translateY(-50%) translateX(-4px);
}

.lightbox__next:hover {
    transform: translateY(-50%) translateX(4px);
}

@media (max-width: 860px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 0.5rem;
    }

    .gallery-item__overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%);
    }

    .lightbox__prev,
    .lightbox__next {
        font-size: 2rem;
        padding: 0.5rem;
    }

    .lightbox__close {
        font-size: 2rem;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* --------------------------------------------------------------------------
   26. Blog / Resource Center
   -------------------------------------------------------------------------- */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.blog-filter {
    padding: 0.5rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    text-decoration: none;
    transition: all var(--t-fast);
}

.blog-filter:hover {
    border-color: var(--gray-dark);
    color: var(--text);
}

.blog-filter.is-active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow var(--t), transform var(--t);
}

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

.blog-card__image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-section);
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

.blog-card__category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--red);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
}

.blog-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.blog-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-card:hover .blog-card__title {
    color: var(--red);
}

.blog-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.blog-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-dark);
    background: var(--off-white);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
}

.blog-card__readmore {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--red);
    margin-top: auto;
}

/* Article detail page */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.article-main {
    max-width: 760px;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.article-meta i {
    margin-right: 0.3rem;
}

.article-image {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bg-section);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.article-list {
    margin: 0 0 1.5rem 1.5rem;
    padding-left: 1rem;
}

.article-list li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.article-content strong {
    color: var(--text);
    font-weight: 700;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.article-share span:first-child {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.article-share .social-link {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    background: var(--off-white);
    color: var(--gray-dark);
    border: 1px solid var(--border);
}

.article-share .social-link:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.article-back {
    margin-top: 2rem;
}

.article-back a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
}

.article-back a:hover {
    text-decoration: underline;
}

/* Article sidebar */
.article-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}

.sidebar-block {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-block h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 0.5rem;
}

.sidebar-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--t-fast);
}

.sidebar-links a:hover {
    color: var(--red);
}

.sidebar-cta {
    background: var(--off-white);
    border-color: var(--border);
}

.sidebar-cta p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   27. Misc
   -------------------------------------------------------------------------- */

/* Social Links */
.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.social-links--centered {
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all var(--t-fast);
}

/* Footer variant — dark background, light icons */
.footer .social-link {
    background: rgba(255, 255, 255, 0.08);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer .social-link:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    transform: translateY(-2px);
}

/* Light background variant (contact, about pages) */
.social-links--dark .social-link {
    background: var(--off-white);
    color: var(--gray-dark);
    border: 1px solid var(--border);
}

.social-links--dark .social-link:hover,
.social-links--centered .social-link {
    background: var(--off-white);
    color: var(--gray-dark);
    border: 1px solid var(--border);
}

.social-links--centered .social-link:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    transform: translateY(-2px);
}

.divider-line {
    width: 100%;
    height: 1px;
    background: var(--border-light);
    margin: 3rem 0;
}

.spacer-lg {
    height: 3rem;
}

.bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}

/* --------------------------------------------------------------------------
   26. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .integration-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 860px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        padding: 1rem 1.5rem 2rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--t), opacity var(--t);
        gap: 0;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        padding: 0.85rem 0.5rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-light);
        border-radius: 0;
    }

    .nav-link:last-of-type {
        border-bottom: none;
    }

    /* Hide desktop dropdowns on mobile */
    .nav-dropdown__menu {
        display: none;
    }

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

    /* Show mobile-only links in hamburger menu */
    .nav-mobile-only {
        display: block;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 0.75rem;
    }

    .nav-cta .btn {
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-content {
        max-width: 100%;
    }

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

    .hero-visual svg,
    .hero-image {
        max-width: 320px;
    }

    .hero-stats-inner {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-item {
        padding: 1.25rem 0.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

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

    .two-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .two-col-visual {
        order: -1;
    }

    .two-col--reverse .two-col-visual {
        order: -1;
    }

    .two-col--reverse > div:not(.two-col-visual) {
        order: 0;
    }

    .two-col-visual svg,
    .two-col-image {
        max-width: 320px;
    }

    .programme-card {
        flex-direction: column;
    }

    .programme-number {
        width: 100%;
        height: 60px;
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .integration-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    :root {
        --section-pad: 3rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero-stats-inner {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-item {
        padding: 1rem 0.25rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .integration-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card,
    .pillar-body,
    .programme-content,
    .institution-card {
        padding: 1.5rem;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }

    .quote-block blockquote {
        font-size: 1.2rem;
    }
}

/* --------------------------------------------------------------------------
   27. Accessibility
   -------------------------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.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;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-up {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   28. Print
   -------------------------------------------------------------------------- */
@media print {
    .navbar,
    .nav-toggle,
    .footer,
    .cta-banner,
    .toast {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   29. Admin Dashboard
   -------------------------------------------------------------------------- */

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 900;
    text-decoration: none;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 12px rgba(37, 211, 102, 0); }
}

@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
}

/* Login page */
.admin-login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-section);
    padding: 1.5rem;
}

.admin-login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.admin-login-logo {
    width: 80px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    border-radius: var(--radius);
}

.admin-login-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.admin-login-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.admin-login-error {
    background: rgba(154, 35, 36, 0.08);
    border: 1px solid rgba(154, 35, 36, 0.2);
    color: var(--red);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.admin-login-form {
    text-align: left;
}

.admin-login-form .form-group {
    margin-bottom: 1.25rem;
}

.admin-login-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.admin-login-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--t-fast);
}

.admin-login-form input:focus {
    outline: none;
    border-color: var(--red);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.admin-login-back {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.admin-login-back:hover {
    color: var(--red);
}

/* Admin layout */
.admin-body {
    background: #f5f3f2;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 250px;
    background: var(--gray-dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    transition: transform var(--t);
}

.admin-sidebar__header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo {
    display: block;
}

.admin-logo__img {
    height: 40px;
    width: auto;
    border-radius: var(--radius-sm);
}

.admin-sidebar__close {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
}

.admin-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.admin-nav__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--t-fast);
}

.admin-nav__link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.admin-nav__link.is-active {
    color: var(--white);
    background: var(--red);
}

.admin-nav__link i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.admin-nav__link--danger:hover {
    color: #ff6b6b;
}

.admin-sidebar__footer {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Overlay */
.admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--t);
}

.admin-overlay.is-visible {
    display: block;
    opacity: 1;
}

/* Main content */
.admin-main {
    flex: 1;
    margin-left: 250px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-topbar__toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text);
    cursor: pointer;
    padding: 0.25rem;
}

.admin-topbar__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.admin-content {
    padding: 2rem 1.5rem;
    flex: 1;
}

/* Stats grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.admin-stat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.admin-stat-card__icon--red { background: rgba(154, 35, 36, 0.1); color: var(--red); }
.admin-stat-card__icon--blue { background: rgba(30, 100, 200, 0.1); color: #1e64c8; }
.admin-stat-card__icon--green { background: rgba(34, 139, 34, 0.1); color: #228822; }
.admin-stat-card__icon--purple { background: rgba(128, 0, 128, 0.1); color: #800080; }
.admin-stat-card__icon--orange { background: rgba(255, 140, 0, 0.1); color: #ff8c00; }
.admin-stat-card__icon--teal { background: rgba(0, 128, 128, 0.1); color: #008080; }

.admin-stat-card__body {
    flex: 1;
}

.admin-stat-card__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.admin-stat-card__label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.admin-stat-card__link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
    width: 100%;
}

.admin-stat-card__link:hover {
    text-decoration: underline;
}

/* Panels */
.admin-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.admin-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.admin-panel__header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-panel__header h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.admin-panel__header a:not(.btn) {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
}

.admin-panel__body {
    padding: 1.5rem;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.admin-table th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: var(--bg-section);
}

.admin-table a:not(.btn) {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
}

.admin-table__truncate {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-table__actions {
    white-space: nowrap;
    display: flex;
    gap: 0.4rem;
}

/* Tags */
.admin-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gray-dark);
    background: var(--off-white);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
}

/* Forms */
.admin-form .form-group {
    margin-bottom: 1.25rem;
}

/* Image upload with preview */
.image-upload {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.image-preview {
    width: 200px;
    height: 130px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-section);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview__placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.image-preview__placeholder i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.4rem;
}

.image-preview__placeholder span {
    font-size: 0.8rem;
}

.image-upload__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.25rem;
}

.image-upload__status {
    font-size: 0.82rem;
    font-weight: 500;
}

.image-upload__status--loading { color: var(--text-secondary); }
.image-upload__status--success { color: #228822; }
.image-upload__status--error { color: var(--red); }

@media (max-width: 600px) {
    .image-upload {
        flex-direction: column;
    }

    .image-preview {
        width: 100%;
        height: 160px;
    }
}

.admin-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color var(--t-fast);
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: var(--red);
}

.admin-form textarea {
    resize: vertical;
    line-height: 1.6;
}

.admin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.admin-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Buttons */
.btn-danger {
    background: var(--red);
    color: var(--white);
    border: 1px solid var(--red);
}

.btn-danger:hover {
    background: #7a1a1b;
    border-color: #7a1a1b;
}

.btn-sm {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
}

.admin-form .btn-outline,
.admin-panel__header .btn-outline,
.admin-panel__body .btn-outline,
.admin-form-actions .btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.admin-form .btn-outline:hover,
.admin-panel__header .btn-outline:hover,
.admin-panel__body .btn-outline:hover,
.admin-form-actions .btn-outline:hover {
    border-color: var(--gray-dark);
    background: var(--bg-section);
}

/* Empty state */
.admin-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.admin-empty a {
    color: var(--red);
    font-weight: 600;
}

/* Gallery grid in admin */
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.admin-gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.admin-gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.admin-gallery-item__info {
    padding: 0.75rem;
}

.admin-gallery-item__category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--red);
}

.admin-gallery-item__info p {
    font-size: 0.82rem;
    color: var(--text);
    margin-top: 0.25rem;
}

.admin-gallery-item__delete {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.admin-gallery-item__actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.3rem;
}

.admin-gallery-item__actions .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Tabs */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--t-fast);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-tab:hover {
    border-color: var(--gray-dark);
    color: var(--text);
}

.admin-tab.is-active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

/* Admin responsive */
@media (max-width: 860px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .admin-sidebar__close {
        display: block;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-topbar__toggle {
        display: block;
    }

    .admin-panels {
        grid-template-columns: 1fr;
    }

    .admin-form-row {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table__truncate {
        max-width: 120px;
    }

    .admin-content {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 600px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
