/**
 * Amity Conflict Specialists / AmityArt
 * Wine/Burgundy, Warm Cream & White Color Scheme
 */

/* CSS Variables */
:root {
    --primary-white: #ffffff;
    --secondary-white: #f9fafb;
    --warm-cream: #faeddf;
    --light-berry: #f4e9ed;
    --primary-wine: #5b293f;
    --dark-burgundy: #472136;
    --accent-mauve: #8a5469;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --shadow: 0 10px 30px rgba(91, 41, 63, 0.15);
    --shadow-hover: 0 15px 40px rgba(91, 41, 63, 0.25);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-wine);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ========== NAVIGATION ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    background-color: var(--warm-cream);
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--light-berry);
    box-shadow: 0 2px 10px rgba(91, 41, 63, 0.1);
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo a {
    display: flex;
    align-items: center;
}

.navbar .logo-image {
    height: 60px;
    width: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.navbar .logo-image:hover {
    transform: scale(1.05);
}

.navbar nav ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.navbar nav > ul > li {
    position: relative;
}

.navbar nav a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar nav a:hover {
    background-color: var(--light-berry);
    color: var(--dark-burgundy);
}

.navbar nav a.btn-nav {
    background-color: var(--primary-wine);
    color: var(--primary-white);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
}

.navbar nav a.btn-nav:hover {
    background-color: var(--dark-burgundy);
}

.nav-divider {
    width: 1px;
    height: 24px;
    background-color: var(--border-color);
    margin: 0 0.5rem;
}

.submenu-arrow {
    font-size: 0.6rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

/* Submenu Dropdown */
.submenu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1rem;
    min-width: 300px;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-50%) translateY(8px);
}

.submenu-dropdown.open {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.submenu-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 8px;
    background-color: var(--primary-white);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-top: 1px solid var(--border-color);
}

/* Mega Menu (Services) */
.submenu-mega {
    min-width: 600px;
    left: 50%;
}

.submenu-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.submenu-column h4 {
    color: var(--primary-wine);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-berry);
}

.submenu-column h4 i {
    margin-right: 0.4rem;
}

.submenu-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: var(--text-dark);
}

.submenu-item:hover {
    background-color: var(--light-berry);
    color: var(--text-dark);
}

.submenu-item > i {
    color: var(--primary-wine);
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.submenu-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.15rem;
}

.submenu-item span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-wine);
    transition: all 0.3s ease;
}

/* ========== ADMIN BAR ========== */
.admin-bar {
    background-color: var(--dark-burgundy);
    padding: 0.4rem 0;
    font-size: 0.8rem;
}

.admin-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-bar-left,
.admin-bar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.admin-bar-label {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    margin-right: 0.5rem;
}

.admin-bar a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.admin-bar a:hover {
    color: var(--primary-white);
}

.admin-bar a i {
    margin-right: 0.3rem;
    font-size: 0.75rem;
}

/* ========== HERO SECTION ========== */
.hero {
    padding: 6rem 0;
    background-color: var(--secondary-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 233, 237, 0.88) 100%);
    pointer-events: none;
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero h1 .highlight {
    color: var(--primary-wine);
    position: relative;
    display: inline-block;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--dark-burgundy);
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.hero .cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-short {
    padding: 4rem 0;
}

.hero-short .cta-buttons {
    margin-bottom: 0;
}

