/*
Theme Name: Edugates
Theme URI: https://edugates.school
Author: Mr. Biswas (developed with Claude AI)
Author URI: https://edugates.school
Description: Custom WordPress theme for Edugates Integrated School (EIS), Dhaka. A Bengali Islamic school website with English content, featuring sections for programmes, curriculum, team, admission, gallery, and videos.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: edugates
Tags: education, school, custom-theme, islamic-school
*/

/* ═══════════════════════════════════════════════════════
   GLOBAL CSS VARIABLES — Brand colors, typography, radii
   Ported exactly from HTML version to preserve design
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand greens (used throughout site) */
  --green-1: #3ed337;
  --green-2: #6ee81e;
  --green-3: #aaf50e;
  --yellow-green: #d9f812;

  /* Brand navy (titles, accents) */
  --navy: #1e1e7a;
  --navy-dark: #15155c;
  --navy-deep: #0c0c3d;

  /* Brand orange (CTAs, highlights) */
  --orange: #f57c2e;
  --orange-light: #ff9652;

  /* Neutrals */
  --white: #ffffff;
  --cream: #faffef;
  --ink: #1a1a2e;
  --ink2: #3a3a52;
  --ink3: #6a6a7e;
  --line: #e8e8f0;

  /* Gradients used in sliders/banners */
  --banner-gradient: linear-gradient(135deg, var(--green-1) 0%, var(--green-2) 35%, var(--green-3) 65%, var(--yellow-green) 100%);

  /* Typography */
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Poppins', sans-serif;

  /* Radii */
  --r4: 6px;
  --r8: 10px;
  --r12: 14px;
  --r16: 18px;
  --r24: 26px;
}

/* ═══════════════════════════════════════════════════════
   BASE / RESET
   ═══════════════════════════════════════════════════════ */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  background: #fff;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ═══════════════════════════════════════════════════════
   WORDPRESS-SPECIFIC OVERRIDES
   These ensure WP admin bar, alignments etc. work correctly
   ═══════════════════════════════════════════════════════ */

body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* WordPress alignment classes (used in editor) */
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignnone { float: none; }

/* Screen reader text (accessibility) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Skip to content link (accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
}
.skip-link:focus {
  left: 6px;
  top: 7px;
  background: #fff;
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 4px;
}
