/**
 Theme Name: GGWS Theme
 Theme URI: http://ggws.edu.np
 Author: Bishal Dangol
 Description: A premium, modern, and high-performance standalone theme for Gyanodaya Gurukul World School.
 Version: 8.6
 Text Domain: ggws-premium
*/

/* ==========================================================================
   DESIGN SYSTEM & GLOBAL STYLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --ggws-blue: #1a3a71;
    --ggws-orange: #f37021;
    --ggws-text: #4a4a4a;
    --ggws-light: #f8f9fa;
    --ggws-white: #ffffff;
    --ggws-font: 'Outfit', sans-serif;
    --ggws-transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    --ggws-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--ggws-font);
    color: var(--ggws-text);
    line-height: 1.6;
}

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

h1,
h2,
h3,
h4 {
    color: var(--ggws-blue);
    font-weight: 800;
    margin-top: 0;
}

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

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 18px 45px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--ggws-transition);
    cursor: pointer;
    font-size: 16px;
    border: none;
}

.btn-primary {
    background: var(--ggws-orange);
    color: #fff;
    box-shadow: 0 15px 30px rgba(243, 112, 33, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid #fff;
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(243, 112, 33, 0.4);
}

.btn-secondary:hover {
    background: #fff;
    color: var(--ggws-blue);
    transform: translateY(-5px);
}

.hero-btns,
.cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* --- HEADER --- */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu a {
    text-decoration: none;
    color: var(--ggws-blue);
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--ggws-orange);
}

.logo img {
    height: 75px;
}

/* Mobile Toggle Styles */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background: var(--ggws-blue);
    border-radius: 2px;
    transition: 0.3s;
}

