@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Amiri:wght@400;700&display=swap');

:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --secondary: #C62828;
    --secondary-dark: #B71C1C;
    --olive: #556B2F;
    --olive-light: #DEE2C3;
    --bg: #F9FAF2;
    --bg-alt: #E8ECDA;
    --accent: #A5D6A7;
    --accent-light: #E8F5E9;
    --silver: #BDBDBD;
    --text: #333;
    --text-light: #666;
    --gold: #D4A017;
    --shadow: 0 4px 20px rgba(0, 0, 0, .1);
    --radius: 12px;
    --transition: all .3s ease
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
    max-width: 100vw
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2
}

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

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

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

/* TOP BAR */
.top-bar {
    background: var(--primary-dark);
    color: #fff;
    padding: 8px 0;
    font-size: .85rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1)
}

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

.bismillah {
    font-family: 'Amiri', serif;
    font-size: 1.1rem;
    letter-spacing: 1px
}

.top-info {
    display: flex;
    gap: 20px
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: .9
}

/* NAV */
.navbar {
    position: fixed;
    top: 35px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .08);
    transition: var(--transition)
}

.navbar.scrolled {
    top: 0;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, .12)
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0l10 30 30 10-30 10-10 30-10-30-30-10 30-10z' fill='%232e7d32' fill-opacity='0.03'/%3E%3C/svg%3E");
    background-size: 40px 40px;
    z-index: -1;
    opacity: 0.8
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary)
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
    transition: var(--transition)
}

.nav-logo:hover .logo-img {
    transform: scale(1.05)
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none
}

.nav-links a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: 4px 0
}

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

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

.nav-links a:hover {
    color: var(--primary)
}

.nav-cta {
    background: var(--secondary);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 600
}

.nav-cta:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px)
}

.nav-cta::after {
    display: none !important
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: var(--transition)
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 115px
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg-alt));
    z-index: 1
}

.hero-bg {
    position: absolute;
    inset: 0
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27, 94, 32, .85), rgba(46, 125, 50, .7), rgba(0, 0, 0, .3)), linear-gradient(to bottom, transparent 70%, var(--bg-alt))
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .25);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: .85rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600
}

.admission-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--secondary);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.8s ease-out;
}

.pulse {
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    position: relative;
}

.pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .3);
    line-height: 1.15
}

.hero h1 span {
    color: var(--accent)
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 36px;
    opacity: .9;
    font-weight: 300
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none
}

.btn-primary {
    background: #fff;
    color: var(--primary)
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, .3)
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
    border: 2px solid var(--secondary)
}

.btn-secondary:hover {
    background: transparent;
    border-color: #fff;
    transform: translateY(-3px)
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px)
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    animation: bounce 2s infinite
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0)
    }

    50% {
        transform: translateX(-50%) translateY(-10px)
    }
}

/* SECTIONS */
.section {
    padding: 90px 0;
    position: relative;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%)
}

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0L60 30 90 40 60 50 50 80 40 50 10 40 40 30z' fill='%23556B2F' fill-opacity='0.03'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1
}

.section-header .tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--primary);
    padding: 6px 20px;
    border-radius: 25px;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px
}

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

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7
}

.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg width='150' height='150' viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M150 150L130 140 100 150 110 120 80 110 110 100 120 70 130 100 160 110 130 120z' fill='%232e7d32' fill-opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom right;
    z-index: -1;
    pointer-events: none
}

.section-alt {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%)
}

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

.about-img {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow)
}

.about-img img {
    width: 100%;
    height: 400px;
    object-fit: cover
}

.about-img::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--accent);
    border-radius: var(--radius);
    transform: translate(15px, 15px);
    z-index: -1
}

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

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px
}

.values-row {
    display: flex;
    gap: 20px;
    margin: 24px 0
}

.value-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: .9rem
}

.principal-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
    border-top: 4px solid var(--primary)
}

.principal-box img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1)
}

.principal-box blockquote {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.7;
    font-size: .95rem
}

.principal-box cite {
    display: block;
    margin-top: 8px;
    font-weight: 600;
    color: var(--primary);
    font-style: normal
}

/* PROGRAMS */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px
}

.program-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden
}

.program-card:hover {
    transform: translateY(-8px);
    border-top-color: var(--primary);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .12)
}