/* Hero Self-Identify Tracks */
.hero-tracks {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.hero-track {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background-color: var(--primary-white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero-track:hover {
    border-color: var(--primary-wine);
    background-color: var(--light-berry);
    color: var(--dark-burgundy);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-track i {
    font-size: 1.3rem;
    color: var(--primary-wine);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

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

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

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

.btn-secondary:hover {
    background-color: var(--light-berry);
    color: var(--dark-burgundy);
    border-color: var(--dark-burgundy);
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ========== SERVICES / SECTIONS ========== */
.services {
    padding: 6rem 0;
    background-color: var(--primary-white);
}

.services .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-header h2 span {
    color: var(--primary-wine);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--primary-white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-wine) 0%, var(--dark-burgundy) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-wine);
    background-color: var(--light-berry);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-wine) 0%, var(--dark-burgundy) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--primary-white);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Service Detail (full-width text block) */
.service-detail {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.service-detail p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ========== WHY AMITY SECTION ========== */
.why-amity-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.why-amity-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.why-amity-text .btn {
    margin-top: 1rem;
}

.why-amity-pillars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pillar-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background-color: var(--secondary-white);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.pillar-card:hover {
    border-color: var(--primary-wine);
    box-shadow: var(--shadow);
}

.pillar-card i {
    font-size: 1.5rem;
    color: var(--primary-wine);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.pillar-card h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.pillar-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Why Grid (About page) */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.why-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background-color: var(--primary-white);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.why-card:hover {
    border-color: var(--primary-wine);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.why-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-wine) 0%, var(--accent-mauve) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-white);
}

.why-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.why-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ========== CCEM SECTION ========== */
.badge-proprietary {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-wine) 0%, var(--dark-burgundy) 100%);
    color: var(--primary-white);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

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

.ccem-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.ccem-visual {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.ccem-ring {
    position: relative;
    width: 400px;
    height: 400px;
}

.ccem-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, var(--primary-wine) 0%, var(--dark-burgundy) 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    z-index: 2;
    box-shadow: 0 8px 30px rgba(91, 41, 63, 0.3);
}

.ccem-center strong {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.ccem-center span {
    font-size: 0.7rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ccem-node {
    position: absolute;
    width: 110px;
    text-align: center;
    transition: transform 0.3s ease;
}

.ccem-node:hover {
    transform: scale(1.1);
}

.ccem-node i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-white);
    border: 2px solid var(--primary-wine);
    border-radius: 50%;
    color: var(--primary-wine);
    font-size: 1.2rem;
    margin: 0 auto 0.5rem;
    box-shadow: 0 4px 12px rgba(91, 41, 63, 0.15);
}

.ccem-node span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

/* Position nodes around the circle */
.ccem-node-1 { top: 0; left: 50%; transform: translateX(-50%); }
.ccem-node-2 { top: 22%; right: -10px; }
.ccem-node-3 { bottom: 10%; right: 0; }
.ccem-node-4 { bottom: 10%; left: 0; }
.ccem-node-5 { top: 22%; left: -10px; }

.ccem-node-1:hover { transform: translateX(-50%) scale(1.1); }

.ccem-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.ccem-description p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* CCEM Pillars Grid (Services page) */
.ccem-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.ccem-pillar {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--secondary-white);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.ccem-pillar:hover {
    border-color: var(--primary-wine);
    box-shadow: var(--shadow);
}

.ccem-pillar-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-wine) 0%, var(--dark-burgundy) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-white);
    font-size: 1.2rem;
}

.ccem-pillar h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.ccem-pillar p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ========== DUAL-TRACK GRID ========== */
.dual-track-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.track-card {
    padding: 3rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.track-card:hover {
    border-color: var(--primary-wine);
    box-shadow: var(--shadow);
}

.track-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.track-header h3 {
    font-size: 1.6rem;
    color: var(--text-dark);
}

.track-card > p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.track-list {
    list-style: none;
    margin-bottom: 2rem;
}

.track-list li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-weight: 500;
}

.track-list li i {
    color: var(--primary-wine);
    margin-right: 0.5rem;
}

/* ========== ABOUT PAGE ========== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Founder */
.founder-content {
    max-width: 800px;
    margin: 0 auto;
}

.founder-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.founder-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.credential {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: var(--light-berry);
    color: var(--primary-wine);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 20px;
}

.credential i {
    font-size: 1rem;
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-wine) 0%, var(--dark-burgundy) 100%);
}

.cta-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

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

.cta-section .btn-primary:hover {
    background-color: var(--light-berry);
    color: var(--dark-burgundy);
}

.cta-section .btn-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--primary-white);
}

.cta-section .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-white);
    color: var(--primary-white);
}