/* --- HERO --- */
.hero {
    background: linear-gradient(135deg, var(--ggws-blue) 0%, #2a5298 100%);
    padding: 160px 0 240px;
    position: relative;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero h1 {
    color: #fff;
    font-size: 72px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 40px;
}

.wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* --- SECTIONS --- */
section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header span {
    color: var(--ggws-orange);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    font-size: 14px;
}

.section-header h2 {
    font-size: 48px;
    margin: 10px 0;
}

.section-header .divider {
    width: 80px;
    height: 5px;
    background: var(--ggws-orange);
    margin: 20px auto;
    border-radius: 10px;
}

/* --- DISTINCTION --- */
.dist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.dist-card {
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    color: #fff;
    background-size: cover;
    background-position: center;
    transition: var(--ggws-transition);
}

.dist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.dist-card h3 {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 32px;
    margin: 0;
}

.dist-card:hover {
    transform: translateY(-15px);
}

/* --- ACADEMIC STAGES --- */
.academic-wrapper {
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-path {
    position: absolute;
    width: 600px;
    height: 600px;
    border: 2px dashed rgba(243, 112, 33, 0.3);
    border-radius: 50%;
    z-index: 1;
}

.academic-center {
    width: 220px;
    height: 220px;
    background: var(--ggws-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    z-index: 10;
    box-shadow: 0 0 0 20px rgba(243, 112, 33, 0.1);
}

.orbiting-items {
    position: absolute;
    width: 600px;
    height: 600px;
    animation: orbit 30s linear infinite;
    z-index: 5;
}

@keyframes orbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.stage-item {
    position: absolute;
    width: 200px;
}

.stage-box {
    padding: 25px;
    border-radius: 25px;
    color: #fff;
    text-align: center;
    box-shadow: var(--ggws-shadow);
    animation: counter-orbit 30s linear infinite;
}

@keyframes counter-orbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

.stage-1 {
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
}

.stage-2 {
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
}

.stage-3 {
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
}

.stage-4 {
    top: 50%;
    left: -100px;
    transform: translateY(-50%);
}

.stage-box h4 {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

/* Pause on hover */
.academic-wrapper:hover .orbiting-items,
.academic-wrapper:hover .stage-box {
    animation-play-state: paused;
}

/* --- NEWS REDESIGNED --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 0;
}

.news-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.news-img-wrap {
    position: relative;
    overflow: hidden;
    height: 240px;
    width: 100%;
    background: #eee;
}

.news-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--ggws-blue);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    letter-spacing: 1px;
}

.news-content {
    padding: 25px 30px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-content .date {
    color: var(--ggws-orange);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.news-content h3 {
    font-size: 20px;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--ggws-blue);
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 56px;
}

.news-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.news-content h3 a:hover {
    color: var(--ggws-orange);
}

.news-content p {
    font-size: 14.5px;
    color: var(--ggws-text);
    opacity: 0.85;
    margin-bottom: 25px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 70px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--ggws-blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    margin-top: auto;
}

.read-more::after {
    content: ' →';
    transition: transform 0.3s;
    display: inline-block;
    margin-left: 5px;
}

/* Hover Actions */
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(26, 58, 113, 0.15);
}

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

.news-card:hover .read-more {
    color: var(--ggws-orange);
}

.news-card:hover .read-more::after {
    transform: translateX(5px);
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- FOOTER WAVY CTA --- */
.footer-cta-wavy {
    background: #fff;
    padding: 100px 0 200px;
    text-align: center;
    position: relative;
}

.footer-cta-wavy .btn-secondary {
    background: transparent;
    color: var(--ggws-blue);
    border: 2px solid var(--ggws-blue);
    backdrop-filter: none;
}

.footer-cta-wavy .btn-secondary:hover {
    background: var(--ggws-blue);
    color: #fff;
    transform: translateY(-5px);
}

.footer-cta-wavy h2 {
    font-size: 56px;
    margin-bottom: 20px;
}

.footer-cta-wavy p {
    font-size: 20px;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto 40px;
}

.footer-wave-top {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* --- MAIN FOOTER --- */
.ggws-footer {
    background: var(--ggws-blue);
    color: #fff;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.footer-col.center {
    text-align: center;
}

.footer-col.right-align {
    text-align: right;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 15px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    opacity: 0.7;
    transition: 0.3s;
    font-weight: 500;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--ggws-orange);
}

.footer-logo img {
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
}

.footer-col.center p {
    font-size: 15px;
    opacity: 0.7;
    max-width: 400px;
    margin: 0 auto 25px;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links a {
    color: #fff;
    font-size: 20px;
    opacity: 0.6;
    transition: 0.3s;
}

.social-links a:hover {
    opacity: 1;
    color: var(--ggws-orange);
    transform: translateY(-5px);
}

.footer-col.right-align p {
    font-size: 14px;
    opacity: 0.5;
    margin: 5px 0;
}

/* --- TEAM GRID --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--ggws-shadow);
    text-align: center;
    transition: var(--ggws-transition);
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-info {
    padding: 25px;
}

.team-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--ggws-blue);
}

.team-info .designation {
    color: var(--ggws-orange);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.team-info p {
    font-size: 14px;
    opacity: 0.7;
}

/* --- RESPONSIVE OVERHAUL --- */
.hidden-for-mobile {
    display: flex;
}

@media (max-width: 1024px) {
    .academic {
        display: none !important;
    }

    .hidden-for-mobile {
        display: none !important;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--ggws-blue);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        z-index: 1000;
        gap: 40px;
        overflow-y: auto;
        padding: 100px 20px;
    }

    .nav-menu a {
        color: #fff;
        font-size: 24px;
    }

    .nav-open .nav-menu {
        right: 0;
        display: flex !important;
    }

    /* Toggle Animation */
    .toggle-active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
        background: #fff;
    }

    .toggle-active span:nth-child(2) {
        opacity: 0;
    }

    .toggle-active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
        background: #fff;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 16px;
    }

    .about-grid,
    .principal-grid,
    .values-grid,
    .stage-detailed-grid,
    .gallery-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 30px;
    }

    .dist-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px;
    }

    .academic-wrapper {
        height: auto;
        flex-direction: column;
        gap: 30px;
        padding: 50px 0;
    }

    .orbiting-items {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        display: flex;
        flex-direction: column;
        gap: 20px;
        animation: none !important;
    }

    .stage-box {
        animation: none !important;
    }

    .footer-cta-wavy h2 {
        font-size: 32px !important;
    }

    .orbit-path {
        display: none;
    }

    .stage-item {
        position: relative;
        width: 100%;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }

    .footer-col.right-align {
        text-align: center;
    }

    .about-image img,
    .principal-img img {
        margin: 0 auto;
        width: 100%;
    }

    .logo img {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero {
        padding: 120px 0 180px;
    }

    section {
        padding: 80px 0;
    }

    .dist-grid,
    .news-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- SINGLE POST PAGE STYLES --- */
.single-post-banner {
    padding: 120px 0 100px;
    text-align: left;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.single-post-banner .breadcrumbs {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.single-post-banner .breadcrumbs a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: 0.3s;
}

.single-post-banner .breadcrumbs a:hover {
    color: var(--ggws-orange);
}

.single-post-banner .breadcrumbs span {
    color: #fff;
}

.post-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.post-top-meta .meta-left {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    font-size: 14.5px;
    color: #64748b;
    font-weight: 600;
}

.post-top-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-top-meta .meta-item i {
    font-size: 18px;
    color: var(--ggws-blue);
    line-height: 1;
}

.post-top-meta .meta-right {
    display: flex;
    align-items: center;
}

.post-top-meta .post-shares {
    display: flex;
    gap: 8px;
}

.post-top-meta .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--ggws-blue);
    transition: all 0.3s ease;
    text-decoration: none;
}

.post-top-meta .share-btn:hover {
    background: var(--ggws-blue);
    color: #fff;
    transform: translateY(-3px);
}

.post-title-heading {
    font-size: 44px;
    line-height: 1.2;
    margin: 0 0 15px 0;
    color: var(--ggws-blue);
    font-weight: 800;
}

.post-title-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
}

.post-title-divider .divider-line {
    flex-grow: 1;
    height: 2px;
    background: #e2e8f0;
}

.post-title-divider .divider-cat {
    color: var(--ggws-orange);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.5px;
}

.post-featured-image-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    margin-bottom: 40px;
}

