/*
Theme Name: Airforce School Chandan Nagar
Theme URI: https://airforceschoolchandannagar.com
Author: Your Agency Name
Author URI: https://youragency.com
Description: Custom block-based WordPress theme for Airforce School Chandan Nagar.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: airforce-school
*/

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #1f2937;
/*	 background: #fff;background:url("http://afschool.4dimensionstech.com/site1/wp-content/uploads/2026/02/background-image.png");
	background-repeat: no-repeat;
	background-position:fixed; 
	*/

	
}

h2 {
	margin: 0px 0px;!important
	
}
h4 {
	margin: 0px 0px;!important
	
}

h3 {
	margin: 0px 0px;!important
	
}

h1 {
	margin: 0px 0px;!important
	
}

/* Utilities */
.container {
  width: 95%;
  max-width: 1200px;
  margin: auto;
	
}

#top span p {
margin:3px 0px;	!important
	}

.section {
  padding: 30px 0;
}

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

.ticker {
	
	color:#ffffff; !important
	
}
.notice-list {
	color:#1354af;
	border: 1px solid #e2e2e2;
  border-radius: 18px;
  padding: 25px;
	background-color:#fff;
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.event-list {
	color:#1354af;
	border: 1px solid #e2e2e2;
  border-radius: 18px;
  padding: 25px;
	background-color:#fff;
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news-events {
	/* background:url("http://afschool.4dimensionstech.com/site1/wp-content/uploads/2026/01/topbar-bg-1.jpg");
	 background-size: cover;
    background-position: center;*/
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
}

.social-icons a:hover {
    background: #ffffff;
    color: #0b1f33;
}


/* Sticky Header Support */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Top Bar */

.top-bar {
  background: #0b2c5f;
  color:#ffe000;
  font-size: 14px;
}

.top-bar a {
  color:#ffe000;
  font-size: 14px;
}


.top-bar .container {
  display: flex;
  gap: 20px;
  padding: 8px 0;
  flex-wrap: wrap;

}

/* Header */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
	background : url("http://afschool.4dimensionstech.com/site1/wp-content/uploads/2026/01/topbar-bg-1.jpg");
    background-size: cover;
    background-position: center;
	
}

.site-branding a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo {
  width: 45px;
}

.school-name {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
}



/* Mobile */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
}

@media (max-width: 768px) {
  .primary-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

/* Mobile Menu Hidden by Default */
@media (max-width: 768px) {
  .primary-nav {
    display: none;
    width: 100%;
    background: #fff;
  }

  .primary-nav.active {
    display: block;
  }

  .primary-nav .menu {
    flex-direction: column;
  }

  .primary-nav .menu li {
    display: block;
    width: 100%;
  }

  .primary-nav .menu li ul {
    position: static;      /* IMPORTANT for mobile */
    box-shadow: none;
    display: none;
  }

  .primary-nav .menu li.open > ul {
    display: block;
  }

  .menu-toggle {
    display: block;
    font-size: 26px;
    cursor: pointer;
  }
}

/* ============================= */
/* MOBILE MENU LAYOUT FIX ONLY */
/* ============================= */
@media screen and (max-width: 768px) {

  /* Allow wrapping only on mobile */
  .header-inner {
    flex-wrap: wrap !important;
  }

  /* Logo area */
  .site-branding {
    flex: 1 1 auto;
  }

	.school-name {
  font-size: 15px;
 }
	
  /* Hamburger button on right */
  .menu-toggle {
    flex: 0 0 auto;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
  }

  /* Navigation drops below */
  .primary-nav {
    flex-basis: 100%;
    width: 100%;
    order: 999;
    display: none;
    margin-top: 10px;
  }

  .primary-nav.active {
    display: block;
  }

  /* Vertical menu */
  .primary-nav .menu {
    flex-direction: column !important;
    width: 100%;
  }

  .primary-nav .menu li {
    display: block;
    width: 100%;
  }

}




/* Ensure parent items allow flyout */
.primary-nav .menu li,
.primary-nav .menu li ul li {
  position: relative;
}

/* LEVEL 2 DROPDOWN */
.primary-nav .menu > li > ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  padding: 5px 10px;
  display: none;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  border-radius: 4px;
  z-index: 999;
}

/* SHOW LEVEL 2 */
.primary-nav .menu > li:hover > ul {
  display: block;
}

