/* ============================================================
   site.css — Consolidated external stylesheet
   Replaces inline <style> blocks from all view files
   ============================================================ */

/* === PAGE HERO BANNER === */
.page-hero-bg {
    background-size: cover;
    background-position: center;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.page-hero-bg .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.page-hero-bg .hero-content {
    position: relative;
    z-index: 1;
    text-align: center !important;
    padding: 80px 20px;
    color: #fff;
    width: 100%;
    display: block;
}
/* Variant for blog hero (uses blog-hero-inner instead of hero-content) */
.blog-hero-inner.page-hero-bg-hero-content {
    position: relative;
    z-index: 1;
    padding: 80px 20px;
    color: #fff;
    width: 100%;
    text-align: center;
}
.blog-hero-inner h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}
.blog-hero-inner p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}
.page-hero-bg h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0 0 10px;
    text-align: center !important;
    display: block;
}
.page-hero-bg p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    text-align: center;
}

/* Hero buttons (inline style overrides) */
.page-hero-bg .hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === WHATSAPP FLOAT === */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* === MISSION CARDS === */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.mission-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.mission-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
}
.mission-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.mission-card:hover .mission-card-image img {
    transform: scale(1.05);
}
.mission-card-content {
    padding: 16px 20px;
    text-align: center;
}
.mission-card-content h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}
@media (max-width: 900px) {
    .mission-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .mission-grid { grid-template-columns: 1fr; }
}

/* === TEAM === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}
.team-card {
    text-align: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.team-card-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f0f0f0;
}
.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.team-card:hover .team-card-photo img {
    transform: scale(1.05);
}
.team-card-info {
    padding: 25px 20px;
}
.team-card-info h3 {
    margin: 0 0 5px;
    font-size: 1.3rem;
    font-weight: 600;
}
.team-role {
    color: #1eb6de;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0 15px;
}
.team-bio {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* === SCHEDULE === */
.schedule-wrapper {
    overflow-x: auto;
    margin-bottom: 40px;
}
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    min-width: 700px;
}
.schedule-table thead {
    background: #1a1a2e;
    color: #0a0a0a;
}
.schedule-table th {
    padding: 14px 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    text-align: center;
}
.schedule-table td {
    padding: 14px 12px;
    text-align: center;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.schedule-table tbody tr:last-child td {
    border-bottom: none;
}
.schedule-table tbody tr:hover {
    background: #f8f9fa;
}
.schedule-class {
    text-align: left !important;
    font-weight: 500;
}
.schedule-class strong {
    display: block;
    color: #1a1a2e;
    font-size: 0.95rem;
}
.schedule-age {
    display: block;
    color: #1eb6de;
    font-size: 0.8rem;
    margin-top: 2px;
}
.schedule-active {
    background: rgba(30, 182, 222, 0.08);
    color: #1a1a2e;
    font-weight: 500;
}
.schedule-note {
    background: #fff;
    border-left: 4px solid #1eb6de;
    padding: 24px 28px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.schedule-note h3 {
    margin: 0 0 10px;
    color: #1a1a2e;
    font-size: 1.1rem;
}
.schedule-note p {
    margin: 0 0 12px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}
.schedule-note p:last-child {
    margin-bottom: 0;
}
.schedule-note .btn {
    display: inline-block;
    margin-top: 8px;
}
@media (max-width: 900px) {
    .schedule-table { min-width: 600px; }
    .schedule-table th,
    .schedule-table td { padding: 10px 8px; font-size: 0.8rem; }
}
@media (max-width: 600px) {
    .page-header h1 { font-size: 1.6rem; }
    .schedule-note { padding: 18px 20px; }
}

/* === GET INVOLVED === */
.involve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.involve-card {
    background: #fff;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.involve-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.involve-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}
.involve-card h2 {
    margin: 0 0 15px;
    font-size: 1.3rem;
    font-weight: 600;
}
.involve-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}
.involve-card .btn-outline {
    margin-top: 10px;
}

/* === GALLERY === */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}
.filter-btn {
    padding: 10px 24px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: #555;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-block;
}
.filter-btn:hover {
    border-color: #1eb6de;
    color: #1eb6de;
}
.filter-btn.active {
    background: #1eb6de;
    border-color: #1eb6de;
    color: #fff;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.gallery-item:hover {
    transform: translateY(-4px);
}
.gallery-item img {
    width: 100%;
    display: block;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .filter-btn { padding: 8px 16px; font-size: 0.8rem; }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* === EVENTS === */
.events-block {
    margin-bottom: 50px;
}
.events-block h2 {
    margin-bottom: 25px;
}
.events-past {
    opacity: 0.85;
}
.event-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.event-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.event-card-past {
    opacity: 0.7;
}
.event-image {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
}
.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.event-date-badge {
    flex-shrink: 0;
    width: 64px;
    text-align: center;
    background: #1eb6de;
    color: #fff;
    border-radius: 8px;
    padding: 10px 8px;
    line-height: 1.2;
}
.event-month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}
.event-day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}
.event-info {
    flex: 1;
}
.event-info h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}
.event-meta {
    font-size: 0.85rem;
    color: #888;
    margin: 0 0 10px;
}
.event-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}
@media (max-width: 600px) {
    .event-card { flex-direction: column; }
    .event-image { width: 100%; height: 180px; }
    .event-date-badge {
        width: auto;
        padding: 8px 16px;
        display: flex;
        gap: 8px;
        align-items: baseline;
    }
}