.post-featured-image-wrap img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    display: block;
}

.post-details-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.post-details-header h2 {
    font-size: 28px;
    color: var(--ggws-blue);
    margin: 0 0 5px 0;
    font-weight: 800;
}

.post-details-header .details-author-date {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.post-body {
    font-size: 17.5px;
    line-height: 1.8;
    color: var(--ggws-text);
}

.post-body p {
    margin-bottom: 25px;
}

.post-body h2, .post-body h3, .post-body h4 {
    color: var(--ggws-blue);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 800;
}

.post-body h2 { font-size: 32px; }
.post-body h3 { font-size: 26px; }

.post-body blockquote {
    border-left: 5px solid var(--ggws-orange);
    padding: 10px 0 10px 30px;
    margin: 45px 0;
    font-style: italic;
    font-size: 21px;
    line-height: 1.6;
    color: var(--ggws-blue);
    font-weight: 500;
    background: #f8fafc;
    border-radius: 0 12px 12px 0;
}

.post-body ul, .post-body ol {
    margin-bottom: 30px;
    padding-left: 20px;
}

.post-body li {
    margin-bottom: 10px;
}

.post-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--ggws-blue);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 100px;
    font-size: 15px;
    transition: var(--ggws-transition);
}

.post-back-btn:hover {
    background: var(--ggws-orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(243, 112, 33, 0.2);
}

/* Sidebar & Widgets Redesigned */
.post-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 12px;
    color: var(--ggws-blue);
    position: relative;
    font-weight: 800;
}

