/*
Theme Name: E-Prime
Theme URI: https://tmitstore.com
Author: Maruf Hossain
Author URI: https://tmitstore.com
Description: A modern, fast and responsive WordPress theme with Header/Footer Builder, Customizer, and full bilingual support (Bangla & English). Works with E-School Core plugin for admission & E-School ERP plugin for complete school management — or use standalone for any website.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: e-prime
Domain Path: /languages
Tags: education, school, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, right-sidebar, custom-background, custom-header, theme-options
*/

/* ============================================
   CSS VARIABLES & ROOT
   ============================================ */
:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --secondary: #34a853;
    --secondary-dark: #2d8e47;
    --accent: #fbbc04;
    --accent-dark: #e5a800;
    --danger: #ea4335;
    --text-dark: #202124;
    --text-medium: #5f6368;
    --text-light: #9aa0a6;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #e8eaed;
    --border-color: #dadce0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --font-primary: 'Noto Sans Bengali', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Noto Sans Bengali', 'Segoe UI', sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title p {
    margin-top: 15px;
    color: var(--text-medium);
    font-size: 1.05rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
    color: var(--text-dark);
}

.btn-accent:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--primary-dark);
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-right a {
    color: #fff;
    opacity: 0.8;
    transition: var(--transition);
}

.top-bar-right a:hover {
    opacity: 1;
    color: var(--accent);
}

.lang-switch {
    display: flex;
    gap: 8px;
}

.lang-switch a {
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

.lang-switch a.active {
    background: var(--accent);
    color: var(--text-dark);
    opacity: 1;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1000;
}

.header-main {
    padding: 15px 0;
    position: relative;
    background: var(--bg-white);
    z-index: 1000;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo img {
    height: auto;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.site-logo-text .school-name {
    font-weight: 700;
    line-height: 1.2;
    display: block;
}

.site-logo-text .school-tagline {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 2px;
}

/* Main Navigation */
.main-navigation {
    background: var(--primary);
}

.main-navigation .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 14px 18px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    background: rgba(255,255,255,0.1);
    border-bottom-color: var(--accent);
}

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li a {
    color: var(--text-dark);
    padding: 10px 18px;
    border-bottom: 1px solid var(--bg-gray);
    font-size: 0.9rem;
}

.nav-menu .sub-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-bottom-color: var(--bg-gray);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

.header-search {
    display: flex;
    align-items: center;
}

.header-search .search-form {
    position: relative;
}

.header-search input {
    padding: 8px 36px 8px 14px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.85rem;
    width: 180px;
    transition: var(--transition);
}

.header-search input::placeholder {
    color: rgba(255,255,255,0.6);
}

.header-search input:focus {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    outline: none;
    width: 220px;
}

.header-search button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px 8px;
}

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

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-slide {
    min-width: 100%;
    position: relative;
    height: 500px;
}

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

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.85) 0%, rgba(26, 115, 232, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: #fff;
    max-width: 700px;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slide-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.8;
}

.slide-content .btn {
    font-size: 1rem;
    padding: 14px 32px;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.4);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* ============================================
   QUICK INFO BAR
   ============================================ */
.quick-info-bar {
    background: var(--bg-white);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.quick-info-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 20px;
    background: var(--bg-white);
    border: 1px solid var(--bg-gray);
    transition: var(--transition);
}

