/* ============================================
   SHERARO COMMUNITY HUB - SHARED STYLES
   ============================================ */

:root {
    --primary: #052b5b;
    --primary-dark: #031c3d;
    --accent: #ffcc34;
    --accent-hover: #e6b82e;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --white: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   TOP NAVIGATION & LANGUAGE SWITCHER
   ============================================ */
.top-bar {
    background-color: var(--primary-dark);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
}

nav a:hover,
nav a.active {
    color: var(--primary-dark);
    background-color: var(--accent);
}

/* Language Toggle */
.lang-switch {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 20px;
}

.lang-btn {
    background: none;
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
    transition: var(--transition);
}

.lang-btn.active {
    background-color: var(--accent);
    color: #000;
}

/* ============================================
   HERO HEADER
   ============================================ */
header {
    background: linear-gradient(135deg, var(--primary) 0%, #0a3d7a 100%);
    color: white;
    text-align: center;
    padding: 60px 20px 50px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="80" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="90" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 100px 100px;
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 12px;
    color: white;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

header .subtitle {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 500;
    max-width: 750px;
    margin: 0 auto;
    position: relative;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
main {
    flex: 1;
}

.container {
    max-width: 1100px;
    margin: -30px auto 40px;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

/* ============================================
   BADGE
   ============================================ */
.badge {
    display: inline-block;
    background-color: #e3f2fd;
    color: #0d47a1;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* ============================================
   CARDS & GRIDS
   ============================================ */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 28px;
    background-color: var(--white);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: var(--transition);
}

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

.card:hover::before {
    transform: scaleY(1);
}

.card h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

/* ============================================
   BLOCKQUOTE
   ============================================ */
blockquote {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border-left: 4px solid var(--accent);
    margin: 40px 0;
    padding: 24px 28px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

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

.btn-accent:hover {
    background-color: var(--accent-hover);
}

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

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

/* ============================================
   PHOTO GALLERY
   ============================================ */
.gallery-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.photo-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: #000;
    height: 240px;
    cursor: pointer;
    transition: var(--transition);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.photo-card:hover {
    box-shadow: var(--shadow-hover);
}

.photo-card:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(5, 43, 91, 0.95));
    color: white;
    padding: 20px 15px 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

.photo-date {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Gallery Filter Tabs */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-caption {
    color: white;
    margin-top: 15px;
    font-size: 1.1rem;
    text-align: center;
    max-width: 80%;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.4);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ============================================
   ABOUT PAGE SPECIFIC
   ============================================ */
.about-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0a3d7a 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.mission-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 30px;
    border-radius: var(--radius);
    margin: 30px 0;
    border-left: 5px solid var(--primary);
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.values-list li:last-child {
    border-bottom: none;
}

.values-list .icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: 50%;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.team-card {
    text-align: center;
    padding: 24px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

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

.team-card .avatar {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.team-card h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.team-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.contact-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.contact-item .icon {
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-form {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--radius);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 43, 91, 0.1);
}

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

/* ============================================
   FOOTER
   ============================================ */
footer {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    margin-top: auto;
}

footer p {
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    header h1 {
        font-size: 1.9rem;
    }

    header .subtitle {
        font-size: 1rem;
    }

    .container {
        margin: -20px 10px 30px;
        padding: 24px;
        border-radius: var(--radius-sm);
    }

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

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

    .section-title {
        font-size: 1.5rem;
    }

    .lightbox-nav {
        font-size: 1.5rem;
        padding: 10px 14px;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

@media (max-width: 480px) {
    header {
        padding: 40px 16px;
    }

    header h1 {
        font-size: 1.6rem;
    }

    .container {
        padding: 20px 16px;
    }

    .card {
        padding: 20px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