.sidebar-widget h3::after {
    content: '';
    width: 45px;
    height: 2px;
    background: var(--ggws-orange);
    position: absolute;
    bottom: -2px;
    left: 0;
}

/* Search widget */
.search-field-wrap {
    position: relative;
    width: 100%;
}

.search-field-wrap .search-field {
    width: 100%;
    padding: 15px 55px 15px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 15px;
    transition: 0.3s;
    font-weight: 500;
}

.search-field-wrap .search-field:focus {
    border-color: var(--ggws-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,58,113,0.08);
}

.search-field-wrap .search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: var(--ggws-blue);
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    outline: none;
}

.search-field-wrap .search-submit:hover {
    color: var(--ggws-orange);
}

/* Categories widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list li a {
    color: var(--ggws-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

.categories-list li a:hover {
    color: var(--ggws-orange);
}

.categories-list li .cat-count {
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
}

/* Recent updates widget */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
}

.recent-post-item:last-child {
    margin-bottom: 0;
}

.recent-post-thumb {
    width: 75px;
    height: 75px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eee;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.recent-post-info .recent-post-cat {
    color: var(--ggws-orange);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-post-info a {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ggws-blue);
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.recent-post-info a:hover {
    color: var(--ggws-orange);
}

.recent-post-info .recent-post-date {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

/* Newsletter Widget */
.newsletter-widget {
    background: #f8fafc;
}

.newsletter-widget p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ggws-text);
    margin-bottom: 20px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 14.5px;
    transition: 0.3s;
    background: #fff;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--ggws-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,58,113,0.08);
}

/* Team placeholders */
.team-avatar-placeholder svg {
    transition: transform 0.4s ease;
}

.team-card:hover .team-avatar-placeholder svg {
    transform: scale(1.1);
}

/* --- FRAMER-STYLE JOURNEY MAP STYLES --- */
.journey-timeline-container {
    position: relative;
    max-width: 900px;
    margin: 60px auto 30px;
    padding: 20px 0;
}

.journey-line {
    position: absolute;
    top: 45px;
    left: 6%;
    right: 6%;
    height: 6px;
    background: rgba(26, 58, 113, 0.1);
    border-radius: 10px;
    z-index: 1;
}

.journey-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--ggws-orange) 0%, #ff9800 100%);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.journey-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    width: 140px;
    text-align: center;
    padding: 0;
}

.journey-node-dot {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
    color: #94a3b8;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.journey-node:hover .journey-node-dot,
.journey-node.active .journey-node-dot {
    transform: scale(1.18);
    border-color: var(--ggws-orange);
    color: var(--ggws-orange);
    box-shadow: 0 0 25px rgba(243, 112, 33, 0.35);
}

.journey-node.active .journey-node-dot {
    background: var(--ggws-orange);
    color: #fff;
    border-color: var(--ggws-orange);
}

.journey-node h4 {
    margin-top: 15px;
    font-size: 15px;
    font-weight: 700;
    color: #64748b;
    transition: color 0.3s;
    margin-bottom: 0;
}

.journey-node:hover h4,
.journey-node.active h4 {
    color: var(--ggws-blue);
}

.journey-details-panel {
    max-width: 900px;
    margin: 40px auto 0;
    background: #fff;
    border-radius: 24px;
    padding: 45px;
    box-shadow: var(--ggws-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    min-height: 380px;
}

.journey-slide {
    display: none;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-slide.active {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.journey-slide-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.journey-slide-info span {
    color: var(--ggws-orange);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.journey-slide-info h3 {
    font-size: 32px;
    color: var(--ggws-blue);
    margin: 0 0 15px;
    font-weight: 800;
    line-height: 1.2;
}

.journey-slide-info p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ggws-text);
    opacity: 0.9;
    margin: 0 0 25px;
}

.journey-slide-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.journey-slide-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ggws-blue);
}

.journey-slide-info li::before {
    content: "✓";
    color: var(--ggws-orange);
    font-weight: 900;
    font-size: 16px;
}

.journey-slide-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    height: 300px;
    width: 100%;
}

