/* =========================================
GRACESPRINGS GROUP OF SCHOOLS
MAIN STYLESHEET
========================================= */

:root {
--dark-blue: #061A40;
--blue: #0B2A5B;
--bright-blue: #1E5AA8;
--gold: #F4B942;
--white: #FFFFFF;
--light: #F5F8FC;
--text: #27313f;
--grey: #68717f;
--shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }

html {
scroll-behavior: smooth;
}

body {
font-family: "Montserrat", sans-serif;
background: var(--white);
color: var(--text);
line-height: 1.7;
overflow-x: hidden;
}

a {
text-decoration: none;
color: inherit;
}

img {
width: 100%;
display: block;
}

.section-padding {
padding: 90px 8%;
}

/* =========================================
TOP BAR
========================================= */

.top-bar {
background: var(--dark-blue);
color: white;
padding: 10px 8%;
font-size: 0.85rem;
}

.top-container {
max-width: 1300px;
margin: auto;
display: flex;
justify-content: space-between;
gap: 20px;
}

.top-contact,
.top-links {
display: flex;
gap: 20px;
}

.top-links a {
transition: 0.3s;
}

.top-links a:hover {
color: var(--gold);
}

/* =========================================
NAVIGATION
========================================= */

header {
background: white;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar {
min-height: 88px;
padding: 12px 6%;
max-width: 1450px;
margin: auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 25px;
}

.logo-section {
display: flex;
align-items: center;
gap: 12px;
}

.logo-item {
display: flex;
align-items: center;
gap: 15px;
}

.logo-placeholder {
width: 48px;
height: 48px;
border-radius: 50%;
display: grid;
place-items: center;
color: white;
font-weight: 800;
}

.s{
    width: 50px;

}
.t{
    width: 60px;
    
}

.logo-divider {
width: 1px;
height: 50px;
background: #d9dce2;
}

.logo-text {
display: flex;
flex-direction: column;
line-height: 1.2;
}

.logo-text strong {
font-size: 0.72rem;
color: var(--dark-blue);
}

.logo-text span {
font-size: 0.68rem;
color: var(--grey);
}

.nav-links {
list-style: none;
display: flex;
align-items: center;
gap: 23px;
}

.nav-links li {
position: relative;
}

.nav-links a {
font-size: 0.84rem;
font-weight: 600;
transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
color: var(--bright-blue);
}

.dropdown-menu {
display: none;
position: absolute;
top: 30px;
left: 0;
background: white;
width: 190px;
padding: 10px 0;
box-shadow: var(--shadow);
border-radius: 5px;
}

.dropdown-menu a {
display: block;
padding: 10px 15px;
}

.dropdown:hover .dropdown-menu {
display: block;
}

.admission-btn {
background: var(--gold);
color: var(--dark-blue);
padding: 13px 20px;
font-size: 0.78rem;
font-weight: 800;
transition: 0.3s;
}

.admission-btn:hover {
background: var(--dark-blue);
color: white;
transform: translateY(-3px);
}

.menu-toggle {
display: none;
font-size: 1.8rem;
cursor: pointer;
}

/* =========================================
HERO SLIDER
========================================= */

.hero {
position: relative;
height: 720px;
overflow: hidden;
}

.hero-slide {
position: absolute;
inset: 0;
opacity: 0;
visibility: hidden;
transition: opacity 1s ease, transform 1s ease;
transform: scale(1.05);
}

.hero-slide.active {
opacity: 1;
visibility: visible;
transform: scale(1);
}

.hero-slide img {
width: 100%;
height: 100%;
object-fit: cover;
}

.hero-overlay {
position: absolute;
inset: 0;
background: linear-gradient(
90deg,
rgba(6, 26, 64, 0.9),
rgba(6, 26, 64, 0.45),
rgba(6, 26, 64, 0.15)
);
}

.hero-content {
position: absolute;
top: 50%;
left: 9%;
transform: translateY(-50%);
max-width: 750px;
color: white;
}

.hero-small {
color: var(--gold);
font-size: 0.85rem;
font-weight: 700;
letter-spacing: 2px;
margin-bottom: 15px;
}

.hero-content h1 {
font-family: "Playfair Display", serif;
font-size: clamp(2.8rem, 6vw, 5.5rem);
line-height: 1.05;
margin-bottom: 25px;
}

.hero-content > p:not(.hero-small) {
max-width: 650px;
font-size: 1.05rem;
margin-bottom: 30px;
}

.hero-buttons {
display: flex;
flex-wrap: wrap;
gap: 15px;
}

.btn {
padding: 15px 25px;
font-size: 0.85rem;
font-weight: 700;
transition: 0.3s;
display: inline-block;
}

.btn-primary {
background: var(--gold);
color: var(--dark-blue);
}

.btn-primary:hover {
transform: translateY(-5px);
box-shadow: var(--shadow);
}

.btn-outline {
border: 2px solid white;
color: white;
}

.btn-outline:hover {
background: white;
color: var(--dark-blue);
}

.btn-gold {
background: var(--gold);
color: var(--dark-blue);
}

.slider-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 52px;
height: 52px;
border: none;
background: rgba(255, 255, 255, 0.2);
color: white;
font-size: 1.4rem;
cursor: pointer;
transition: 0.3s;
}

