/*
Theme Name: Shree Gugans School
Theme URI: https://pixelvect.com
Author: Shuvadip Sana
Author URI: https://pixelvect.com
Description: A fully custom, professional WordPress theme for Shree Gugans School. Features extensive Customizer options, dynamic forms management panel, and a custom post-types architecture.
Version: 1.0.0
Text Domain: shreegugans

=============================================================================
TABLE OF CONTENTS:
1. GLOBAL RESET & TYPOGRAPHY
2. STRUCTURAL LAYOUT UTILITIES
3. HEADER & NAVIGATION MENU OVERRIDES
   - 3.1 WordPress Native Menu Reset
   - 3.2 Dropdown / Sub-Menu Positioning & Hover Effects
   - 3.3 Mobile Header & Responsive Triggers
   - 3.4 Mobile Menu Styles (mirrors desktop)
4. INTERACTIVE SLIDESHOWS & CORE ANIMATIONS
5. INNER PAGE TEMPLATE SPECIFICS
6. GLOBAL FOOTER SPECIFICS
7. BACK TO TOP FLOATING BUTTON
8. WORDPRESS ADMIN PANEL & SAAS DASHBOARD OVERRIDES
=============================================================================
*/

/* ==========================================================================
   1. GLOBAL RESET & TYPOGRAPHY
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

body { 
    font-family: 'Poppins', sans-serif; 
    background-color: #F7F8FC; 
    color: #111827; 
    overflow-x: hidden; 
}


/* ==========================================================================
   2. STRUCTURAL LAYOUT UTILITIES
   ========================================================================== */
.section-padding { 
    padding: 60px 0; 
}

@media (max-width: 767px) { 
    .section-padding { 
        padding: 40px 0; 
    } 
}

.no-scrollbar::-webkit-scrollbar { 
    display: none; 
}

.no-scrollbar { 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}


/* ==========================================================================
   3. HEADER & NAVIGATION MENU OVERRIDES
   ========================================================================== */

/* --- 3.1 WordPress Native Menu Reset --- */
header nav {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

header nav li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

header nav > li {
    position: relative;
    display: block;
}

header nav > li > a {
    color: #1E1B4B;
    transition: color 0.2s ease-in-out;
    padding: 8px 0;
    display: inline-block;
}

header nav > li > a:hover,
header nav > li.current-menu-item > a,
header nav > li.current_page_item > a {
    color: #FF6A00;
}

/* --- 3.2 Dropdown / Sub-Menu Positioning & Hover Effects --- */
header nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: #ffffff;
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 100;
    list-style: none !important;
    margin: 0 !important;
}

header nav li.menu-item-has-children > a::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.2s ease;
    vertical-align: middle;
}

header nav li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
    color: #FF6A00;
}

header nav li.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

header nav .sub-menu li {
    display: block;
    list-style: none !important;
    padding: 0;
    margin: 0;
}

header nav .sub-menu li a {
    display: block;
    padding: 10px 18px;
    color: #4b5563;
    font-size: 13.5px;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s ease;
    white-space: nowrap;
}

header nav .sub-menu li a:hover {
    color: #FF6A00;
    background-color: #f8fafc;
}

/* --- 3.3 Mobile Header & Responsive Triggers --- */
.main-header h1, 
.main-header p {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 639px) {
    .main-header h1 {
        font-size: 15px !important;
    }
    .main-header p {
        font-size: 8px !important;
        margin-top: 2px !important;
    }
    .main-header .w-\[45px\] {
        width: 32px !important;
        height: 32px !important;
    }
}

/* --- 3.4 Mobile Menu Styles (mirrors desktop) --- */
.mobile-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mobile-menu li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu li a {
    color: #1E1B4B;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 0;
    display: inline-block;
    transition: color 0.2s ease;
    flex: 1;
}

.mobile-menu li a:hover,
.mobile-menu li.current-menu-item > a,
.mobile-menu li.current_page_item > a {
    color: #FF6A00;
}

/* Dropdown toggle button (same color as desktop arrow) */
.mobile-menu .dropdown-toggle {
    color: #1E1B4B;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 14px;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.mobile-menu .dropdown-toggle.open {
    transform: rotate(180deg);
    color: #FF6A00;
}

/* Sub-menu styling inside mobile menu */
.mobile-menu .sub-menu {
    width: 100%;
    list-style: none;
    padding-left: 1.5rem !important;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    display: none;
    background: transparent;
    border-left: 2px solid #eef2ff;
}

.mobile-menu .sub-menu.open {
    display: block;
}

.mobile-menu .sub-menu li a {
    padding: 10px 0 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
}

.mobile-menu .sub-menu li a:hover,
.mobile-menu .sub-menu li.current-menu-item a,
.mobile-menu .sub-menu li.current_page_item a {
    color: #FF6A00;
    background: transparent;
}

/* Remove the parent arrow (::after) on mobile – we use the toggle button instead */
.mobile-menu .menu-item-has-children > a::after {
    display: none !important;
}