.journey-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Media Query Overrides */
@media (max-width: 1024px) {
    .single-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .single-post-banner h1 {
        font-size: 38px;
    }

    .journey-timeline-container {
        padding-left: 20px;
        margin: 40px auto 20px;
    }

    .journey-line {
        top: 20px;
        bottom: 20px;
        left: 45px;
        width: 6px;
        height: auto;
        right: auto;
    }

    .journey-line-progress {
        width: 100%;
        height: 0%;
    }

    .journey-nodes {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }

    .journey-node {
        flex-direction: row;
        width: 100%;
        text-align: left;
        gap: 20px;
        align-items: center;
    }

    .journey-node h4 {
        margin-top: 0;
        font-size: 16px;
    }

    .journey-details-panel {
        padding: 30px;
        min-height: auto;
    }

    .journey-slide.active {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .journey-slide-img {
        height: 220px;
        order: -1;
    }
}

/* --- SCHOOL LIFE ZIGZAG MASONRY --- */
.school-life-gallery-wrap {
    column-count: 3;
    column-gap: 30px;
    width: 100%;
}

.sl-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 30px;
    break-inside: avoid;
}

.sl-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--ggws-shadow);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    background: #000;
}

.sl-img-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.sl-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.9;
}

/* Alter heights to enforce zigzag masonry grid look */
.sl-item:nth-child(4n+1) .sl-card img {
    height: 380px;
}
.sl-item:nth-child(4n+2) .sl-card img {
    height: 250px;
}
.sl-item:nth-child(4n+3) .sl-card img {
    height: 320px;
}
.sl-item:nth-child(4n) .sl-card img {
    height: 420px;
}

.sl-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 2;
    display: flex;
    align-items: flex-end;
}

.sl-title {
    color: #fff;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Hover actions */
.sl-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.sl-card:hover img {
    transform: scale(1.05);
    opacity: 1;
}

/* --- LIGHTBOX POPUP MODAL --- */
.sl-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.sl-lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.sl-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    z-index: 1;
}

.sl-lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    font-size: 60px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    z-index: 3;
    transition: 0.3s;
    outline: none;
    line-height: 1;
}

.sl-lightbox-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.sl-lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 85%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sl-lightbox-modal.active .sl-lightbox-content {
    transform: scale(1);
}

.sl-lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    object-fit: contain;
    display: block;
}

.sl-lightbox-caption {
    margin-top: 20px;
    text-align: center;
    color: #fff;
    max-width: 600px;
}

.sl-lightbox-caption h4 {
    font-size: 24px;
    color: #fff;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.sl-lightbox-caption p {
    font-size: 15px;
    opacity: 0.8;
    line-height: 1.5;
    margin: 0;
}

/* --- NEW FRONT PAGE SECTIONS --- */
.stat-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-5px);
    border-color: rgba(243, 112, 33, 0.3) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    border-color: rgba(26, 58, 113, 0.1) !important;
}

/* Accordion Active State */
.faq-item.active {
    border-color: var(--ggws-orange) !important;
}

/* --- MOBILE RESPONSIVENESS OVERRIDES --- */
@media (max-width: 1024px) {
    .school-life-gallery-wrap {
        column-count: 2;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
}

@media (max-width: 768px) {
    .school-life-gallery-wrap {
        column-count: 1;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .front-stats-section {
        padding: 60px 0 !important;
    }
    
    .front-testimonials-section,
    .front-faq-section {
        padding: 80px 0 !important;
    }
    
    .sl-overlay {
        padding: 20px;
    }
    
    .sl-title {
        font-size: 18px;
    }
    
    .faq-toggle {
        font-size: 16px !important;
    }
    
    .faq-content p {
        font-size: 14.5px !important;
    }
    
    .sl-lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }
    
    .sl-lightbox-caption h4 {
        font-size: 18px;
    }
}