.cta-section .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== CONTACT PAGE ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method i {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-wine) 0%, var(--dark-burgundy) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-method strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-method a {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.contact-tracks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-track {
    padding: 1.25rem;
    background-color: var(--secondary-white);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.contact-track h4 {
    color: var(--primary-wine);
    margin-bottom: 0.5rem;
}

.contact-track h4 i {
    margin-right: 0.5rem;
}

.contact-track p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-form-wrapper {
    background-color: var(--secondary-white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

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

/* ========== FOOTER ========== */
.footer {
    background-color: var(--secondary-white);
    padding: 3rem 0 1.5rem;
    border-top: 2px solid var(--light-berry);
    margin-top: 0;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-mission {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-vision {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary-wine);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.footer-mission-text {
    font-size: 0.85rem;
    margin-top: 1rem;
    color: var(--text-light);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer h4 {
    color: var(--primary-wine);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer p, .footer li {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.footer ul {
    list-style: none;
}

.footer a {
    color: var(--text-gray);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
}

/* ========== BLOG ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background-color: var(--primary-white);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-wine);
}

.blog-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: var(--light-berry);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.blog-card .excerpt {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-card .read-more {
    color: var(--primary-wine);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card .read-more:hover {
    color: var(--dark-burgundy);
}

/* ========== AUTH PAGES ========== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--secondary-white) 0%, var(--light-berry) 100%);
}

.auth-container {
    background-color: var(--primary-white);
    padding: 3rem;
    border-radius: 12px;
    border: 2px solid var(--light-berry);
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-dark);
}

.auth-container h2 span {
    color: var(--primary-wine);
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    background-color: var(--secondary-white);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-dark);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-wine);
    background-color: var(--primary-white);
}

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

.error-message {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border: 2px solid #fecaca;
}

.success-message {
    background-color: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border: 2px solid #bbf7d0;
}

/* ========== DASHBOARD ========== */
.dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-berry);
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background-color: var(--primary-white);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--light-berry);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-wine);
    box-shadow: var(--shadow);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--primary-wine);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* ========== ADMIN TABLES ========== */
.admin-table {
    width: 100%;
    background-color: var(--primary-white);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background-color: var(--primary-wine);
    color: var(--primary-white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

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

.admin-table tr:hover {
    background-color: var(--light-berry);
}

.admin-table .actions {
    display: flex;
    gap: 0.5rem;
}

.admin-table .btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-published {
    background-color: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.badge-draft {
    background-color: rgba(251, 146, 60, 0.15);
    color: #ea580c;
    border: 1px solid #fed7aa;
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: auto;
    accent-color: var(--primary-wine);
}

/* ========== GALLERY STYLES ========== */

/* Gallery Filters */
.gallery-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}

.gallery-filters .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

/* Gallery Grid (card listing) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.gallery-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    background-color: var(--primary-white);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-wine);
}

.gallery-card-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.08);
}

.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-wine), var(--dark-burgundy));
    font-size: 3rem;
    color: rgba(255,255,255,0.5);
}

.gallery-card-content {
    padding: 1.25rem;
}

.gallery-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.gallery-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--light-berry);
    color: var(--primary-wine);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Masonry Grid (single gallery view) */
.masonry-grid {
    columns: 3 320px;
    column-gap: 1.2rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.2rem;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.masonry-item:hover {
    transform: scale(1.02);
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: filter 0.3s ease;
}

/* Image protection: prevent drag, selection, and save */
.masonry-item img,
.gallery-card-image img,
.lightbox-content img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Re-enable pointer events on the masonry item container so click works */
.masonry-item,
.gallery-card,
.lightbox-prev,
.lightbox-next,
.lightbox-close {
    pointer-events: auto;
}

.masonry-item:hover img {
    filter: brightness(0.85);
}

.masonry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
    transform: translateY(0);
}

.masonry-overlay h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.image-price {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--primary-wine);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ========== LIGHTBOX ========== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
    transition: opacity 0.3s;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 10001;
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-caption {
    color: white;
    margin-top: 1rem;
    padding: 0 1rem;
}

.lightbox-caption h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.lightbox-caption p {
    color: rgba(255,255,255,0.7);
}

/* Admin gallery image grid (edit page) */
.admin-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.admin-image-card {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: var(--primary-white);
}

.admin-image-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.admin-image-card .image-fields {
    padding: 1rem;
}

.admin-image-card .image-fields input,
.admin-image-card .image-fields textarea {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .navbar nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--warm-cream);
        padding: 1rem;
        border-top: 2px solid var(--light-berry);
        box-shadow: 0 4px 6px rgba(91, 41, 63, 0.1);
    }

    .navbar nav.active {
        display: block;
    }

    .navbar nav ul {
        flex-direction: column;
        gap: 0.25rem;
    }

    .navbar nav a {
        display: block;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    /* Submenu mobile */
    .has-submenu {
        position: relative;
    }

    .submenu-dropdown {
        position: static;
        transform: none;
        min-width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0.5rem 0 0.5rem 1rem;
        background-color: rgba(255,255,255,0.5);
    }

    .submenu-dropdown.open {
        transform: none;
    }

    .submenu-dropdown::before {
        display: none;
    }

    .submenu-mega {
        min-width: 100%;
    }

    .submenu-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nav-divider {
        width: 100%;
        height: 1px;
        margin: 0.5rem 0;
    }

    /* Admin bar mobile */
    .admin-bar .container {
        flex-wrap: wrap;
    }

    .admin-bar-left {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    /* Layout */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

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

    .section-header h2 {
        font-size: 2rem;
    }

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

    .why-amity-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .dual-track-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .masonry-grid {
        columns: 2 200px;
    }

    .ccem-ring {
        width: 300px;
        height: 300px;
    }

    .ccem-center {
        width: 100px;
        height: 100px;
    }

    .ccem-center strong {
        font-size: 1.2rem;
    }

    .ccem-center span {
        font-size: 0.6rem;
    }

    .ccem-node {
        width: 85px;
    }

    .ccem-node i {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .ccem-node span {
        font-size: 0.65rem;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .admin-table {
        overflow-x: auto;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .founder-credentials {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .navbar .logo-image {
        height: 50px;
    }

    .masonry-grid {
        columns: 1;
    }

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

    .ccem-ring {
        width: 260px;
        height: 260px;
    }

    .ccem-pillars-grid {
        grid-template-columns: 1fr;
    }

    .track-card {
        padding: 2rem;
    }
}

/* ==================== Hero Slider ==================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(91, 41, 63, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-content {
    color: #fff;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-slide-content h1,
.hero-slide-content h2,
.hero-slide-content h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-slide-content h1 { font-size: 3rem; }
.hero-slide-content h2 { font-size: 2.25rem; }
.hero-slide-content h3 { font-size: 1.75rem; }

.hero-slide-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hero-slide-content a {
    color: var(--warm-cream);
    text-decoration: underline;
    font-weight: 600;
}

.hero-slide-content a:hover {
    color: #fff;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
    backdrop-filter: blur(4px);
}

.hero-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.hero-arrow-prev { left: 1.5rem; }
.hero-arrow-next { right: 1.5rem; }

.hero-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    padding: 0;
}

.hero-dot.active,
.hero-dot:hover {
    background: #fff;
    border-color: #fff;
}

@media (max-width: 768px) {
    .hero-slider { height: 420px; }
    .hero-slide-content h1 { font-size: 2rem; }
    .hero-slide-content h2 { font-size: 1.5rem; }
    .hero-slide-content p { font-size: 1rem; }
    .hero-arrow { width: 36px; height: 36px; font-size: 1rem; }
    .hero-arrow-prev { left: 0.75rem; }
    .hero-arrow-next { right: 0.75rem; }
}

@media (max-width: 480px) {
    .hero-slider { height: 350px; }
    .hero-slide-content { padding: 1rem; }
    .hero-slide-content h1 { font-size: 1.6rem; }
}

/* ==================== Panel Background Images ==================== */
.panel-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.panel-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.88);
    z-index: 0;
}

.panel-bg > .container,
.panel-bg > * {
    position: relative;
    z-index: 1;
}

.panel-bg-1 { background-image: url('../images/panels/African-peacebuilding-.jpg'); }
.panel-bg-2 { background-image: url('../images/panels/watercolor_painting_techniques.png'); }
.panel-bg-3 { background-image: url('../images/panels/women-peacebuilding-report-summary.jpg'); }
.panel-bg-4 { background-image: url('../images/panels/activists-standing-together-peace-min-scaled.jpg'); }
.panel-bg-5 { background-image: url('../images/panels/il_fullxfull.1523685748_em90.jpg'); }

@media (max-width: 768px) {
    .panel-bg {
        background-attachment: scroll;
    }
}
