/* --- MODERN RESET & VARIABLES --- */
:root {
    /* --- BRANDING COLORS (Pink & Orange Gradient) --- */
    --brand-gradient: linear-gradient(135deg, #FF512F 0%, #DD2476 100%);
    --brand-solid: #DD2476;
    
    --primary: #1e1e2f;    /* Dark Navy/Black */
    --secondary: #FF512F;  /* Orange Accent */
    
    --light: #FFF0F5;      /* Light pink tint */
    --dark: #0a0a0a;       /* Deep Black for Footer */
    --text-gray: #555;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(221, 36, 118, 0.15);
    --font-main: 'Google Sans', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: #333; line-height: 1.6; background: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* --- LOGO IMAGES --- */
.logo-img-header { height: 50px; width: auto; }
.logo-img-footer { height: 70px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); /* Makes SVG white if it's dark */ }

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.bg-light { background: var(--light); }
.text-gradient { background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* --- BUTTONS --- */
.btn-primary { 
    background: var(--brand-gradient); 
    color: var(--white); 
    padding: 12px 30px; 
    border-radius: 50px; 
    font-weight: 700; 
    display: inline-block; 
    box-shadow: 0 5px 15px rgba(221, 36, 118, 0.4); 
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(221, 36, 118, 0.6); }

.btn-secondary { 
    background: var(--primary); 
    color: var(--white); 
    padding: 12px 30px; 
    border-radius: 50px; 
    font-weight: 600; 
    display: inline-block;
}
.btn-secondary:hover { background: #000; }

.btn-outline { 
    background: transparent; 
    color: var(--white); 
    border: 2px solid var(--white); 
    padding: 12px 30px; 
    border-radius: 50px; 
    font-weight: 600; 
}
.btn-outline:hover { background: var(--white); color: var(--brand-solid); }

.btn-pay { 
    background: var(--white); 
    color: var(--brand-solid); 
    padding: 10px 25px; 
    border-radius: 50px; 
    font-weight: bold; 
    font-size: 0.9rem; 
    border: 2px solid var(--brand-solid);
}

/* --- TOP BAR --- */
.top-bar { background: var(--primary); color: rgba(255,255,255,0.9); font-size: 0.85rem; padding: 10px 0; }
.contact-info span { margin-right: 25px; display: inline-flex; align-items: center; }
.contact-info i { color: var(--secondary); margin-right: 8px; }
.social-login a { color: white; margin-left: 15px; }

/* --- HEADER --- */
header { background: var(--white); padding: 15px 0; position: sticky; top: 0; z-index: 1000; transition: 0.4s; border-bottom: 1px solid #eee; }
header.sticky { padding: 10px 0; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

nav ul { display: flex; gap: 30px; }
nav a { font-weight: 600; font-size: 0.95rem; color: var(--primary); position: relative; text-transform: uppercase; letter-spacing: 0.5px; }
nav a::after { content: ''; position: absolute; width: 0; height: 3px; bottom: -5px; left: 0; background: var(--brand-gradient); transition: 0.3s; }
nav a:hover { color: var(--brand-solid); }
nav a:hover::after, nav a.active::after { width: 100%; }

.mobile-menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--brand-solid); }

/* --- HERO SECTION --- */
.hero { min-height: 85vh; background: url('https://goldenrayspublicschool.in/uploads/grpsbuilding.webp') center/cover no-repeat; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: white; padding: 80px 20px; }
.hero .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255, 81, 47, 0.85), rgba(221, 36, 118, 0.85)); }
.hero-content { position: relative; z-index: 2; max-width: 900px; width: 100%; }
.badge-pill { background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.6); color: white; padding: 8px 25px; border-radius: 30px; font-size: 0.9rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; display: inline-block; margin-bottom: 25px; backdrop-filter: blur(5px); }
.hero h1 { font-family: var(--font-heading); font-size: 3.5rem; margin: 0 0 20px; line-height: 1.2; text-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; color: rgba(255,255,255,0.95); font-weight: 300; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* --- NOTICE BAR --- */
.notice-bar { display: flex; background: var(--dark); color: white; overflow: hidden; }
.notice-label { background: var(--brand-gradient); color: white; padding: 12px 20px; font-weight: 800; white-space: nowrap; z-index: 2; font-size: 0.8rem; letter-spacing: 1px; }
.marquee-container { flex-grow: 1; display: flex; align-items: center; padding: 5px 0; background: var(--white); color: var(--dark); border-bottom: 2px solid var(--brand-solid); }

/* --- COMMON SECTION STYLES --- */
.section { padding: 80px 0; }
.sub-title { background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 10px; display: block; }
.section-title { font-family: var(--font-heading); font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; position: relative; display: inline-block; line-height: 1.2; }
.section-header { margin-bottom: 50px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* --- ABOUT --- */
.about-image { position: relative; padding: 15px; }
.about-image img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.exp-box { position: absolute; bottom: 30px; right: 0; background: var(--white); padding: 20px; border-radius: 8px; box-shadow: var(--shadow); color: var(--dark); border-left: 5px solid var(--brand-solid); }

/* --- STAGES CARDS --- */
.stages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.stage-card { background: var(--white); padding: 30px 25px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s; text-align: center; border: 1px solid #f0f0f0; }
.stage-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.stage-card .icon-box { width: 65px; height: 65px; background: var(--light); color: var(--brand-solid); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 20px; transition: 0.3s; }
.stage-card:hover .icon-box { background: var(--brand-gradient); color: var(--white); }
.stage-card h3 { margin-bottom: 10px; color: var(--primary); font-family: var(--font-heading); font-size: 1.3rem; }

/* --- FACILITIES --- */
.facilities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.facility-item { position: relative; border-radius: 10px; overflow: hidden; height: 240px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.facility-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.facility-item:hover img { transform: scale(1.1); }
.facility-info { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: white; padding: 20px; display: flex; align-items: flex-end; height: 100%; }
.facility-info h3 { font-size: 1.2rem; font-weight: 600; border-bottom: 2px solid var(--brand-solid); padding-bottom: 5px; }

/* --- ADMISSIONS --- */
.admission-wrapper { display: flex; box-shadow: var(--shadow); margin: 40px 0; border-radius: 15px; overflow: hidden; background: white; flex-wrap: wrap; }
.admission-text { background: var(--brand-gradient); color: white; padding: 50px; flex: 1; min-width: 300px; }
.admission-form-card { background: var(--white); padding: 50px; flex: 1.2; min-width: 300px; }
.input-group input, .input-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; margin-bottom: 15px; }
.btn-submit { width: 100%; background: var(--brand-gradient); color: white; padding: 12px; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; text-transform: uppercase; }

/* --- STRONG FOOTER REDESIGN --- */
footer { background: #0a0a0a; color: #aaa; font-size: 0.9rem; position: relative; }
/* Gradient Top Border */
footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--brand-gradient); }

.footer-top { padding: 70px 0 40px; }
.footer-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }

.footer-widget h3 { color: white; margin-bottom: 25px; font-size: 1.1rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; position: relative; padding-bottom: 10px; }
.footer-widget h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--brand-solid); }

