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

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
}


/* ===============================
   NAVIGATION BAR
   =============================== */

.site-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
}


.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 16px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand a {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
}



.nav-links {
    display: flex;
    gap: 22px;
}

.nav-links a {
    text-decoration: none;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}


/* underline effect */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}
/* ===============================
   HERO SECTION
   =============================== */

.hero {
    padding: 90px 20px;
    background: linear-gradient(
        135deg,
        #0f172a,
        #1e293b
    );
    color: white;
}

.hero-content {
    max-width: 900px;
    margin: auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 720px;
    margin-bottom: 32px;
}

/* HERO BUTTONS */

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn.primary {
    background: #2563eb;
    color: white;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.btn.secondary {
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: white;
}

.btn:hover {
    transform: translateY(-3px);
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
}
/* ===============================
   VISION & PURPOSE
   =============================== */

.vision {
    padding: 100px 20px 80px;
    background-color: #ffffff;
}

.vision-container {
    max-width: 900px;
    margin: auto;
}

.vision h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #0f172a;
}

.vision p {
    font-size: 1.05rem;
    margin-bottom: 18px;
    color: #334155;
}

.vision-link a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.vision-link a:hover {
    text-decoration: underline;
}

/* ===============================
   EVENTS SECTION (CARD STYLE)
   =============================== */

.events {
    padding: 90px 20px;
    background: linear-gradient(
        to bottom,
        #f8fafc,
        #eef2f7
    );
}

.events-container {
    max-width: 1100px;
    margin: auto;
}

.events h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #0f172a;
    text-align: center;
}

/* EVENTS GRID */

.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

/* EVENT CARD */

.event-card {
    background: #ffffff;
    padding: 32px 28px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* Accent line on top */

.event-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        #2563eb,
        #38bdf8
    );
}

/* Event title */

.event-card h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
    color: #1e40af;
}

/* Event description */

.event-card p {
    font-size: 0.96rem;
    color: #475569;
    line-height: 1.6;
}

/* Hover effect */

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* Mobile adjustments */

@media (max-width: 600px) {
    .event-card {
        padding: 26px 22px;
    }
}
/*footer style  */
/* ===============================
   FOOTER
   =============================== */

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

.site-footer {
    background: linear-gradient(135deg, #0b1220, #020617);
    color: #cbd5e1;
    padding: 60px 20px;
    margin-top: 100px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-bottom: 30px;
}

.footer-logos img {
    height: 60px;
    max-width: 160px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* CAIC logo should keep original color */
.footer-logos img.no-filter {
    filter: none;
}

.footer-text {
    font-size: 0.95rem;
    max-width: 800px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

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

.footer-links a {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.9rem;
}

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

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 1.5rem;
}

.footer-socials a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-socials a:hover {
    color: #60a5fa;
}

/* Responsive */
@media (max-width: 600px) {
    .footer-logos {
        flex-direction: column;
        gap: 25px;
    }
}
/* ===============================
   TEAM PAGE STYLES
   =============================== */

.team-hero {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
}

.team-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

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

.team-section {
    padding: 80px 20px;
    background: #ffffff;
}

.team-section.light-bg {
    background: #f8fafc;
}

.team-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #0f172a;
}

.team-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

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

.team-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 26px 22px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.team-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 16px;
}

.team-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #0f172a;
}

.team-card p {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 14px;
}

.team-links {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.team-links a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2563eb;
}

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



/* ================= LEGACY PAGE ================= */

/* =====================================================
   LEGACY PAGE STYLES (SCOPED & SAFE)
   ===================================================== */

body.legacy-page .legacy-section {
    padding: 80px 20px;
}

body.legacy-page .legacy-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

/* ===== EVENT RIBBON ===== */
body.legacy-page .event-ribbon {
    overflow: hidden;
    position: relative;
    cursor: grab;
}

body.legacy-page .event-ribbon:active {
    cursor: grabbing;
}

body.legacy-page .event-track {
    display: flex;
    gap: 20px;
    will-change: transform;
}

body.legacy-page .event-track img {
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ===== LEGACY TABLES ===== */
body.legacy-page .legacy-table {
    max-width: 1000px;
    margin: auto;
    overflow-x: auto;
}

body.legacy-page .legacy-table table {
    width: 100%;
    border-collapse: collapse;
}

body.legacy-page .legacy-table th,
body.legacy-page .legacy-table td {
    padding: 12px 14px;
    border: 1px solid #d1d5db;
}

body.legacy-page .legacy-table th {
    background: #f8fafc;
    font-weight: 600;
}

/* ===== FOOTER CENTER (LEGACY ONLY) ===== */
body.legacy-page .site-footer {
    text-align: center;
}
/* ================= CONTACT PAGE ================= */

.contact-section {
    padding: 60px 20px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: auto;
}

.contact-card {
    padding: 30px;
    border-radius: 12px;
    background: #f9fafb;
    text-align: center;
}

.contact-card h3 {
    margin-bottom: 10px;
}

.contact-card a {
    text-decoration: none;
    color: #000;
}
/* ===== CONTACT LOGOS ===== */
.contact-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: transform 0.2s ease;
}

.contact-card a:hover .contact-logo {
    transform: scale(1.1);
}


.contact-form-section {
    max-width: 600px;
    margin: 80px auto;
    text-align: center;
}

.contact-form-section h2 {
    margin-bottom: 30px;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#contactForm input,
#contactForm textarea {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
}

#contactForm textarea {
    height: 140px;
    resize: none;
}

#contactForm button {
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: #000;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

/* ===== MODAL ===== */
.contact-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    max-width: 420px;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-actions button,
.modal-actions .email-btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.modal-actions button {
    background: #000;
    color: #fff;
}

.modal-actions .email-btn {
    background: #e5e7eb;
    color: #000;
}
/* ===== CONTACT PAGE FOOTER FIX ===== */
body.contact-page .site-footer {
    text-align: center;
}



/* ===== TIME WIDGET ANIMATIONS ===== */

/* Fade-in when page loads */
.time-widget {
    animation: fadeInClock 0.8s ease-out;
}

/* Subtle pulse every second */
.time-value {
    animation: tickPulse 1s infinite;
}

/* Hover effect */
.time-widget:hover {
    transform: translateY(-50%) scale(1.03);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Keyframes */
@keyframes fadeInClock {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes tickPulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.85; }
    100% { opacity: 1; }
}
/* ===== FIXED DATE & TIME WIDGET (GLOBAL) ===== */
.time-widget {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 18px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 99999; /* force on top */
    pointer-events: auto;
}

.time-date {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.time-value {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Hover polish */
.time-widget:hover {
    transform: translateY(-50%) scale(1.03);
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
    transition: all 0.25s ease;
}

/* Hide ONLY on very small screens */
@media (max-width: 480px) {
    .time-widget {
        display: none;
    }
}

/* dark mode tooglle button  */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-btn {
  margin-left: 1rem;
}