/* === ENROLLMENTS === */
.enroll-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.enroll-form .form-section {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
}
.enroll-form .form-section legend {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    padding: 0 0.5rem;
    margin-bottom: 1rem;
    width: auto;
}
.enroll-form .form-group {
    margin-bottom: 1.25rem;
}
.enroll-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1a1a1a;
}
.enroll-form .form-group input[type="text"],
.enroll-form .form-group input[type="date"],
.enroll-form .form-group input[type="number"],
.enroll-form .form-group input[type="tel"],
.enroll-form .form-group input[type="email"],
.enroll-form .form-group select,
.enroll-form .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.enroll-form .form-group input:focus,
.enroll-form .form-group select:focus,
.enroll-form .form-group textarea:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}
.enroll-form .form-group textarea {
    resize: vertical;
    min-height: 80px;
}
.enroll-form .form-group input[readonly] {
    background: #f5f5f5;
    cursor: not-allowed;
}
.enroll-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.enroll-form .checkbox-group {
    margin-bottom: 0;
}
.enroll-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
}
.enroll-form .checkbox-label input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}
.enroll-form .form-actions {
    margin-top: 2rem;
    text-align: center;
}
.enroll-form .btn-primary {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    background: #0056b3;
    color: #fff;
}
.enroll-form .btn-primary:hover {
    background: #004494;
}
.enroll-form .btn-primary:active {
    transform: scale(0.98);
}
@media (max-width: 600px) {
    .enroll-form { padding: 1rem; }
    .enroll-form .form-section { padding: 1rem; }
    .enroll-form .form-row { grid-template-columns: 1fr; }
}

/* === DONATE === */
.donate-form {
    max-width: 600px;
    margin: 0 auto;
}

/* === CONTACT === */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: start;
}
.contact-form h2,
.contact-info h3 {
    margin-bottom: 20px;
}
.contact-map {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}
.contact-map-placeholder {
    margin-top: 20px;
    padding: 30px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
    color: #888;
}
.contact-notice {
    font-size: 0.75rem;
    color: #e67e22;
    margin-bottom: 10px;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
}
@media (max-width: 768px) {
    .contact-layout { grid-template-columns: 1fr; }
}

/* === BLOG === */
.blog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}
.blog-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}
.blog-main {
    min-width: 0;
}
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.sidebar-widget h3 {
    margin: 0 0 15px;
    font-size: 1.1rem;
    font-weight: 600;
}
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-list li {
    margin-bottom: 8px;
}
.category-list a {
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    color: #555;
    transition: all 0.2s;
    text-decoration: none;
}
.category-list a:hover,
.category-list a.active {
    background: #1eb6de;
    color: #fff;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}
@media (max-width: 768px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
}

/* === BELTS === */
.fed-header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 12px;
    color: #fff;
    margin-bottom: 40px;
}
.fed-header h2 {
    color: #fff;
    margin: 0 0 8px;
}
.fed-header p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}
.fed-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}
.fed-info h4 {
    margin-top: 20px;
}
.fed-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}
.fed-tech-item {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #1eb6de;
}
.fed-footer {
    text-align: center;
    padding: 30px;
    background: #1a1a2e;
    color: #fff;
    border-radius: 12px;
    margin-top: 40px;
}
.fed-footer h3 {
    color: #fff;
}
.fed-footer p {
    margin: 10px 0;
    opacity: 0.8;
}
.fed-footer a {
    color: #1eb6de;
}