.footer-widget ul li { margin-bottom: 12px; }
.footer-widget ul li a { color: #aaa; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.footer-widget ul li a:hover { color: var(--brand-solid); padding-left: 5px; }
.footer-widget ul li a::before { content: '›'; font-size: 1.2rem; color: var(--brand-solid); }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 35px; height: 35px; background: #222; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: white; transition: 0.3s; }
.footer-social a:hover { background: var(--brand-gradient); transform: translateY(-3px); }

.newsletter-box input { background: #222; border: 1px solid #333; color: white; padding: 10px; width: 100%; border-radius: 4px; margin-bottom: 10px; }
.newsletter-box button { background: var(--brand-solid); color: white; border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; font-weight: bold; width: 100%; }

.footer-bottom { background: #050505; padding: 20px 0; border-top: 1px solid #1a1a1a; font-size: 0.85rem; text-align: center; color: #666; }

/* --- MOBILE RESPONSIVE (BREAKPOINT 900px) --- */
@media (max-width: 900px) {
    /* Hide Desktop Elements */
    .top-bar { display: none; }
    .btn-pay { display: none; }

    /* Header Adjustments */
    header { padding: 10px 0; }
    .logo-img-header { height: 40px; }
    
    /* Mobile Navigation */
    .mobile-menu-toggle { display: block; }
    nav { 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: white; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
        padding: 0; 
        max-height: 0; 
        overflow: hidden; 
        transition: 0.4s ease-in-out; 
    }
    nav.active { max-height: 400px; padding: 20px 0; }
    nav ul { flex-direction: column; align-items: center; gap: 20px; }
    nav a { width: 100%; display: block; text-align: center; }

    /* Hero Text */
    .hero { padding: 60px 20px; min-height: 60vh; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    
    /* Grids to Single Column */
    .grid-4, .grid-2 { grid-template-columns: 1fr; gap: 30px; }
    .stages-grid, .facilities-grid { grid-template-columns: 1fr; }
    
    /* About Section */
    .about-image { padding: 0; margin-bottom: 30px; }
    .exp-box { right: 20px; bottom: -20px; }
    
    /* Admission Form */
    .admission-wrapper { margin: 20px 0; border-radius: 10px; }
    .admission-text, .admission-form-card { padding: 30px 20px; }
    
    /* Footer */
    .footer-grid-4 { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-widget h3::after { left: 50%; transform: translateX(-50%); }
    .footer-widget ul li a { justify-content: center; }
    .footer-social { justify-content: center; }
}