/* ============================================
   FEDA - Oxford Future Education Development Association
   Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary-blue: #1a365d;
    --secondary-blue: #2c5282;
    --accent-blue: #3182ce;
    --light-blue: #ebf8ff;
    --dark-blue: #0d1b2a;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --max-width: 1400px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
    line-height: 1.3;
}

.logo-text span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-medium);
}

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

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: 80px 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-medium);
    font-weight: 400;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-header {
        margin-bottom: 40px;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding-top: var(--header-height);
    min-height: 500px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    display: flex;
    align-items: center;
    color: var(--bg-white);
}

.hero-content {
    padding: 80px 0;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 24px;
    opacity: 0.9;
}

.hero-description {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }
}

/* ============================================
   Profile Section
   ============================================ */
.profile-intro {
    margin: 0 auto 60px;
    text-align: center;
}

.profile-intro p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-medium);
}

.profile-intro .en {
    margin-top: 20px;
    font-size: 15px;
}

.mission-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mission-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.mission-card:hover {
    box-shadow: 0 10px 40px rgba(26, 54, 93, 0.1);
    transform: translateY(-4px);
}

.mission-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-blue);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 16px;
}

.mission-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.mission-title .en-title {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 4px;
}

.mission-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-medium);
}

.mission-content .en {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
}

@media (max-width: 992px) {
    .mission-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Events Section
   ============================================ */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.event-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.event-item:nth-child(even) {
    direction: rtl;
}

.event-item:nth-child(even) > * {
    direction: ltr;
}

.event-image {
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.event-item:hover .event-image img {
    transform: scale(1.03);
}

.event-content {
    padding: 20px 0;
}

.event-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.event-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
    line-height: 1.3;
}

.event-title-en {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 20px;
}

.event-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-medium);
}

.event-description .en {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}

@media (max-width: 992px) {
    .event-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .event-item:nth-child(even) {
        direction: ltr;
    }

    .event-image img {
        height: 280px;
    }
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.contact-logo img {
    height: 80px;
    width: auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 15px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .contact-logo {
        display: flex;
        justify-content: center;
    }

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

    .contact-item {
        justify-content: center;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--dark-blue);
    color: var(--bg-white);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
    opacity: 0.7;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    padding-top: var(--header-height);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--bg-white);
    padding-bottom: 60px;
}

.page-header-content {
    padding-top: 60px;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 18px;
    opacity: 0.8;
    font-weight: 300;
}

.breadcrumbs {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.7;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 8px;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 32px;
    }
}

/* ============================================
   Content Page Styles
   ============================================ */
.content-section {
    padding: 80px 0;
}

.content-block {
    margin: 0 auto;
}

.content-block h2 {
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.content-block h3 {
    font-size: 20px;
    color: var(--secondary-blue);
    margin: 32px 0 16px;
}

.content-block p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 16px;
}

.content-block .en {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 8px;
}

.content-image {
    margin: 40px 0;
}

.content-image img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
}

.content-image-caption {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 12px;
}