.slider-btn:hover {
background: var(--gold);
color: var(--dark-blue);
}

.prev {
left: 20px;
}

.next {
right: 20px;
}

.slider-dots {
position: absolute;
bottom: 25px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 10px;
}

.dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: white;
opacity: 0.5;
cursor: pointer;
}

.dot.active {
opacity: 1;
background: var(--gold);
}

/* =========================================
QUICK ACCESS
========================================= */

.quick-access {
width: 88%;
max-width: 1250px;
margin: -55px auto 0;
position: relative;
z-index: 10;
display: grid;
grid-template-columns: repeat(4, 1fr);
box-shadow: var(--shadow);
}

.quick-card {
background: white;
padding: 25px;
display: flex;
gap: 15px;
align-items: center;
transition: 0.3s;
}

.quick-card:hover {
background: var(--dark-blue);
color: white;
transform: translateY(-8px);
}

.quick-card:hover p {
color: #dce6f5;
}

.quick-icon {
font-size: 2rem;
}

.quick-card h3 {
font-size: 0.95rem;
}

.quick-card p {
font-size: 0.72rem;
color: var(--grey);
}

/* =========================================
SECTION HEADINGS
========================================= */

.section-heading {
text-align: center;
max-width: 750px;
margin: 0 auto 50px;
}

.section-tag {
color: var(--bright-blue);
font-weight: 800;
font-size: 0.78rem;
letter-spacing: 2px;
margin-bottom: 12px;
}

.section-heading h2,
.welcome-text h2 {
font-family: "Playfair Display", serif;
color: var(--dark-blue);
font-size: clamp(2rem, 4vw, 3.3rem);
line-height: 1.2;
margin-bottom: 15px;
}

.section-heading > p:last-child {
color: var(--grey);
}

/* =========================================
WELCOME
========================================= */

.welcome-container {
max-width: 1250px;
margin: auto;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 80px;
align-items: center;
}

.welcome-image {
position: relative;
}

.welcome-image img {
height: 520px;
object-fit: cover;
}

.experience-box {
position: absolute;
right: -30px;
bottom: 40px;
background: var(--dark-blue);
color: white;
padding: 30px;
max-width: 200px;
}

.experience-box span {
font-size: 2.5rem;
color: var(--gold);
font-weight: 800;
}

.experience-box p {
font-size: 0.8rem;
}

.welcome-text h2 span {
color: var(--bright-blue);
}

.welcome-text > p:not(.section-tag) {
color: var(--grey);
margin-bottom: 20px;
}

.read-more {
color: var(--bright-blue);
font-weight: 800;
}

