/* --- CSS VARIABLES & RESET --- */
:root {
    --primary-green: #2ecc71;
    --dark-green: #145a32;
    --overlay-color: rgba(20, 90, 50, 0.7);
    --text-dark: #333;
    --text-light: #666;
    --white: #f3f7f4;
    --light-bg: #ffffff;
    --main-color: #145a32;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--white); color: var(--text-dark); line-height: 1.6; transition: 0.3s; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- HEADER / NAVBAR --- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 5%;
    height: 70px;

    position: fixed; /* better than absolute */
    top: 0;
    left: 0;

    width: 100%;
    box-sizing: border-box;

    z-index: 1000;
    color: var(--white);
}

/* LEFT: Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}


.logo-box {
    /* background-color: var(--primary-green); */
    color: var(--white);
    padding: 6px 1px;
    font-weight: 700;
    border-radius: 4px;
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 15px;
}

.logo-box img {
    height: 60px;
    width: auto;
}

.school-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    margin-top: 15px;
}

.school-name span:first-child {
    font-weight: 700;
    font-size: 1.5rem;
}

.school-name span:last-child {
    font-size: 0.8rem;
    opacity: 0.9;
}
  
/* CENTER: Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links li a {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links li a:hover {
    color: var(--primary-green);
}

/* RIGHT: Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-btn {
    border: 1px solid var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1;
    margin-top: -15px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.lang-btn:hover {
    background-color: var(--primary-green);
    transform: scale(1.05);
}

.admission-btn {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 8px 22px;
    border-radius: 5px;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.3s ease;
}

.admission-btn:hover {
    transform: scale(1.05);
}
/* When the class 'scrolled' is added by JS, apply these styles */
.navbar.scrolled {
    background-color: white; 
    color: black; /* Turns text black so it is visible on white */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional: adds subtle shadow */
}

/* Ensure links turn black too */
.navbar.scrolled a {
    color: black;
}

/* Ensure the language button border becomes visible */
.navbar.scrolled .lang-btn {
    border-color: black;
}
.navbar.scrolled .menu-toggle span {
    background: black;
}   

/* --- HERO SECTION --- */
.hero { height: 100vh; background: linear-gradient(var(--overlay-color), var(--overlay-color)), url('images/bg1.png'); background-size: cover; background-position: center; display: flex; flex-direction: column; background-attachment: fixed; justify-content: center; padding: 0 10%; color: var(--white); position: relative; }
.hero h1 { font-size: 4rem; font-weight: 700; margin-bottom: 10px; }
.hero h2 { font-size: 2rem; font-weight: 400; margin-bottom: 20px; }
.hero p { max-width: 600px; font-size: 1.1rem; margin-bottom: 30px; opacity: 0.9; }
.hero-title span, .hero-subtitle span { color: var(--primary-green); }  

.hero-buttons { display: flex; gap: 20px; }
.btn-primary { background-color: var(--primary-green); color: var(--white); padding: 12px 30px; border-radius: 5px; font-weight: 600; border: none; cursor: pointer; }
.btn-outline { background-color: transparent; color: var(--white); border: 2px solid var(--white); padding: 12px 30px; border-radius: 5px; font-weight: 600; cursor: pointer; }

/* --- WELCOME SECTION --- */
.welcome-section { text-align: center; padding: 80px 10%; }
.section-title { color: var(--dark-green); font-size: 2.5rem; margin-bottom: 10px; }
.section-subtitle { color: var(--primary-green); font-weight: 600; margin-bottom: 30px; font-size: 1.1rem; }
.welcome-text { color: var(--text-light); max-width: 900px; margin: 0 auto 50px auto; font-size: 1rem; }