/* LEVEL 3 DROPDOWN (perfect edge alignment) */
.primary-nav .menu li ul li > ul {
  position: absolute;
  top: 0;
  left: 100%;      /* attach to exact right edge */
  margin-left: -1px; /* removes tiny visual gap */
  background: #fff;
  min-width: 220px;
  padding: 5px 0;
  display: none;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  border-radius: 4px;
  z-index: 1000;
}

/* SHOW LEVEL 3 */
.primary-nav .menu li ul li:hover > ul {
  display: block;
}




/* Hero background: url("https://images.unsplash.com/photo-1588072432836-e10032774350"); */
.hero {
    background: url("http://afschool.4dimensionstech.com/site1/wp-content/uploads/2026/01/JAGUAR-HOUSE-opt.jpg");
    background-size: cover;
    background-position: center;
    padding: 0px 0;
    /*text-align: center;*/
    position: relative;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.hero .btn {
    display: inline-block;
    padding: 12px 28px;
    margin: 0 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary {
    background: #f4b400;
    color: #000;
}

.btn-outline {
    background: rgba(255,255,255,0.9);
    color: #000;
}

/* Features grid-template-columns: repeat(4, 1fr);*/
/* Features */
.features {
    margin: 0px 70px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}



/* Feature Cards with Images */
.feature-box {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.feature-box img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.feature-box h4 {
    padding: 0px 0px 0px;
    color: #0b3c5d;
    font-size: 17px;
	margin:0 !important;
}

.feature-box p {
    padding: 0 5px 10px;
    font-size: 14px;
    color: #555;
}

.btn {
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 4px;
}

.btn.primary { background:#1e40af;color:#fff; }
.btn.secondary { background:#fff;color:#1e40af; }

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

.feature-box, .card {
  background:#fff;
  padding:00px;
  text-align:center;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
}
/* ============================= */
/* FEATURES RESPONSIVE FIX */
/* ============================= */

/* Tablet */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    margin: 0 25px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    margin: 0 15px;
  }

  .feature-box img {
    height: 150px;
  }

  .feature-box h4 {
    font-size: 18px;
    padding: 10px 0 0;
  }

  .feature-box p {
    font-size: 15px;
    padding: 0 15px 15px;
  }
}


/* About */
.about h1,
.about h3 {
  margin: 0;
}


.about p {
  font-size: 15px;
  padding-bottom: 15px;
}

/* ============================= */
/* ABOUT SECTION RESPONSIVE */
/* ============================= */

.about img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* Tablet */
@media (max-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .about {
    text-align: center;
  }

  .about h1 {
    font-size: 24px;
  }

  .about h3 {
    font-size: 18px;
  }

  .about p {
    font-size: 15px;
    line-height: 1.6;
  }

  .about .btn {
    display: inline-block;
    margin-top: 10px;
  }
}



.testimonials {
  background:#e0f2fe;
}

.inner-banner {
  background: linear-gradient(
    rgba(30,64,175,0.85),
    rgba(30,64,175,0.85)
  ),
  url('assets/inner-banner.jpg') center/cover;
  padding: 0px 0;
  color: #fff;
}

.inner-banner h1 {
  margin: 0;
  font-size: 32px;
}

.page-content {
  background: #ffffff;
}


.site-footer {
  background: #001c43;
  color: #ffffff;
  /*padding-top: 60px;*/
}

.site-footer a {
  color: #ffffff;
 
}

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

.site-footer h4 {
  margin-bottom: 15px;
  color: #ffffff;
}

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

.footer-menu li {
  margin-bottom: 8px;
}

.footer-menu a {
  color: #e5e7eb;
  text-decoration: none;
}

.footer-bottom {
  background: #111827;
  padding: 15px 0;
  text-align: center;
  font-size: 14px;
  margin-top: 40px;
}

.footer-grid iframe {
    width: 100%;
    height: 180px;
    border: 0;
    border-radius: 6px;
}

@media(max-width:768px){
  .footer-grid{
    grid-template-columns:1fr;
  }
}

.testimonial-item {
  background:#fff;
  padding:25px;
  margin:10px;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 32px;
    color: #0b3c5d;
}

.highlight {
    color: #f4b400;
}


/* =========================
   Principal Message
========================= */
.principal-section {
    background: #15518d;
    padding: 10px;
	padding-bottom:40px;
}

.principal-box {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: center;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
	max-width: 1100px;
    width: 95%;
}

.principal-photo {
    text-align: center;
}

.principal-photo img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #f4b400;
}

.principal-message h3 {
    font-size: 26px;
    color: #0b3c5d;
    margin-bottom: 10px;
}

.principal-message span {
    display: block;
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

.principal-message p {
    font-size: 15px;
    line-height: 1.8;
}

/* ============================= */
/* PRINCIPAL SECTION RESPONSIVE */
/* ============================= */

/* Make box centered */
.principal-box {
  margin: 0 auto;
}

/* Tablet */
@media (max-width: 1024px) {
  .principal-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .principal-message {
    margin-top: 10px;
  }
}

/* Mobile */
@media (max-width: 768px) {

  .principal-section {
    padding: 30px 15px;
  }

  .principal-box {
    grid-template-columns: 1fr;
    padding: 20px 15px;
    width: 93%;
  }

  .principal-photo img {
    width: 150px;
    height: 150px;
  }

  .principal-message h4 {
    font-size: 20px;
  }

  .principal-message span {
    font-size: 13px;
  }

  .principal-message p {
    font-size: 15px;
    line-height: 1.7;
  }

  .principal-message .btn {
    margin-top: 10px;
    display: inline-block;
  }
}


/* Campus Life */
.campus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 70px;
}

.campus-grid {
    background: #e1edf7;
    padding: 30px;
    border-radius: 10px;
}

.campus-grid div {
    height: 180px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
}



/* Inner Page */
.inner-banner {
  height: 100px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.inner-banner-overlay {
  background: rgba(0, 51, 102, 0.65);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.inner-page-title {
  color: #fff;
  font-size: 30px;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 768px) {
  .inner-banner {
    height: 160px;
  }
  .inner-page-title {
    font-size: 24px;
    text-align: center;
  }
}



.inner-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 40px;
	font-size: 15px;

}

.content-area {
  flex: 0 0 75%;
}

.sidebar-area {
  flex: 0 0 25%;
}

@media (max-width: 768px) {
  .inner-container {
    flex-direction: column;
  }

  .content-area,
  .sidebar-area {
    flex: 0 0 100%;
  }
}

.widget-box {
  background: #ffffff;
  border: 1px solid #f4b400;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
	
}

.widget-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
 /*  border-bottom: 2px solid #003366; school theme color */
  padding-bottom: 8px;
}

.sidebar-area ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-area ul li {
  margin-bottom: 2px;
  padding-bottom: 2px;
  
}

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

.sidebar-area a {
  text-decoration: none;
  color: #003366;
	font-size:14px;
  font-weight: 400;
}

.sidebar-area a:hover {
  color: #000;
}

.content-area h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.content-area p {
  line-height: 1.7;
  margin-bottom: 18px;
  color: #333;
}
@media (min-width: 992px) {
  .sidebar-area {
    position: sticky;
    top: 100px;
    height: fit-content;
  }
}

.afs-breadcrumb {
  font-size: 14px;
  margin: 15px auto 25px;
  max-width: 1200px;
  padding: 0 40px;
  color: #555;
}

.afs-breadcrumb a {
  color: #1e73be;
  text-decoration: none;
}

.afs-breadcrumb a:hover {
  text-decoration: underline;
}

.afs-breadcrumb span {
  color: #000;
  font-weight: 600;
}

.submenu-widget {
  list-style: none;
  padding: 0;
  margin: 0;
}

.submenu-widget li {
  margin-bottom: 2px;
}

.submenu-widget a {
  display: block;
  padding: 8px 8px;
  border-radius: 5px;
  background: #f2f6fb;
  text-decoration: none;
  color: #000;
  transition: 0.3s;
}

.submenu-widget a:hover {
  background: #cfe5ff;
}

/* ============================= */
/* FLOATING ADMISSION BUTTON */
/* ============================= */

.floating-admission-btn {
  position: fixed;
  right: 20px;
  bottom: 25px;
  background: linear-gradient(135deg, #f4b400, #ff9800);
  color: #000;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: all 0.3s ease;
  animation: pulseGlow 2s infinite;
}

/* Hover effect */
.floating-admission-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}

/* Pulse animation */
@keyframes pulseGlow {
  0%   { box-shadow: 0 0 0 0 rgba(255,152,0, 0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(255,152,0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255,152,0, 0); }
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .floating-admission-btn {
    right: 15px;
    bottom: 15px;
    font-size: 14px;
    padding: 12px 16px;
  }
}

.afs-left {
    background: #fff;
    padding: 0px 00px;
    border-radius: 10px;
   /* border: 2px solid #0b2c5f; */
}