/* =========================================
SCHOOLS
========================================= */

.schools-section {
background: var(--light);
}

.school-cards {
max-width: 1150px;
margin: auto;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 35px;
}

.school-card {
background: white;
overflow: hidden;
box-shadow: var(--shadow);
transition: 0.4s;
}

.school-card:hover {
transform: translateY(-10px);
}

.school-image {
overflow: hidden;
height: 300px;
}

.school-image img {
height: 100%;
object-fit: cover;
transition: 0.7s;
}

.school-card:hover .school-image img {
transform: scale(1.1);
}

.school-content {
padding: 35px;
}

.school-badge {
color: var(--bright-blue);
font-size: 0.7rem;
font-weight: 800;
margin-bottom: 10px;
}

.school-content h3 {
font-family: "Playfair Display", serif;
color: var(--dark-blue);
font-size: 1.8rem;
margin-bottom: 12px;
}

.school-content p {
color: var(--grey);
margin-bottom: 20px;
}

.school-content a {
color: var(--bright-blue);
font-weight: 800;
}

/* =========================================
WHY CHOOSE US
========================================= */

.why-section {
background: var(--dark-blue);
}

.light-heading h2 {
color: white;
}

.light-heading .section-tag {
color: var(--gold);
}

.why-grid {
max-width: 1200px;
margin: auto;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 25px;
}

.why-card {
background: rgba(255, 255, 255, 0.07);
color: white;
padding: 35px 25px;
border: 1px solid rgba(255, 255, 255, 0.1);
transition: 0.3s;
}

.why-card:hover {
transform: translateY(-10px);
background: var(--bright-blue);
}

.why-icon {
font-size: 2.3rem;
margin-bottom: 20px;
}

.why-card h3 {
margin-bottom: 12px;
}

.why-card p {
font-size: 0.85rem;
color: #d9e1ec;
}

/* =========================================
STATS
========================================= */

.stats-section {
position: relative;
padding: 100px 8%;
background-image:
url("https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=1600&q=80");
background-size: cover;
background-position: center;
}

.stats-overlay {
position: absolute;
inset: 0;
background: rgba(6, 26, 64, 0.9);
}

.stats-container {
position: relative;
max-width: 1100px;
margin: auto;
display: grid;
grid-template-columns: repeat(4, 1fr);
text-align: center;
color: white;
}

.stat-item h2 {
color: var(--gold);
font-size: 3.5rem;
}

.stat-item h2::after {
content: "+";
}

.stat-item p {
font-size: 0.9rem;
}

/* =========================================
CTA
========================================= */

.admission-cta {
background: var(--bright-blue);
color: white;
text-align: center;
padding: 90px 8%;
}

.cta-content {
max-width: 850px;
margin: auto;
}

.cta-content p {
color: var(--gold);
font-weight: 800;
letter-spacing: 2px;
font-size: 0.75rem;
margin-bottom: 15px;
}

.cta-content h2 {
font-family: "Playfair Display", serif;
font-size: clamp(2rem, 4vw, 3.5rem);
line-height: 1.2;
margin-bottom: 30px;
}

/* =========================================
PAGE HERO
========================================= */

.page-hero {
min-height: 380px;
position: relative;
display: grid;
place-items: center;
color: white;
text-align: center;
background-size: cover;
background-position: center;
}

.page-hero::before {
content: "";
position: absolute;
inset: 0;
background: rgba(6, 26, 64, 0.8);
}

.page-hero-content {
position: relative;
z-index: 2;
}

.page-hero h1 {
font-family: "Playfair Display", serif;
font-size: clamp(2.5rem, 6vw, 5rem);
}

.page-hero p {
color: var(--gold);
margin-top: 10px;
}

/* =========================================
GENERAL CONTENT
========================================= */

.content-container {
max-width: 1150px;
margin: auto;
}

.two-column {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
align-items: center;
}

.two-column img {
height: 450px;
object-fit: cover;
}