/* --- STATS SECTION --- */
.stats-container {display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.stat-card { background: var(--light-bg); padding: 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); width:300px; text-align: center; border: 1px solid #eee; }
.stat-number { color: var(--dark-green); font-size: 2rem; font-weight: 700; margin-bottom: 5px; }
.stat-label { color: var(--text-light); font-size: 0.9rem; }

/* --- PROGRAMS SECTION --- */
.programs-section { background-color: var(--white); padding: 70px 10%; }
.programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.program-card { background: var(--light-bg); padding: 40px 30px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; border-top: 4px solid transparent; }
.program-card:hover { transform: translateY(-5px); border-top: 4px solid var(--primary-green); }
.icon-circle { width: 60px; height: 60px; background-color: #e8f5e9; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.icon-circle i { color: var(--primary-green); font-size: 1.5rem; }
.program-title { color: var(--dark-green); font-size: 1.2rem; margin-bottom: 15px; font-weight: 600; }
.program-desc { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

/* RTL Specific Adjustments */
body[dir="rtl"] .logo-container { flex-direction: row-reverse; }
body[dir="rtl"] .nav-links { flex-direction: row-reverse; }
body[dir="rtl"] .program-card { text-align: right; }
body[dir="rtl"] .icon-circle { margin-left: auto; margin-right: 0; }


body {
    margin: 0;
    padding: 0;
    /* Smooth scrolling behavior */
    scroll-behavior: smooth;
}

/* Ensure sticky elements work nicely */
.sticky {
    position: -webkit-sticky;
    position: sticky;
}



/* SECTION */
.connect-section {
  max-width: 1000px;
  margin: 80px auto;
  padding: 20px;
}

.card {
  position: relative;
  background: var(--);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #222;
  /* background: radial-gradient( var(--light-bg)  , #22a35a); */
}



/* PARTICLES */
#particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  color: var(--dark-green);
}


/* CONTENT */
.content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 50px;
  padding: 40px;
  flex-wrap: wrap;
}

/* LEFT BOX */
.animation-box {
  position: relative;
  width: 300px;
  height: 270px;
}

.center-icon {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
}

/* TAGS */
.tags {
  position: absolute;
  background: var(--primary-green);
    color: var(--white);
  border: 1px solid #444;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  opacity: 0.4;
}

#javascript { top: 20px; right: 30px; }
#react-js { top: 80px; left: 10px; }
#next-js { bottom: 30px; left: 60px; }
#typescript { bottom: 70px; right: 10px; }

/* POINTER */
#pointer {
  position: absolute;
}

.pointer {
  fill: red;
}

.label {
  background: crimson;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  margin-left: 5px;
}

/* RIGHT TEXT */
.text-box {
  max-width: 400px;
}

.text-box h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--main-color);
}

.text-box p {
  color: var(--dark-green);
  margin-bottom: 20px;
}

/* BUTTONS */
.buttons {
  display: flex;
  gap: 10px;
}

.btn {
  background: white;
  color: var(--dark-green);
  border: 1px solid #555;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
}

.btn.outline {
  background: transparent;
  color: var(--main-color);
  border: 1px solid #555;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .content {
    flex-direction: column;
    align-items: center;
  }
}


.heading h2{
    text-align: center;
    margin-top: 100px;
}

/* BACKGROUND (needs something to blur) */
.photo {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    background: var(--white);

    overflow: hidden;
}

/* EXTRA BLUR BOOST LAYER */
.photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(60px);          /* 🔥 BIG BLUR */
    transform: scale(1.4);
    z-index: 0;
}


.profile_card {
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: 28.5rem;
    height: 24rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 1.5rem;
    border-radius: 20px;

    /* ABSURD BLUR */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(50px) saturate(180%);
    -webkit-backdrop-filter: blur(50px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.65);

    box-shadow:
        0 35px 60px rgba(0, 0, 0, 0.35),
        inset 0 0 45px rgba(255, 255, 255, 0.6);
}

/* GLASS SHINE */
.profile_card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0.5),
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.4)
    );
    pointer-events: none;
}


.header {
    width: 100%;
    padding: 1rem 0;
    position: relative;
}

.box-image {
    width: 12rem;
    height: 15rem;
    overflow: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.5rem solid var(--dark-green);
    transition: 0.5s;
    margin: 0 auto;
}

.box-image img {
    height: 100%;
    width: auto; 
}

.intro {
    position: absolute;
    bottom: -65px;
    width: 100%;
    padding: 0.5rem;
    background-color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-radius: 5px;
    transition: bottom 0.5s ease;
}

.intro span {
    font-size: 1.25rem;
    color: #333;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.intro span:hover {
    transform: scale(1.1); 
}

.profile_card:hover .intro {
    bottom: 0;
}

.p-txt{
    text-align: center;
}
.heading2 {
    text-align: center;
}

.heading2 h4 {
    color: var(--main-color);
}