.program-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 18px;
    background: var(--accent-light);
    color: var(--primary)
}

.program-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--primary-dark)
}

.program-card p {
    color: var(--text-light);
    font-size: .9rem;
    line-height: 1.7
}

.program-card ul {
    list-style: none;
    margin-top: 12px
}

.program-card ul li {
    padding: 4px 0;
    font-size: .85rem;
    color: var(--text-light);
    padding-left: 18px;
    position: relative
}

.program-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700
}

/* STUDENT LIFE */
.life-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px
}

.life-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition)
}

.life-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .15)
}

.life-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition)
}

.life-card:hover img {
    transform: scale(1.05)
}

.life-card-body {
    padding: 24px
}

.life-card-body h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 8px
}

.life-card-body p {
    font-size: .9rem;
    color: var(--text-light);
    line-height: 1.6
}

/* ACHIEVEMENTS */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px
}

.achievement-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee
}

.achievement-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent)
}

.achievement-card .badge-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.8rem;
    color: #fff
}

.achievement-card h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 8px
}

.achievement-card p {
    font-size: .88rem;
    color: var(--text-light);
    line-height: 1.6
}

/* TESTIMONIALS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px
}

.testimonial-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    position: relative;
    transition: var(--transition)
}

.testimonial-card:hover {
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-5px)
}

.testimonial-card .stars {
    color: var(--gold);
    margin-bottom: 16px;
    font-size: .9rem
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: .95rem
}

.parent-info .parent-name {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1rem
}

.parent-info .parent-title {
    font-size: .8rem;
    color: var(--text-light);
    margin-top: 2px
}

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition)
}

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

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(46, 125, 50, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition)
}

.gallery-item:hover .overlay {
    opacity: 1
}

.gallery-item .overlay span {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transform: translateY(10px);
    transition: var(--transition)
}

.gallery-item:hover .overlay span {
    transform: translateY(0)
}

/* ADMISSIONS */
.admissions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start
}

.admission-steps {
    list-style: none;
    counter-reset: step
}

.admission-steps li {
    counter-increment: step;
    padding: 20px 20px 20px 70px;
    position: relative;
    margin-bottom: 16px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition)
}

.admission-steps li:hover {
    transform: translateX(6px)
}

.admission-steps li::before {
    content: counter(step);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem
}

.admission-steps li h4 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 4px
}

.admission-steps li p {
    font-size: .85rem;
    color: var(--text-light)
}

.admission-info {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: var(--radius);
    padding: 40px;
    position: sticky;
    top: 100px
}

.admission-info h3 {
    font-size: 1.5rem;
    margin-bottom: 16px
}

.admission-info p {
    opacity: .9;
    line-height: 1.7;
    margin-bottom: 24px
}

.admission-info .btn {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    width: 100%;
    justify-content: center
}

.admission-info .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2)
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px
}

.contact-info-list {
    list-style: none;
    margin-bottom: 30px
}

.contact-info-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #eee
}

.contact-info-list li .icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0
}

.contact-info-list li h4 {
    font-size: .95rem;
    color: var(--primary-dark);
    margin-bottom: 3px
}

.contact-info-list li p,
.contact-info-list li a {
    font-size: .88rem;
    color: var(--text-light)
}

.contact-info-list li a:hover {
    color: var(--primary)
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    height: 220px;
    margin-bottom: 20px;
    box-shadow: var(--shadow)
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none
}

.contact-form {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow)
}

.contact-form h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 20px
}

.form-group {
    margin-bottom: 18px
}

.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    transition: var(--transition);
    background: var(--bg-alt)
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, .1)
}

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

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

/* FAQ */
.faq-grid {
    max-width: 800px;
    margin: 0 auto
}

.faq-item {
    background: #fff;
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    transition: var(--transition)
}

.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition)
}

.faq-question:hover {
    background: var(--accent-light)
}

.faq-question i {
    font-size: .8rem;
    transition: var(--transition)
}

.faq-item.active .faq-question {
    background: var(--primary);
    color: #fff
}

.faq-item.active .faq-question i {
    transform: rotate(45deg)
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all .4s ease;
    background: var(--bg)
}

