/* ============================================
   Golden Bridge School – Home Pages
   Design matched to Admin Dashboard theme
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
    --primary: #667eea;
    --primary-dark: #764ba2;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg: #f5f7fa;
    --white: #ffffff;
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(102, 126, 234, 0.15);
    --shadow-lg: 0 8px 30px rgba(102, 126, 234, 0.2);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ---------- NAVBAR ---------- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    padding: 14px 32px;
    border-bottom: 3px solid transparent;
    border-image: var(--gradient) 1;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.logo img {
    height: 55px;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    background: rgba(102, 126, 234, 0.08);
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 60%;
}

/* Login button */
.login a button,
.btn-primary {
    padding: 10px 22px;
    background: var(--gradient);
    border: none;
    color: var(--white);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.login a button:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Hamburger – hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: var(--transition);
}

/* ---------- WELCOME / HERO BANNER ---------- */
.welcome {
    background: var(--gradient);
    color: var(--white);
    padding: 70px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.welcome::before,
.welcome::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: float 8s ease-in-out infinite;
}

.welcome::before {
    width: 400px;
    height: 400px;
    top: -180px;
    right: -120px;
}

.welcome::after {
    width: 300px;
    height: 300px;
    bottom: -120px;
    left: -80px;
    animation-delay: 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(8deg);
    }
}

.welcome h2 {
    margin: 0 0 12px;
    font-size: 36px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.welcome p {
    margin: 0;
    font-size: 17px;
    opacity: 0.92;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* ---------- ACHIEVEMENTS / NEWS CARDS ---------- */
.achievements {
    padding: 50px 24px;
}

.achievements h2,
.facilities h2,
.history h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 30px;
    position: relative;
}

.achievements h2::after,
.facilities h2::after,
.history h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient);
    margin: 10px auto 0;
    border-radius: 3px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.achieve-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.achieve-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.achieve-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.achieve-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.achieve-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ---------- HISTORY ---------- */
.history {
    padding: 50px 24px;
}

.history p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
}

/* ---------- VISION & MISSION ---------- */
.vision-mission-wrapper {
    display: flex;
    gap: 28px;
    justify-content: center;
    align-items: stretch;
    padding: 30px 24px 50px;
    flex-wrap: wrap;
}

.vm-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    width: 340px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.vm-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.vm-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.vm-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ---------- STATS ---------- */
.stats {
    padding: 50px 24px;
    background: var(--white);
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.stat-box {
    text-align: center;
    padding: 28px 16px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(102, 126, 234, 0.3);
}

.stat-box h3 {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-box p {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* ---------- FACILITIES ---------- */
.facilities {
    padding: 50px 24px;
}

.facilities-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.facilities-box:hover {
    box-shadow: var(--shadow-md);
}

.facilities-box p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 14px;
}

.facilities-box ul {
    margin: 0 0 0 20px;
    list-style: none;
}

.facilities-box ul li {
    position: relative;
    padding: 8px 0 8px 24px;
    font-size: 15px;
    color: var(--text);
    border-bottom: 1px solid #f3f4f6;
}

.facilities-box ul li:last-child {
    border-bottom: none;
}

.facilities-box ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 14px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--gradient);
    color: var(--white);
    padding: 36px 24px 28px;
    margin-top: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    top: -150px;
    right: -80px;
}

.social-icons {
    margin-bottom: 16px;
}

.social-icons .soc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
}

.social-icons .soc img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.social-icons .soc:hover {
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-text {
    font-size: 14px;
    opacity: 0.88;
    position: relative;
    z-index: 1;
}

/* ---------- PAGE-LEVEL FADE-IN ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.5s ease-out both;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        gap: 4px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.35s ease;
        z-index: 150;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
    }

    .hamburger {
        display: flex;
    }

    .welcome {
        padding: 50px 20px;
    }

    .welcome h2 {
        font-size: 26px;
    }

    .vm-card {
        width: 100%;
    }

    .stats .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar {
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .stats .container {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .welcome h2 {
        font-size: 22px;
    }
}