.text-content h2 {
font-family: "Playfair Display", serif;
color: var(--dark-blue);
font-size: 2.6rem;
margin-bottom: 20px;
}

.text-content p {
color: var(--grey);
margin-bottom: 15px;
}

/* =========================================
VALUES
========================================= */

.values-grid,
.programme-grid,
.facility-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 25px;
}

.value-card,
.programme-card,
.facility-card {
padding: 35px;
background: var(--light);
transition: 0.3s;
}

.value-card:hover,
.programme-card:hover,
.facility-card:hover {
transform: translateY(-8px);
box-shadow: var(--shadow);
}

.value-card h3,
.programme-card h3,
.facility-card h3 {
color: var(--dark-blue);
margin-bottom: 12px;
}

.value-card p,
.programme-card p,
.facility-card p {
color: var(--grey);
font-size: 0.9rem;
}

/* =========================================
ADMISSIONS
========================================= */

.steps-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}

.step-card {
padding: 35px 25px;
background: white;
box-shadow: var(--shadow);
}

.step-number {
width: 50px;
height: 50px;
border-radius: 50%;
background: var(--dark-blue);
color: var(--gold);
display: grid;
place-items: center;
font-weight: 800;
margin-bottom: 20px;
}

.step-card h3 {
color: var(--dark-blue);
margin-bottom: 10px;
}

.admission-form {
max-width: 900px;
margin: auto;
padding: 45px;
background: var(--light);
}

.form-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}

.form-group {
margin-bottom: 20px;
}

.form-group.full {
grid-column: 1 / -1;
}

.form-group label {
display: block;
font-weight: 700;
margin-bottom: 8px;
color: var(--dark-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
width: 100%;
padding: 14px;
border: 1px solid #d7dce5;
font-family: inherit;
outline: none;
}

.form-group textarea {
min-height: 130px;
resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
border-color: var(--bright-blue);
}

.submit-btn {
border: none;
background: var(--dark-blue);
color: white;
padding: 15px 28px;
font-weight: 800;
cursor: pointer;
transition: 0.3s;
}

.submit-btn:hover {
background: var(--bright-blue);
}

/* =========================================
GALLERY
========================================= */

.gallery-grid {
max-width: 1200px;
margin: auto;
columns: 3 300px;
column-gap: 20px;
}

.gallery-item {
break-inside: avoid;
margin-bottom: 20px;
overflow: hidden;
position: relative;
}

.gallery-item img {
transition: 0.5s;
}

.gallery-item:hover img {
transform: scale(1.1);
}

/* =========================================
NEWS
========================================= */

.news-grid {
max-width: 1150px;
margin: auto;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 25px;
}

.news-card {
box-shadow: var(--shadow);
background: white;
}

.news-card img {
height: 230px;
object-fit: cover;
}

.news-content {
padding: 25px;
}

.news-date {
color: var(--bright-blue);
font-size: 0.75rem;
font-weight: 800;
}

.news-content h3 {
color: var(--dark-blue);
margin: 10px 0;
}

.news-content p {
color: var(--grey);
font-size: 0.85rem;
}

/* =========================================
CONTACT
========================================= */

.contact-grid {
display: grid;
grid-template-columns: 1fr 1.5fr;
gap: 40px;
}

.contact-info {
background: var(--dark-blue);
color: white;
padding: 45px;
}

.contact-info h2 {
font-family: "Playfair Display", serif;
margin-bottom: 25px;
}

.contact-info div {
margin-bottom: 25px;
}

.contact-info h4 {
color: var(--gold);
margin-bottom: 5px;
}

/* =========================================
FOOTER
========================================= */

footer {
background: #041127;
color: white;
}

.footer-container {
max-width: 1250px;
margin: auto;
padding: 70px 8%;
display: grid;
grid-template-columns: 2fr 1fr 1fr 1.5fr;
gap: 40px;
}

.footer-column h3,
.footer-column h4 {
margin-bottom: 20px;
color: var(--gold);
}

.footer-column p,
.footer-column a {
display: block;
color: #bfc8d7;
font-size: 0.85rem;
margin-bottom: 10px;
}

.footer-column a:hover {
color: white;
}

.footer-bottom {
border-top: 1px solid rgba(255, 255, 255, 0.1);
text-align: center;
padding: 20px;
font-size: 0.75rem;
color: #bfc8d7;
}

/* =========================================
BACK TO TOP
========================================= */

#backToTop {
position: fixed;
right: 25px;
bottom: 25px;
width: 45px;
height: 45px;
border: none;
background: var(--gold);
color: var(--dark-blue);
font-size: 1.3rem;
cursor: pointer;
opacity: 0;
visibility: hidden;
transition: 0.3s;
z-index: 1000;
}

