/* School Website - Main Stylesheet */
/* Kurdish-English Bilingual Website with Distinctive Design */

@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette - Inspired by Kurdish heritage with modern touch */
    --primary-red: #c1272d;
    --primary-green: #0f7f3f;
    --primary-yellow: #f9c40f;
    --deep-blue: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --sky-blue: #4a90e2;
    --warm-gold: #d4af37;
    --earth-brown: #6b4423;
    --soft-cream: #faf7f2;
    --pure-white: #ffffff;
    --dark-text: #2d3748;
    --light-gray: #e2e8f0;
    --medium-gray: #cbd5e0;
    
    /* Typography */
    --font-kurdish: 'Noto Naskh Arabic', 'Segoe UI', 'Tahoma', serif;
    --font-english: 'Crimson Text', 'Georgia', serif;
    --font-accent: 'Playfair Display', 'Georgia', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.2);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-english);
    color: var(--dark-text);
    background: linear-gradient(135deg, var(--soft-cream) 0%, #ffffff 100%);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Kurdish text direction */
body.rtl {
    direction: rtl;
    font-family: var(--font-kurdish);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.main-header {
    background: url('../images/header-background.jpg');
    background-size: cover;
    background-position: center;
    color: var(--pure-white);
     padding: 0.3rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--primary-red);
    position: relative;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2c3e50a2 0%, #34495ead 100%);
    z-index: 0;
}

.main-header .container {
    position: relative;
    z-index: 1;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.school-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.school-name {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-accent);
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.lang-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: var(--pure-white);
    cursor: pointer;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.lang-btn.active {
    background: var(--pure-white);
    color: var(--dark-text);
    box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.15);
}

/* Navigation */
.main-nav {
    padding: var(--spacing-md) 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu li a {
    display: block;
    padding: 12px 24px;
    color: var(--pure-white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.30rem;
    font-weight: bold;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--primary-red);
    transition: transform 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, 
        rgba(26, 54, 93, 0.7) 0%, 
        rgba(0, 0, 0, 0.5) 100%),
        url('../images/school-building.jpg');
    background-size: cover;
    background-position: center;
    padding: var(--spacing-xxl) 0;
    margin: var(--spacing-lg) 0;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-content {
    text-align: center;
    color: var(--pure-white);
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-accent);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* News Section */
.news-section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    text-align: center;
    color: var(--deep-blue);
    font-family: var(--font-accent);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-yellow), var(--primary-green));
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.news-card {
    background: var(--pure-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--light-gray);
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-yellow), var(--primary-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-content {
    padding: var(--spacing-md);
}

.news-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--deep-blue);
    font-family: var(--font-accent);
}

.news-excerpt {
    color: #4a5568;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #718096;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--light-gray);
}

.read-more-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--pure-white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Content Section */
.content-section {
    padding: var(--spacing-xl) 0;
    background: var(--pure-white);
    margin: var(--spacing-lg) 0;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--deep-blue);
    font-family: var(--font-accent);
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--dark-text);
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

/* Staff Grid */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) 0;
}

.staff-card {
    background: var(--pure-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--light-gray);
}

.staff-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.staff-image {
    width: 10px;
    height: 10px;
    object-fit: cover;
}

.staff-info {
    padding: var(--spacing-md);
}

.staff-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--deep-blue);
}

.staff-position {
    color: var(--sky-blue);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.staff-department {
    color: #718096;
    font-size: 0.95rem;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, #2c3e50 50%, #34495e 100%);
    color: var(--pure-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xxl);
    border-top: 4px solid var(--primary-red);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    color: var(--medium-gray);
    font-family: var(--font-accent);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--warm-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .header-top {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Kurdish RTL specific adjustments */
body.rtl .nav-menu li a::after {
    right: 50%;
    left: auto;
    transform: translateX(50%) scaleX(0);
}

body.rtl .nav-menu li a:hover::after,
body.rtl .nav-menu li a.active::after {
    transform: translateX(50%) scaleX(1);
}

body.rtl .section-title::after {
    right: 50%;
    left: auto;
    transform: translateX(50%);
}
/* Academic Staff Grid */
.academic-staff {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.staff-member {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.staff-member:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.staff-member img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.staff-info-card {
    padding: 1.5rem;
}

.staff-info-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1a365d;
}

.staff-info-card p {
    margin-bottom: 0.5rem;
    color: #4a5568;
    line-height: 1.6;
}

.staff-info-card strong {
    color: #2d3748;
}
/* ================================
   MOBILE RESPONSIVE ADDITIONS
   ================================ */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu-toggle.active {
    background: #c1272d;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Header adjustments */
    .header-top {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .logo-section {
        order: 1;
        flex: 1;
    }
    
    .mobile-menu-toggle {
        order: 2;
    }
    
    .lang-switcher {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .school-logo {
        width: 60px !important;
        height: 60px !important;
    }
    
    .school-name {
        font-size: 1rem !important;
    }
    
    /* Hide nav by default on mobile - COMPLETELY INVISIBLE */
    .main-header {
        position: relative;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #2c3e50 50%, #34495e 100%);
        backdrop-filter: blur(10px);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0s 0.4s;
        z-index: 1000;
        box-shadow: 0 8px 16px rgba(0,0,0,0.3);
        pointer-events: none;
    }
    
    .main-nav.active {
        max-height: 700px;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0s 0s;
        pointer-events: auto;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu li a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        text-align: center;
        font-size: 1rem;
        border-radius: 0;
    }
    
    .nav-menu li a::after {
        display: none;
    }
    
    /* Hero section */
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
    
    /* News grid - single column */
    .news-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Staff grid - single column */
    .staff-grid,
    .academic-staff {
        grid-template-columns: 1fr !important;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
}