/* ==========================================================================
   4. INTERACTIVE SLIDESHOWS & CORE ANIMATIONS
   ========================================================================== */
.glass-card { 
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 24px; 
}

.hero-slide { 
    opacity: 0; 
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out; 
    pointer-events: none; 
    position: absolute; 
    inset: 0; 
    transform: scale(0.98); 
}

.hero-slide.active { 
    opacity: 1; 
    pointer-events: auto; 
    transform: scale(1); 
    z-index: 10; 
}

.bg-slide { 
    opacity: 0; 
    transition: opacity 0.8s ease-in-out; 
}

.bg-slide.active { 
    opacity: 1; 
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}


/* ==========================================================================
   5. INNER PAGE TEMPLATE SPECIFICS
   ========================================================================== */

/* --- 5.1 About Us (Journey Overlaps) --- */
.section-padding .relative.bg-\[\#F3E8FF\] {
    background-color: #F3E8FF !important;
}

.shadow-soft {
    box-shadow: 0 10px 40px rgba(0,0,0,0.04) !important;
}

.hover\:-translate-y-1:hover {
    transform: translateY(-4px) !important;
}

.transition-transform {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* --- 5.2 Academic Framework (Uploader Spacing) --- */
.relative .bg-\[\#FFEDD5\] {
    background-color: #FFEDD5 !important;
}

.bg-gradient-to-t.from-\[\#1E1B4B\]\/90 {
    background: linear-gradient(to top, rgba(30, 27, 75, 0.9) 0%, rgba(30, 27, 75, 0.3) 60%, transparent 100%) !important;
}

.bg-\[\#E0E7FF\] {
    background-color: #E0E7FF !important;
}

/* --- 5.3 Gallery Portfolios (Grid Hover Zoom & Active Sidebar) --- */
.active-sidebar-link {
    color: #FF8A00 !important;
    font-weight: 600 !important;
}

.active-sidebar-link i {
    color: #FF8A00 !important;
}

.gallery-item img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease-in-out !important;
}

.gallery-item:hover img {
    transform: scale(1.05) !important;
}

/* --- 5.4 Mandatory Disclosures (Document Cards & Soft Shadows) --- */
.disclosure-card hover\:border-orange-300:hover {
    border-color: #FED7AA !important;
}

.disclosure-card .group:hover .group-hover\:bg-\[\#FF8A00\] {
    background-color: #FF8A00 !important;
}

.disclosure-card .group:hover .group-hover\:text-white {
    color: #ffffff !important;
}

.shadow-heavy {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06) !important;
}

/* --- 5.5 Admissions & TC Issued (Form Alignments) --- */
.tc-input { 
    border: 1px solid #e2e8f0 !important; 
    border-radius: 6px !important; 
    padding: 10px 14px !important; 
    width: 100% !important; 
    max-width: 320px !important; 
    font-size: 14px !important; 
    color: #4b5563 !important; 
    outline: none !important; 
    transition: all 0.2s ease-in-out !important; 
    background-color: #fafbfc !important;
}

.tc-input:focus { 
    border-color: #FFB703 !important; 
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.15) !important;
}

input[type="date"]::-webkit-calendar-picker-indicator { 
    opacity: 0.6;
    cursor: pointer; 
    transition: opacity 0.2s ease-in-out;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover { 
    opacity: 1; 
}

.fa-circle-check.text-\[\#3B82F6\] {
    color: #3B82F6 !important;
}

.border-r {
    border-right-width: 1px !important;
}

#tc-spinner {
    font-size: 13px;
    margin-top: 1px;
}

/* --- 5.6 Contact Us (Highlighted Inputs) --- */
.space-y-6 .hover\:-translate-y-1:hover {
    transform: translateY(-4px) !important;
}

input:focus, textarea:focus {
    border-color: #FF8A00 !important;
    box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.15) !important;
}


/* ==========================================================================
   6. GLOBAL FOOTER SPECIFICS
   ========================================================================== */
footer ul li a {
    color: #8C98CB !important;
    transition: color 0.2s ease-in-out !important;
}

footer ul li a:hover {
    color: #ffffff !important;
}

footer i.text-\[\#FFB703\] {
    color: #FFB703 !important;
}


/* ==========================================================================
   7. BACK TO TOP FLOATING BUTTON
   ========================================================================== */
#back-to-top {
    z-index: 999;
}


/* ==========================================================================
   8. WORDPRESS ADMIN PANEL & SAAS DASHBOARD OVERRIDES
   ========================================================================== */
#wpcontent { 
    background-color: #F8FAFC !important; 
}

.sg-admin-container { 
    font-family: 'Poppins', sans-serif !important; 
}

.sg-admin-container select, 
.sg-admin-container input {
    border: 1px solid #E2E8F0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    outline: none !important;
    transition: all 0.2s ease-in-out !important;
}

.sg-admin-container select:focus, 
.sg-admin-container input:focus {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}