#backToTop.show {
opacity: 1;
visibility: visible;
}

/* =========================================
SCROLL ANIMATIONS
========================================= */

.reveal-left,
.reveal-right,
.reveal-up {
opacity: 0;
transition: 0.9s ease;
}

.reveal-left {
transform: translateX(-80px);
}

.reveal-right {
transform: translateX(80px);
}

.reveal-up {
transform: translateY(60px);
}

.reveal-left.show,
.reveal-right.show,
.reveal-up.show {
opacity: 1;
transform: translate(0, 0);
}

/* =========================================
RESPONSIVE
========================================= */

@media (max-width: 1100px) {


.navbar {
    gap: 15px;
}

.nav-links {
    gap: 13px;
}

.why-grid {
    grid-template-columns: repeat(2, 1fr);
}

.quick-access {
    grid-template-columns: repeat(2, 1fr);
}

.steps-grid {
    grid-template-columns: repeat(2, 1fr);
}


}

@media (max-width: 850px) {


.top-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.top-contact,
.top-links {
    flex-wrap: wrap;
    justify-content: center;
}

.navbar {
    padding: 12px 5%;
}

.nav-links {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
    box-shadow: var(--shadow);
}

.nav-links.active {
    display: flex;
}

.dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    width: 100%;
    padding-left: 15px;
}

.menu-toggle {
    display: block;
    margin-left: auto;
}

.admission-btn {
    display: none;
}

.hero {
    height: 620px;
}

.slider-btn {
    display: none;
}

.welcome-container,
.two-column,
.contact-grid {
    grid-template-columns: 1fr;
}

.school-cards,
.news-grid {
    grid-template-columns: 1fr;
}

.values-grid,
.programme-grid,
.facility-grid {
    grid-template-columns: repeat(2, 1fr);
}

.stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-container {
    grid-template-columns: repeat(2, 1fr);
}


}

@media (max-width: 600px) {


.section-padding {
    padding: 70px 5%;
}

.logo-section {
    gap: 5px;
}

.logo-text strong {
    font-size: 0.58rem;
}

.logo-text span {
    font-size: 0.55rem;
}

.logo-placeholder {
    width: 38px;
    height: 38px;
    font-size: 0.7rem;
}

.logo-divider {
    height: 40px;
}

.quick-access {
    width: 90%;
    grid-template-columns: 1fr;
    margin-top: 0;
}

.hero-content {
    left: 6%;
    right: 6%;
}

.hero-content h1 {
    font-size: 3rem;
}

.hero-buttons {
    flex-direction: column;
    align-items: flex-start;
}

.experience-box {
    right: 0;
    bottom: 0;
}

.why-grid,
.values-grid,
.programme-grid,
.facility-grid,
.steps-grid,
.form-grid {
    grid-template-columns: 1fr;
}

.form-group.full {
    grid-column: auto;
}

.stats-container {
    grid-template-columns: 1fr 1fr;
}

.stat-item h2 {
    font-size: 2.5rem;
}

.footer-container {
    grid-template-columns: 1fr;
}

.admission-form {
    padding: 25px;
}

.page-hero {
    min-height: 300px;
}


}