/* Belt cards */
.belt-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}
.belt-header {
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 15px;
}
.belt-header h3 {
    margin: 0;
}
.belt-swatch {
    width: 60px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}
.belt-swatch.with-border {
    border: 2px solid #ddd;
}
.belt-card-content {
    padding: 20px;
}
.belt-card-content h4 {
    margin-bottom: 4px;
}
.belt-card-content p {
    font-size: 0.95rem;
    color: #555;
}
.belt-requirements {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
}
.belt-requirements ul {
    margin: 10px 0 0 20px;
    font-size: 0.9rem;
}

/* Belt color variants */
.belt-card.belt-white { border-left: 6px solid #f0f0f0; }
.belt-card.belt-white .belt-header { background: #f8f9fa; }
.belt-card.belt-white .belt-swatch { background: #fff; border: 2px solid #ddd; }
.belt-card.belt-white .belt-requirements { background: #f0f8ff; }

.belt-card.belt-yellow { border-left: 6px solid #f1c40f; }
.belt-card.belt-yellow .belt-header { background: #fef9e7; }
.belt-card.belt-yellow .belt-swatch { background: #f1c40f; }
.belt-card.belt-yellow .belt-requirements { background: #fef9e7; }

.belt-card.belt-orange { border-left: 6px solid #e67e22; }
.belt-card.belt-orange .belt-header { background: #fdf2e9; }
.belt-card.belt-orange .belt-swatch { background: #e67e22; }
.belt-card.belt-orange .belt-requirements { background: #fdf2e9; }

.belt-card.belt-green { border-left: 6px solid #27ae60; }
.belt-card.belt-green .belt-header { background: #e8f8f0; }
.belt-card.belt-green .belt-swatch { background: #27ae60; }
.belt-card.belt-green .belt-requirements { background: #e8f8f0; }

.belt-card.belt-blue { border-left: 6px solid #2980b9; }
.belt-card.belt-blue .belt-header { background: #eaf2f8; }
.belt-card.belt-blue .belt-swatch { background: #2980b9; }
.belt-card.belt-blue .belt-requirements { background: #eaf2f8; }

.belt-card.belt-brown { border-left: 6px solid #8B4513; }
.belt-card.belt-brown .belt-header { background: #f5efe6; }
.belt-card.belt-brown .belt-swatch { background: #8B4513; }
.belt-card.belt-brown .belt-requirements { background: #f5efe6; }

/* === ADMIN LAYOUT === */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 260px;
    background: #1a1a2e;
    color: #fff;
    padding: 0;
    flex-shrink: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-header h2 {
    font-size: 1.25rem;
    margin: 0;
}
.sidebar-header small {
    opacity: 0.7;
}
.sidebar-nav {
    padding: 10px 0;
}
.sidebar-nav a {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    border-left: 3px solid transparent;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-left-color: #0077b6;
    text-decoration: none;
}
.sidebar-nav .section-title {
    padding: 15px 20px 5px;
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.5;
    letter-spacing: 1px;
}
.main-content {
    flex: 1;
    margin-left: 260px;
}
.top-bar {
    background: #fff;
    padding: 15px 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar h1 {
    font-size: 1.5rem;
}
.content-area {
    padding: 30px;
}

/* === ADMIN CARDS === */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-header h3 {
    margin: 0;
}
.card-body {
    padding: 20px;
}

/* === ADMIN STATS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #0077b6;
}
.stat-card .stat-label {
    color: #666;
    font-size: 0.875rem;
}

/* === ADMIN TABLES === */
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
th {
    background: #f8f9fa;
    font-weight: 600;
}
tr:hover {
    background: #f8f9fa;
}

/* === ADMIN FORMS === */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}
.form-group textarea {
    min-height: 200px;
    resize: vertical;
    font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0077b6;
    box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.2);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* === ADMIN BUTTONS === */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #0077b6;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}
.btn:hover {
    background: #005f8a;
    text-decoration: none;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}
.btn-danger {
    background: #dc3545;
}
.btn-danger:hover {
    background: #a71d2a;
}
.btn-success {
    background: #28a745;
}
.btn-success:hover {
    background: #1e7e34;
}
.btn-outline {
    background: transparent;
    border: 1px solid #0077b6;
    color: #0077b6;
}
.btn-outline:hover {
    background: #0077b6;
    color: #fff;
}
.btn-group {
    display: flex;
    gap: 10px;
}

/* === ADMIN FLASH === */
.flash {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    position: relative;
}
.flash.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.flash.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.flash.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}
.flash-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 0 4px;
}
.flash-close:hover {
    opacity: 1;
}

/* === ADMIN BADGES === */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-success {
    background: #d1fae5;
    color: #065f46;
}
.badge-warning {
    background: #fef3c7;
    color: #92400e;
}
.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}
.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* === ADMIN MEDIA GRID === */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}
.media-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
}
.media-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}
.media-item .media-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
}
.media-item .media-name {
    padding: 8px;
    font-size: 0.75rem;
    word-break: break-all;
}

/* === ADMIN LOGIN === */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f0f2f5;
}
.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}
.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
}

/* === ADMIN RESPONSIVE === */
@media (max-width: 768px) {
    .sidebar { width: 100%; height: auto; position: relative; }
    .main-content { margin-left: 0; }
    .form-row { grid-template-columns: 1fr; }
}

/* === ADMIN PREVIEW === */
#previewContent h1 {
    font-size: 2.5rem;
    margin: 1.5rem 0 1rem;
    font-weight: 300;
}
#previewContent h2 {
    font-size: 2rem;
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
    color: #1a1a2e;
}
#previewContent h3 {
    font-size: 1.5rem;
    margin: 1.25rem 0 0.5rem;
    font-weight: 600;
}
#previewContent p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}
#previewContent ul,
#previewContent ol {
    margin: 1rem 0;
    padding-left: 2rem;
}
#previewContent li {
    margin-bottom: 0.5rem;
}
#previewContent a {
    color: #0077b6;
    text-decoration: underline;
}
#previewContent strong {
    font-weight: 600;
}
#previewContent .page-header {
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
}
#previewContent .page-header .container {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 2rem;
}
#previewContent .page-header h1 {
    color: #fff;
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
#previewContent .content-section {
    padding: 3rem 0;
}
#previewContent .content-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
#previewContent img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
#previewContent blockquote {
    border-left: 4px solid #0077b6;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f8f9fa;
}
#previewContent table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}
#previewContent th,
#previewContent td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}
#previewContent th {
    background: #f8f9fa;
    font-weight: 600;
}

/* === SLIDER === */
.hero-slider {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}
.slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}
.slider-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.slider-slide video,
.slider-slide img {
    width: 100%;
    aspect-ratio: 16 / 4;
    object-fit: cover;
    min-height: 280px;
}
.slider-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-content {
    text-align: center;
    color: #fff;
    max-width: 900px;
    padding: 40px;
}
.slider-content h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.02em;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}
.slider-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 25px;
    opacity: 0.95;
}
.slider-content .btn {
    padding: 14px 36px;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
}
.slider-spacer {
    visibility: hidden;
    pointer-events: none;
}
.slider-spacer img {
    width: 100%;
    aspect-ratio: 16 / 4;
    object-fit: cover;
    min-height: 280px;
}
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: background 0.3s;
}
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, 0.7);
}
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}
.slider-dot.active {
    background: #fff;
}

/* === QUIZ / FORMS === */
.quiz-empty-state {
    text-align: center;
    color: #888;
    padding: 40px;
}

.mission-section {
    padding: 60px 0;
    background: #f8f9fa;
}

/* === FOOTER LAYOUT === */
.footer-top {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-logo {
    flex-shrink: 0;
}
.footer-logo img {
    height: 180px;
    opacity: 0.85;
}
.footer-links-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.footer-links-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links-grid li {
    margin-bottom: 10px;
}
.footer-links-grid a {
    color: #ccc;
    font-size: 0.95rem;
}
.footer-links-grid a:hover {
    color: #1eb6de;
}
.footer-copyright {
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: #888;
}
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
