/* 
  RUIA Website Styles
  Theme: Arabic & Quranic (Deep Green & Gold)
*/

:root {
    /* Color Palette */
    --primary-dark: #064e3b; /* Deep Islamic Green */
    --primary: #047857;
    --primary-light: #10b981;
    --gold: #d4af37; /* Quranic Gold */
    --gold-light: #fbe599;
    --gold-dark: #b89326;
    
    --bg-light: #fcfaf2; /* Cream/Parchment */
    --bg-white: #ffffff;
    --bg-dark: #111827;
    
    --text-dark: #1f2937;
    --text-muted: #4b5563;
    --text-light: #f9fafb;
    
    /* Typography */
    --font-heading: 'Amiri', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Variables */
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light { background-color: var(--bg-white); }
.bg-dark { background-color: var(--bg-dark); color: var(--text-light); }

/* Typography Classes */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.section-header.light h2 {
    color: var(--gold);
}

.divider {
    height: 3px;
    width: 80px;
    background: var(--gold);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.divider-left {
    height: 3px;
    width: 60px;
    background: var(--gold);
    margin: 15px 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

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

.btn-outline {
    background-color: transparent;
    border-color: var(--gold);
    color: var(--gold);
}

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

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(6, 78, 59, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    color: var(--gold);
}

.logo-ar {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1;
}

.logo-en {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--bg-light);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1564683214965-3619addd900d?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: var(--bg-white);
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.9) 0%, rgba(6, 78, 59, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero .subtitle {
    font-family: var(--font-body);
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero .title {
    font-size: 4rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.pattern-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: radial-gradient(var(--gold) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.1;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.curriculum-box {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: 30px;
    border-top: 4px solid var(--gold);
    position: relative;
}

.quran-icon {
    position: absolute;
    top: -20px;
    right: 30px;
    font-size: 2.5rem;
    color: var(--gold);
    background: var(--bg-white);
    padding: 0 10px;
}

.curriculum-box h4 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.program-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.program-list i {
    color: var(--gold);
    margin-top: 5px;
}

.about-image-container {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--gold);
    border-radius: 10px;
    z-index: -1;
}

/* Gallery Section */
.gallery-swiper {
    width: 100%;
    padding: 20px 0 50px 0;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    height: 300px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    background-color: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.8;
}

.gallery-item:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--gold) !important;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--gold) !important;
}

/* Admission Section */
.admission-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background-color: var(--primary-dark);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.admission-info {
    padding: 50px;
    color: var(--bg-white);
}

.admission-info h2 {
    color: var(--gold);
    font-size: 2.5rem;
}

.admission-info p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.requirements h4 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.requirements li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.requirements i {
    color: var(--gold);
}

.admission-form-container {
    background-color: var(--bg-white);
    padding: 50px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

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

.social-links h4 {
    color: var(--gold);
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
}

/* Footer */
.footer {
    background-color: #042f1c; /* Darker green */
    color: var(--text-light);
    padding: 40px 0 20px;
    border-top: 4px solid var(--gold);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    margin-bottom: 10px;
}

.footer-copyright {
    text-align: right;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Audio Toggle Button */
.audio-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--gold);
    color: var(--primary-dark);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
}

.audio-toggle-btn:hover {
    transform: scale(1.1);
    background-color: var(--gold-dark);
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}
.splash-content {
    max-width: 800px;
    padding: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(6, 78, 59, 0.98);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.search-overlay.active {
    opacity: 1;
    visibility: visible;
}
.close-search {
    position: absolute;
    top: 30px; right: 30px;
    background: none; border: none;
    color: white; font-size: 2rem;
    cursor: pointer;
}
.search-container {
    width: 90%;
    max-width: 800px;
}
#search-input {
    width: 100%;
    padding: 20px;
    font-size: 1.5rem;
    border: none;
    border-bottom: 2px solid var(--gold);
    background: transparent;
    color: white;
    outline: none;
}
#search-input::placeholder { color: rgba(255,255,255,0.5); }
.search-results {
    margin-top: 20px;
    max-height: 60vh;
    overflow-y: auto;
    text-align: left;
}
.search-result-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    display: block;
    transition: background 0.3s;
}
.search-result-item:hover {
    background: rgba(255,255,255,0.1);
}
.search-result-title { font-weight: bold; color: var(--gold); margin-bottom: 5px; }
.search-result-text { font-size: 0.9rem; color: #ccc; }

/* Responsive Design */
@media (max-width: 992px) {
    .hero .title { font-size: 3rem; }
    .about-grid, .admission-wrapper, .contact-grid {
        grid-template-columns: 1fr;
    }
    .admission-info, .admission-form-container {
        padding: 30px;
    }
    .map-container { height: 300px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-dark);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
    }
    
    .nav-links.active {
        max-height: 300px;
        padding: 10px 0;
    }
    
    .nav-links li {
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 15px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero .title { font-size: 2.5rem; }
    .section-padding { padding: 60px 0; }
    .form-row { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; justify-content: center; }
    .footer-copyright { text-align: center; }
}
