/*
Theme Name: Greenway Modern School 2 Theme
Theme URI: https://greenwaymodernschool.com
Author: Your Name
Author URI: https://greenwaymodernschool.com
Description: Custom WordPress theme for Greenway Modern School 2, Puhana, Uttarakhand - CBSE School - fully manageable by admin
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dps-custom
*/

/* ========================================
   CSS RESET & BASE STYLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ========================================
   HEADER STYLES
======================================== */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: #185946;
    color: #fff;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-left a,
.top-bar-right a {
    color: #fff;
    margin: 0 15px;
    font-size: 14px;
}

.top-bar-left a:hover,
.top-bar-right a:hover {
    color: #fbbf24;
}

.main-header {
    padding: 2px 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo img {
    height: 70px;
    width: auto;
}

.site-logo h2 {
    color: #fff !important;
}

/* Navigation Menu */
.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul li {
    position: relative;
    list-style: none;
}

.main-navigation ul li a {
    color: #185946;
    font-weight: 500;
    font-size: 15px;
    padding: 6px 6px;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    color: #fbbf24;
}

/* Dropdown indicator */
.main-navigation ul li.menu-item-has-children > a:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 12px;
}

/* Dropdown Menu */
.main-navigation ul li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #185946;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    min-width: 250px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    z-index: 9999;
    border-top: 3px solid #fbbf24;
}

.main-navigation ul li:hover > ul.sub-menu {
    display: block;
}

.main-navigation ul li ul.sub-menu li {
    position: relative;
}

.main-navigation ul li ul.sub-menu li a {
    padding: 12px 20px;
    color: #fff;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.main-navigation ul li ul.sub-menu li:last-child a {
    border-bottom: none;
}

.main-navigation ul li ul.sub-menu li a:hover {
    background: rgba(255,255,255,0.1);
    padding-left: 25px;
}

/* Third Level Dropdown */
.main-navigation ul li ul.sub-menu li ul.sub-menu {
    top: 0;
    left: 100%;
    margin-left: 0;
}

.main-navigation ul li ul.sub-menu li.menu-item-has-children > a:after {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    float: right;
    margin-left: 10px;
}

.main-navigation ul li ul.sub-menu li:hover > ul.sub-menu {
    display: block;
}

.admission-btn {
    background: #fbbf24;
    color: #185946;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
}

.admission-btn:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle:hover {
    color: #fbbf24;
}

/* ========================================
   HERO SLIDER SECTION
======================================== */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.slider-item {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-item.video-slider {
    background: #000;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-content {
    text-align: center;
    color: #fff;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.slider-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slider-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.5);
}

/* ========================================
   SECTION STYLES
======================================== */
.section {
    padding: 80px 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: #185946;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #fbbf24;
}

.section-title p {
    color: #666;
    font-size: 18px;
}

/* ========================================
   ABOUT SECTION
======================================== */
.about-section {
    background: #f9fafb;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    color: #185946;
    margin-bottom: 20px;
}

.about-text p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ========================================
   SCHOOL WINGS SECTION
======================================== */
.wings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.wing-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.wing-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.wing-card-content {
    padding: 20px;
    text-align: center;
}

.wing-card-content h4 {
    font-size: 20px;
    color: #185946;
    margin-bottom: 10px;
}

.wing-card-content p {
    color: #666;
    font-size: 14px;
}

/* ========================================
   FEATURES SECTION
======================================== */
.features-section {
    background: linear-gradient(135deg, #185946 0%, #20a05d 100%);
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-box {
    text-align: center;
    padding: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-box h4 {
    font-size: 22px;
    margin-bottom: 15px;
}

.feature-box p {
    opacity: 0.9;
}

/* ========================================
   TESTIMONIALS SECTION
======================================== */
.testimonials-section {
    background: #f9fafb;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-info h5 {
    color: #185946;
    font-size: 18px;
    margin-bottom: 5px;
}

.testimonial-info span {
    color: #666;
    font-size: 14px;
}

.testimonial-text {
    color: #666;
    line-height: 1.8;
    font-style: italic;
}

/* ========================================
   BLOG SECTION
======================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-date {
    color: #fbbf24;
    font-size: 14px;
    margin-bottom: 10px;
}

.blog-content h4 {
    color: #185946;
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-content p {
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    color: #185946;
    font-weight: 600;
}

.read-more:hover {
    color: #fbbf24;
}

/* ========================================
   FOOTER STYLES
======================================== */
.site-footer {
    background: #1e293b;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fbbf24;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #cbd5e1;
}

.footer-widget ul li a:hover {
    color: #fbbf24;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.social-links a:hover {
    background: #fbbf24;
    color: #185946;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #185946;
    color: #fff;
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #fbbf24;
    color: #185946;
}

.btn-secondary:hover {
    background: #f59e0b;
}

/* ========================================
   FLOATING CONTACT BUTTONS
======================================== */
.floating-contact-buttons {
    position: fixed;
    left: 20px;
    top: 60%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
}

.contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.call-btn {
    background: #ff0000;
}

.call-btn span {
    position: absolute;
    font-size: 11px;
    font-weight: bold;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.email-btn {
    background: #4285f4;
}

.whatsapp-btn {
    background: #25d366;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {
    .wings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #185946;
        display: none;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-navigation ul li a {
        padding: 15px 20px;
        width: 100%;
    }
    
    .main-navigation ul li ul.sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(0,0,0,0.2);
        display: none;
        margin: 0;
    }
    
    .main-navigation ul li.active > ul.sub-menu {
        display: block;
    }
    
    .main-navigation ul li ul.sub-menu li ul.sub-menu {
        left: 0;
        margin-left: 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .wings-grid,
    .features-grid,
    .testimonials-grid,
    .blog-grid,
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .slider-content h1 {
        font-size: 32px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .floating-contact-buttons {
        right: 10px;
        gap: 10px;
    }
    
    .contact-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .call-btn {
        width: 60px;
        height: 60px;
    }
}