.social {
    background-color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.heading2 h4 {
    color: #2e7d32;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.heading2 h1 {
    margin-top: 8px;
    font-size: 32px;
}

/* Container */
.media-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    align-items: center;
    justify-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

/* Logos */
.media-container img {
    width: 130px;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hover Effect */
.media-container img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}


.newsletter {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    background-image: url(images/bg.jpg);
    background-repeat: no-repeat;
    background-position: center;
}

.newsletter h2 {
    color: #fff;
    font-size: 28px;
}

.news-box {
    display: flex;
    align-items: center;
    margin-top: 2rem;
}

/* Email Input */
.news-box input {
    width: 260px;
    height: 44px;
    border: none;
    outline: none;
    background: #fff;
    padding: 10px 14px;
    font-size: 15px;

    /* join button smoothly */
    border-radius: 6px 0 0 6px;
}

/* Subscribe Button */
.news-box .btn {
    height: 44px;
    padding: 0 18px;
    border-radius: 0 6px 6px 0;
    font-weight: 500;
    text-transform: uppercase;
    background: #2e7d32;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.news-box .btn:hover {
    background: #1b5e20;
}

/* 📱 Mobile Responsive */
@media (max-width: 480px) {
    .news-txt{
        justify-content: center;
        text-align: center;
    }
    .news-box {
        /* flex-direction: column; */
        width: 100%;
        align-items: center;
        justify-content: center;
        align-items: center;
    }

    .news-box input{
        width: 70%;
        border-radius: 6px 0 0 6px;
    }
    .news-box .btn {
        width: 30%;
        border-top-right-radius: 6px;    }

    
}


footer {
    position: relative;
    width: 100%;
    height: auto;
    padding: 50px 100px;
    background: #edecea;
}

footer .container {
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    grid-gap: 20px;
}

footer .container .sec h2 {
    position: relative;
    color: var(--dark-green);
    font-weight: 600;
    margin-bottom: 15px;
}

footer .container .sec p {
    color: #0a0a0a;
}

footer .container .sci {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, 50px);
}

footer .container .sci li {
    list-style: none;
}

footer .container .sci li a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: #2b2a2a;
    display: grid;
    align-content: center;
    justify-content: center;
    text-decoration: none;
}

footer .container .sci li a i {
    color: #fff;
    font-size: 20px;
}

footer .container .quicklink {
    position: relative;
}

footer .container .quicklink ul li {
    list-style: none;
    margin-bottom: 10px;
}

footer .container .quicklink ul {
    color: #555;
    text-decoration: none;
    display: inline-block;
}

footer .container .contact-us .info {
    position: relative;
}

footer .container .contact-us .info li {
    display: grid;
    grid-template-columns: 30px 1fr;
    margin-bottom: 16px;
}

footer .container .contact-us .info li span {
    color: #000000;
    font-weight: 20px;
    margin-bottom: 10px;
}

footer .container .contact-us .info li span a{
    color: #333;
}
footer .container .contact-us .info li a {
    color: #302f2f;
    text-decoration: none;
}

.copyright {
    width: 100%;
    background: #edecea;
    padding: 20px 100px 30px;
    text-align: center;
    color: #333333;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

/* What parents say */
.slider-section {
    max-width: 900px;
    margin: 50px auto;
    text-align: center;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.slider-wrapper {
    overflow: hidden;
    margin-bottom: 20px;
}

.slides-container {
    display: flex;
    transition: transform 0.8s ease-in-out; /* Smoother transition for auto-slide */
}

.slide {
    min-width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.quote-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.stars {
    color: #FFC107;
    font-size: 1.5rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.quote-text {
    font-size: 1.25rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: italic;
    font-weight: 500;
}

.author-name {
    color: #4CAF50;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.author-role {
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Dots */
.dots-container {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 35px;
    background-color: #4CAF50;
    border-radius: 10px;
}

/* ================= SECTION ================= */
.news {
    padding: 80px 100px;
    background: var(--white);
}

.news-heading {
    text-align: center;
    margin-bottom: 50px;
}

.news-heading h1 {
    color: #1f6f43;
    font-size: 2.6rem;
    font-weight: 700;
}

.news-heading p {
    color: #555;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* ================= GRID ================= */
.news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ================= CARD ================= */
.news-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* ================= CONTENT ================= */
.news-content {
    padding: 22px;
}

.meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #666;
}

/* TAGS */
.tag {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    
}                                                                               

.tag.admission { background: #22a35a; }
.tag.event { background: #22a35a; }
.tag.meeting { background: #22a35a; }

.news-content h3 {
    color: #1f6f43;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.news-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 992px) {
    .news {
        padding: 60px 40px;
    }

    .news-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .news {
        padding: 50px 20px;
    }

    .news-container {
        grid-template-columns: 1fr;
    }

    .news-heading h1 {
        font-size: 2rem;
    }
}