.quick-info-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.quick-info-item .icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.quick-info-item .info h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.quick-info-item .info p {
    font-size: 0.8rem;
    color: var(--text-medium);
    margin-bottom: 0;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    background: var(--bg-white);
}

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

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image .experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    padding: 15px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.about-image .experience-badge .number {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.about-image .experience-badge .label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content .lead {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.about-feature-item .check {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ============================================
   NOTICE BOARD
   ============================================ */
.notice-section {
    background: var(--bg-light);
}

.notice-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.notice-main {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.notice-header {
    background: var(--primary);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notice-header h3 {
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-header .view-all {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

.notice-header .view-all:hover {
    color: #fff;
}

.notice-list {
    max-height: 400px;
    overflow-y: auto;
}

.notice-item {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--bg-gray);
    transition: var(--transition);
    cursor: pointer;
}

.notice-item:hover {
    background: var(--primary-light);
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-date {
    flex-shrink: 0;
    text-align: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    min-width: 60px;
}

.notice-date .day {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    display: block;
}

.notice-date .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notice-text h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notice-text p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.notice-item.urgent {
    border-left: 3px solid var(--danger);
}

.notice-item.urgent .notice-date {
    background: #fce8e6;
    color: var(--danger);
}

/* Marquee Notice */
.notice-marquee {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.notice-marquee-header {
    background: var(--danger);
    color: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-marquee-header h3 {
    color: #fff;
    font-size: 1.1rem;
}

.marquee-content {
    padding: 15px 20px;
    overflow: hidden;
    height: 300px;
}

.marquee-scroll {
    animation: marquee-scroll 15s linear infinite;
}

@keyframes marquee-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.marquee-item {
    padding: 10px 0;
    border-bottom: 1px dashed var(--bg-gray);
}

.marquee-item a {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.marquee-item a:hover {
    color: var(--primary);
}

/* ============================================
   TEACHERS SECTION
   ============================================ */
.teachers-section {
    background: var(--bg-white);
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.teacher-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.teacher-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.teacher-card .teacher-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-gray);
}

.teacher-card .teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.teacher-card .teacher-social {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.teacher-card:hover .teacher-social {
    opacity: 1;
    transform: translateY(0);
}

.teacher-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
}

.teacher-social a:hover {
    background: var(--primary);
}

.teacher-card .teacher-info {
    padding: 18px 15px;
}

.teacher-card .teacher-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.teacher-card .teacher-info .designation {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

.teacher-card .teacher-info .subject {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* ============================================
   STUDENTS SECTION
   ============================================ */
.students-section {
    background: var(--bg-light);
}

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

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.stat-card:nth-child(2) .stat-icon {
    background: #e6f4ea;
    color: var(--secondary);
}

.stat-card:nth-child(3) .stat-icon {
    background: #fef7e0;
    color: var(--accent-dark);
}

.stat-card:nth-child(4) .stat-icon {
    background: #fce8e6;
    color: var(--danger);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
    background: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 115, 232, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay .zoom-icon {
    color: #fff;
    font-size: 1.8rem;
}

/* ============================================
   RESULT SECTION
   ============================================ */
.result-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.result-section .section-title h2 {
    color: #fff;
}

.result-section .section-title h2::after {
    background: var(--accent);
}

.result-section .section-title p {
    color: rgba(255,255,255,0.8);
}

.result-search {
    max-width: 500px;
    margin: 0 auto 40px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 30px;
}

.result-search form {
    display: flex;
    gap: 10px;
}

.result-search input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1rem;
}

.result-search input::placeholder {
    color: rgba(255,255,255,0.6);
}

.result-search input:focus {
    outline: none;
    border-color: var(--accent);
}

.result-search button {
    padding: 14px 24px;
    background: var(--accent);
    color: var(--text-dark);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.result-search button:hover {
    background: var(--accent-dark);
}

.result-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.result-link-item {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.15);
}

.result-link-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.result-link-item .icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.result-link-item h4 {
    color: #fff;
    margin-bottom: 5px;
}

.result-link-item p {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ============================================
   ROUTINE SECTION
   ============================================ */
.routine-section {
    background: var(--bg-light);
}

.routine-table-wrapper {
    overflow-x: auto;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.routine-table {
    width: 100%;
    border-collapse: collapse;
}

.routine-table thead {
    background: var(--primary);
    color: #fff;
}

.routine-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.routine-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--bg-gray);
    font-size: 0.9rem;
    color: var(--text-medium);
}

.routine-table tbody tr:hover {
    background: var(--primary-light);
}

.routine-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   ADMISSION SECTION
   ============================================ */
.admission-section {
    background: var(--bg-white);
}

.admission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.admission-info h3 {
    margin-bottom: 15px;
}

.admission-info .lead {
    font-size: 1.05rem;
    color: var(--text-medium);
    margin-bottom: 25px;
    line-height: 1.8;
}

.admission-steps {
    list-style: none;
}

.admission-steps li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.admission-steps .step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.admission-steps .step-text h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.admission-steps .step-text p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.admission-form-wrapper {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 35px;
    box-shadow: var(--shadow-sm);
}

.admission-form-wrapper h3 {
    margin-bottom: 25px;
    text-align: center;
}

.admission-form .form-group {
    margin-bottom: 18px;
}

.admission-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.admission-form input,
.admission-form select,
.admission-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--bg-gray);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: var(--transition);
    font-family: var(--font-primary);
}

.admission-form input:focus,
.admission-form select:focus,
.admission-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.admission-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.admission-form .btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 1rem;
}

/* ============================================
   ID CARD SECTION
   ============================================ */
.id-card-section {
    background: var(--bg-light);
}

.id-card-preview {
    max-width: 350px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.id-card-header {
    background: var(--primary);
    color: #fff;
    padding: 15px;
    text-align: center;
}

.id-card-header .school-name {
    font-size: 1rem;
    font-weight: 700;
}

.id-card-header .school-sub {
    font-size: 0.75rem;
    opacity: 0.8;
}

.id-card-body {
    padding: 20px;
    text-align: center;
}

.id-card-body .student-photo {
    width: 100px;
    height: 120px;
    margin: 0 auto 15px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.id-card-body .student-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.id-card-body .student-details {
    text-align: left;
    font-size: 0.85rem;
}

.id-card-body .student-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dotted var(--bg-gray);
}

.id-card-body .student-details .detail-row .label {
    color: var(--text-light);
}

.id-card-body .student-details .detail-row .value {
    font-weight: 600;
    color: var(--text-dark);
}

.id-card-footer {
    background: var(--primary-light);
    padding: 10px;
    text-align: center;
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   CONTACT & MAP SECTION
   ============================================ */
.contact-section {
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-info-list .contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-list .contact-text h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.contact-info-list .contact-text p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 0;
}

.contact-form-wrapper {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 35px;
}

.contact-form .form-group {
    margin-bottom: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--bg-gray);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: var(--font-primary);
    background: var(--bg-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.map-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-top: 40px;
}

.map-wrapper iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* ============================================
   COUNTER SECTION
   ============================================ */
.counter-section {
    background: linear-gradient(135deg, var(--primary) 0%, #4285f4 100%);
    color: #fff;
    padding: 60px 0;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.counter-item .counter-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.counter-item .counter-label {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    text-decoration: none;
}

.footer-about .footer-logo .name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

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

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    align-items: flex-start;
}

.footer-contact .icon {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: var(--primary);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-bottom-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-bottom-menu li a {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    transition: color 0.3s;
}

.footer-bottom-menu li a:hover {
    color: #fff;
}

/* Footer Above */
.footer-above {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-above-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.footer-above .widget {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

/* ============================================
   PAGE & POST TEMPLATES
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #4285f4 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.page-header .breadcrumb {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.page-header .breadcrumb a:hover {
    color: #fff;
}

.page-content {
    padding: 60px 0;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.main-content {
    min-width: 0;
}

/* Sidebar */
.sidebar .widget {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.sidebar .widget-title {
    font-size: 1.05rem;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    color: var(--text-dark);
}

.sidebar .widget ul {
    list-style: none;
}

.sidebar .widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-gray);
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
}

.sidebar .widget ul li a {
    color: var(--text-medium);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar .widget ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* ============================================
   SINGLE POST / NOTICE
   ============================================ */
.single-post {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 35px;
    box-shadow: var(--shadow-sm);
}

.single-post .post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.single-post .post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.single-post .post-content {
    line-height: 1.9;
    color: var(--text-medium);
}

.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4 {
    margin: 25px 0 12px;
    color: var(--text-dark);
}

.single-post .post-content p {
    margin-bottom: 1.2rem;
}

.single-post .post-content img {
    border-radius: var(--radius-sm);
    margin: 20px 0;
}

.single-post .post-content ul,
.single-post .post-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.single-post .post-content li {
    margin-bottom: 8px;
    color: var(--text-medium);
    list-style: disc;
}

.single-post .post-content ol li {
    list-style: decimal;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--bg-gray);
    color: var(--text-medium);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    text-align: center;
    padding: 100px 0;
}

.error-404 .error-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.error-404 h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.error-404 p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 30px;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE DESIGN — 3-Tier: Mobile / Tablet / Desktop
   ============================================ */

/* ── TABLET (769px – 1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
    .teachers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .notice-board {
        grid-template-columns: 1fr 1fr;
    }
    
    .admission-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .quick-info-bar .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .students-stats,
    .counter-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .result-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .slider-slide {
        height: 420px;
    }
    
    .slide-content h2 {
        font-size: 2.2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

/* ── MOBILE (≤768px) ── */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav-menu li:hover > .sub-menu,
    .nav-menu li.menu-item-has-children.active > .sub-menu {
        display: block;
    }
    
    .nav-menu .sub-menu li a {
        color: #fff;
        padding-left: 35px;
        border-bottom-color: rgba(255,255,255,0.05);
    }
    
    .header-search {
        display: none;
    }
    
    .slider-slide {
        height: 350px;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .quick-info-bar .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid,
    .notice-board,
    .admission-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .students-stats,
    .counter-grid,
    .result-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .result-search form {
        flex-direction: column;
    }
    
    /* Header sticky on mobile */
    .header-main.is-stuck .school-tagline {
        display: none;
    }
}

/* ── SMALL MOBILE (≤480px) ── */
@media (max-width: 480px) {
    .quick-info-bar .container {
        grid-template-columns: 1fr;
    }
    
    .teachers-grid {
        grid-template-columns: 1fr;
    }
    
    .students-stats,
    .counter-grid,
    .result-links {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item:nth-child(1) {
        grid-column: span 1;
    }
    
    .admission-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .slider-slide {
        height: 280px;
    }
    
    .slide-content h2 {
        font-size: 1.4rem;
    }
    
    .slide-content p {
        font-size: 0.95rem;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
}

/* ── ESP Shortcode Page — Clean Layout ──────────────────────────── */
/* Hide archive, post meta, comments, sidebar on ESP shortcode pages */
/* Keep site header & footer — only hide content-area extras */
.esp-shortcode-page .page-header,
.esp-shortcode-page .sidebar,
.esp-shortcode-page #secondary,
.esp-shortcode-page .comments-area,
.esp-shortcode-page #comments,
.esp-shortcode-page .comment-respond,
.esp-shortcode-page .post-navigation,
.esp-shortcode-page .paging-navigation,
.esp-shortcode-page .page-links,
.esp-shortcode-page .edit-link,
.esp-shortcode-page .post-meta,
.esp-shortcode-page .entry-footer,
.esp-shortcode-page footer.entry-meta,
.esp-shortcode-page .nav-links,
.esp-shortcode-page .archive-title,
.esp-shortcode-page .page-title,
.esp-shortcode-page .breadcrumb-trail,
.esp-shortcode-page .ep-breadcrumb,
.esp-shortcode-page .entry-title,
.esp-shortcode-page h1.entry-title,
.esp-shortcode-page .post-thumbnail,
.esp-shortcode-page .cat-links,
.esp-shortcode-page .tags-links {
    display: none !important;
}

/* Page builder content — full width clean */
.page-builder-content {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}
.page-builder-content .entry-title,
.page-builder-content h1.entry-title,
.page-builder-content .post-thumbnail,
.page-builder-content .post-meta,
.page-builder-content .comments-area,
.page-builder-content .edit-link {
    display: none !important;
}
.page-builder-content .entry-content,
.page-builder-content .post-content {
    max-width: 100%;
    padding: 0;
}
.page-builder-content article {
    margin: 0;
    padding: 0;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
}

/* ESP shortcode page body layout — full width, no sidebar */
.esp-shortcode-page .content-area {
    grid-template-columns: 1fr;
    max-width: 100%;
}
.esp-shortcode-page .main-content {
    max-width: 100%;
}
.esp-shortcode-page .page-content {
    padding: 20px 0;
}

/* ── ESP Notice Bar — Push header down ─────────────────────────── */
/* When notice bar is injected via wp_body_open above #page,
   ensure it sits in normal flow above everything */
.esp-notice-bar-top + #page,
.esp-notice-bar-top + .site {
    margin-top: 0;
}

/* ── Professional Breadcrumb ────────────────────────────────────── */
.ep-breadcrumb {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
}

.ep-breadcrumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.ep-breadcrumb-inner {
    position: relative;
    z-index: 2;
    padding: 14px 0;
}

.ep-breadcrumb-path {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    line-height: 1.6;
}

.ep-breadcrumb-path a {
    text-decoration: none;
    transition: opacity 0.15s;
}

.ep-breadcrumb-path a:hover {
    opacity: 0.8;
}

.ep-breadcrumb-sep {
    user-select: none;
}

.ep-breadcrumb-current {
    /* current page — non-clickable */
}

.ep-breadcrumb-title {
    font-weight: 700;
    line-height: 1.3;
    margin: 8px 0 0;
}

@media (max-width: 768px) {
    .ep-breadcrumb-inner {
        padding: 10px 0;
    }
    .ep-breadcrumb-title {
        font-size: 20px !important;
    }
    .ep-breadcrumb-path {
        font-size: 12px !important;
    }
}