.faq-item.active .faq-answer {
    padding: 20px 24px;
    max-height: 200px
}

.faq-answer p {
    font-size: .9rem;
    color: var(--text-light);
    line-height: 1.7
}

/* FOOTER */
.footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 60px 0 0;
    position: relative;
    overflow: hidden
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0l10 30 30 10-30 10-10 30-10-30-30-10 30-10z' fill='%23ffffff' fill-opacity='0.02'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none
}

.footer>* {
    position: relative;
    z-index: 1
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.footer-about .nav-logo .logo-img {
    height: 70px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2))
}

.footer-about p {
    opacity: .7;
    font-size: .88rem;
    line-height: 1.7;
    margin-top: 12px
}

.footer h4 {
    font-size: 1rem;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent)
}

.footer-links {
    list-style: none
}

.footer-links li {
    margin-bottom: 10px
}

.footer-links a {
    opacity: .7;
    font-size: .88rem;
    transition: var(--transition)
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 4px
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px)
}

.footer-newsletter {
    display: flex;
    gap: 8px;
    margin-top: 10px
}

.footer-newsletter input {
    flex: 1;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    font-size: .85rem
}

.footer-newsletter input:focus {
    outline: none;
    border-color: var(--accent)
}

.footer-newsletter button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition)
}

.footer-newsletter button:hover {
    background: var(--primary-dark);
    transform: scale(1.05)
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: .8rem;
    opacity: .5
}

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px)
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
    transition: var(--transition);
    animation: pulse 2s infinite
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, .6)
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, .4)
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, .7)
    }
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.lightbox.active {
    display: flex
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain
}

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

.lightbox-close:hover {
    transform: rotate(90deg)
}

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0)
}

.slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity .6s ease, transform .6s ease
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0)
}

.slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity .6s ease, transform .6s ease
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0)
}

/* RESPONSIVE */
/* ARABIC VIBES */
.arabic-accent {
    font-family: 'Amiri', serif;
    color: var(--primary);
    margin-left: 8px;
    font-size: 1.2em
}

.section-header h2 {
    position: relative
}

.section-header h2::after {
    content: 'العلم نور';
    position: absolute;
    top: -20px;
    right: 0;
    font-family: 'Amiri', serif;
    font-size: 3rem;
    opacity: .05;
    color: var(--primary);
    pointer-events: none
}

.section-alt .section-header h2::after {
    content: 'اقرأ';
    left: 0;
    right: auto
}

@media(max-width:992px) {
    .top-info {
        display: none
    }

    .top-bar .container {
        justify-content: center
    }

    .navbar {
        top: 35px
    }

    .navbar .container {
        height: 60px;
        padding: 0 15px
    }

    .logo-img {
        height: 40px
    }

    .nav-logo div {
        display: none
    }

    /* Hide verbose text on mobile */
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        overflow-y: auto;
        background: #fff;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 30px;
        transform: translateY(-150%);
        transition: transform .4s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
        z-index: 1001;
        display: flex !important
    }

    .nav-links.active {
        transform: translateY(0)
    }

    .hamburger {
        display: flex !important
    }

    .section-header h2::after {
        font-size: 2rem;
        top: -10px;
        opacity: .03
    }

    .about-grid,
    .admissions-content,
    .contact-grid,
    .testimonials-grid {
        grid-template-columns: 1fr
    }

    .life-grid,
    .achievements-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .hero {
        margin-top: 60px;
        height: auto;
        padding: 80px 0
    }

    .hero h1 {
        font-size: 2.2rem
    }
}

@media(max-width:576px) {
    .hero h1 {
        font-size: 1.8rem
    }

    .hero p {
        font-size: 1rem
    }

    .section {
        padding: 50px 0
    }

    .section::after {
        width: 100px;
        height: 100px
    }

    .section-header h2 {
        font-size: 1.8rem
    }

    .life-grid,
    .achievements-grid,
    .gallery-grid,
    .programs-grid,
    .footer-grid,
    .form-row,
    .testimonials-grid {
        grid-template-columns: 1fr
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%
    }

    .btn {
        width: 100%;
        justify-content: center
    }

    .values-row {
        flex-direction: column
    }

    .principal-box {
        flex-direction: column;
        text-align: center
    }
}