:root {
  --primary: #0077cc; /* water brand blue */
  --primary-dark: #005a9a;
  --accent: #00c0ff;
  --text: #0b2140;
  --text-light: #5b6b7a;
  --bg: #f6fbff;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.85);
  --border: rgba(0, 119, 204, 0.10);
  --shadow: 0 12px 34px rgba(3, 20, 45, 0.08);
  --radius: 16px;
  --transition: all 0.32s cubic-bezier(.2,.9,.2,1);
  --max-width: 1400px;
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; width: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height: 1.6;
  transition: background .35s, color .35s;
}
a { color: inherit; text-decoration: none; }

/* ===== UPDATED FOR LARAVEL BLADE STRUCTURE ===== */

/* Header Styles for Laravel */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1300;
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
}

.top-bar {
  background: var(--primary-dark);
  color: #e8f6ff;
  padding: 8px 6%;
  transition: transform 0.35s ease;
}

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

.contact-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.top-bar-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.top-bar-links a {
  position: relative;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.top-bar-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.top-bar-links a.apply-now-btn {
  background: linear-gradient(135deg, #28a745, #218838);
  color: #fff !important;
  padding: 6px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
  margin-left: 8px;
}

.top-bar-links a.apply-now-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(40, 167, 69, 0.4);
}

.logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: inherit;
  padding: 4px 10px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.logout-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.inline-form {
  display: inline;
}

/* Main Navigation */
.main-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 6%;
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: var(--primary);
  margin-right: auto;
  padding: 2px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
}

.logo-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo:hover {
  transform: scale(1.01);
}

.logo img {
  height: 52px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
  transition: all 0.4s ease;
}

.logo h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtitle {
  font-size: 0.68rem;
  margin: 1px 0 0 0;
  color: var(--text-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.2;
  white-space: nowrap;
}

/* Scrolled state */
.header.scrolled .main-nav {
  padding: 6px 6%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.97);
}

.header.scrolled .logo img {
  height: 38px;
}

.header.scrolled .logo h1 {
  font-size: 1.3rem;
}

.header.scrolled .logo-subtitle {
  font-size: 0.58rem;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 12px;
  margin: 0 2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  border-radius: 8px;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--primary);
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.nav-menu a:hover {
  color: var(--primary);
  background: rgba(0, 119, 204, 0.04);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-menu a.active {
  color: var(--primary);
}

.nav-menu a:focus {
  outline: 3px solid rgba(0, 119, 204, 0.12);
  outline-offset: 2px;
}

/* Apply Now Button */
.apply-now-btn {
  background: linear-gradient(135deg, #28a745, #218838) !important;
  color: #fff !important;
  padding: 7px 18px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25) !important;
  white-space: nowrap;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none !important;
  margin: 0 !important;
}

.apply-now-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(40, 167, 69, 0.35) !important;
  background: linear-gradient(135deg, #218838, #28a745) !important;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 0.88rem;
  padding: 8px 12px;
  white-space: nowrap;
  transition: all 0.25s ease;
  font-family: inherit;
  border-radius: 8px;
  text-decoration: none;
}

.dropdown-toggle i {
  font-size: 0.65rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle {
  color: var(--primary);
  background: rgba(0, 119, 204, 0.04);
}

.dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 230px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 119, 204, 0.08);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1400;
  list-style: none;
  margin: 0;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  margin: 1px 0;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  cursor: pointer;
  margin: 0;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: rgba(0, 119, 204, 0.06);
  color: var(--primary);
  transform: translateX(4px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
  z-index: 1500;
  position: relative;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.mobile-menu-toggle:hover {
  background: rgba(0, 119, 204, 0.04);
}

/* ===== CONTACT PAGE STYLES ===== */

/* Contact Hero */
.contact-hero {
  background: linear-gradient(135deg, rgba(0,90,154,0.9), rgba(0,170,255,0.8)), url('https://images.unsplash.com/photo-1593522016939-121a4084a9a8?q=80&w=2000') center/cover;
  height: 60vh;
  display: flex;
  align-items: center;
  color: #fff;
}

.contact-hero-content {
  max-width: 900px;
  margin: auto;
  text-align: center;
  padding: 0 6%;
}

.contact-hero h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  margin-bottom: 1rem;
}

.contact-hero p {
  font-size: 1.3rem;
  opacity: 0.9;
}

/* Contact Section */
.contact-section {
  padding: 80px 6%;
  max-width: 1400px;
  margin: 0 auto;
}

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

/* Contact Information */
.contact-info-section h2 {
  color: var(--primary);
  margin-bottom: 32px;
  font-size: 2rem;
}

.contact-info-card {
  padding: 40px;
  margin-bottom: 40px;
}

.contact-detail {
  margin: 20px 0;
  font-size: 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-icon {
  color: var(--accent);
  width: 30px;
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-detail a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-detail a:hover {
  color: var(--accent);
}

/* Contact Map */
.contact-map {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-map iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}

/* Contact Form Card */
.watercolor-contact-card {
  padding: 48px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(173,216,230,0.25), rgba(135,206,235,0.18), rgba(176,224,230,0.22));
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(173,216,230,0.4);
  box-shadow: 0 15px 35px rgba(64,149,191,0.15);
}

/* Contact Form */
.contact-title {
  margin: 0 0 10px;
  font-size: 30px;
  color: #2c7ab8;
  font-weight: 700;
  text-align: center;
  position: relative;
  z-index: 2;
}

.contact-subtitle {
  margin: 0 0 28px;
  color: #4a90b3;
  text-align: center;
  font-size: 16px;
  position: relative;
  z-index: 2;
}

.contact-form {
  position: relative;
  z-index: 2;
}

.wc-input,
.wc-textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  border: none;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.75);
  color: #2c5f87;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(64,149,191,0.12);
  transition: all 0.3s;
  outline: none;
  resize: vertical;
  font-family: inherit;
}

.wc-textarea {
  margin-bottom: 20px;
}

.wc-input:focus,
.wc-textarea:focus {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 0 0 4px rgba(135,206,235,0.4);
}

.wc-submit {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  color: white;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(79,172,254,0.35);
  transition: all 0.3s;
  font-family: inherit;
}

.wc-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(79,172,254,0.45);
}

.wc-contact-info {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(173,216,230,0.5);
  text-align: center;
  color: #3a8ab3;
  position: relative;
  z-index: 2;
}

.wc-contact-info p {
  margin: 10px 0;
  font-size: 15px;
}

.reply-time-highlight {
  font-weight: 600;
  color: #2c7ab8;
}

/* ===== FOOTER STYLES FOR LARAVEL ===== */
.footer {
  position: relative;
  background: linear-gradient(165deg, var(--primary-dark) 0%, #004a82 55%, var(--primary) 100%);
  color: #e8f8ff;
  margin-top: 64px;
  overflow: hidden;
}

/* Floating water bubbles */
.footer-bubbles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.footer-bubble {
  position: absolute;
  bottom: -60px;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.08) 60%, rgba(255, 255, 255, 0) 70%);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.25);
  animation: footerBubbleFloat linear infinite;
  opacity: 0;
}

.footer-bubble:nth-child(1) { left: 6%;  width: 22px; height: 22px; animation-duration: 11s; animation-delay: 0s; }
.footer-bubble:nth-child(2) { left: 18%; width: 14px; height: 14px; animation-duration: 14s; animation-delay: 3s; }
.footer-bubble:nth-child(3) { left: 30%; width: 30px; height: 30px; animation-duration: 16s; animation-delay: 1.5s; }
.footer-bubble:nth-child(4) { left: 44%; width: 12px; height: 12px; animation-duration: 12s; animation-delay: 5s; }
.footer-bubble:nth-child(5) { left: 58%; width: 26px; height: 26px; animation-duration: 15s; animation-delay: 2s; }
.footer-bubble:nth-child(6) { left: 70%; width: 16px; height: 16px; animation-duration: 13s; animation-delay: 6s; }
.footer-bubble:nth-child(7) { left: 82%; width: 34px; height: 34px; animation-duration: 18s; animation-delay: 0.8s; }
.footer-bubble:nth-child(8) { left: 92%; width: 18px; height: 18px; animation-duration: 12.5s; animation-delay: 4s; }

@keyframes footerBubbleFloat {
  0%   { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
  10%  { opacity: 0.8; }
  50%  { transform: translateY(-50vh) translateX(15px) scale(1); }
  90%  { opacity: 0.7; }
  100% { transform: translateY(-110%) translateX(-10px) scale(1.1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-bubble { animation: none; opacity: 0.25; }
}

/* Decorative top wave */
.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

.footer-wave path {
  fill: #f5fbff;
}

.footer-main {
  position: relative;
  padding: 80px 6% 48px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr 1.4fr;
  gap: 48px 40px;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo img {
  height: 60px;
  width: auto;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.footer-logo-text h3 {
  font-size: 1.08rem;
  line-height: 1.3;
  margin: 0;
  color: #fff;
  font-weight: 700;
}

.footer-logo-text p {
  font-size: 0.88rem;
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.3px;
}

.footer-about {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.94rem;
  line-height: 1.7;
  margin: 0;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 192, 255, 0.35);
}

.footer-col h4 {
  position: relative;
  color: #fff;
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.footer-col h4::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

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

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

.footer-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.94rem;
  transition: var(--transition);
}

.footer-links a span {
  position: relative;
  transition: var(--transition);
}

.footer-links a span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

.footer-links a:hover span::after {
  width: 100%;
}

.footer-contact-info {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.94rem;
  line-height: 1.5;
}

.footer-contact-info i {
  flex: 0 0 18px;
  width: 18px;
  text-align: center;
  margin-top: 3px;
  color: var(--accent);
}

.footer-contact-info a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-info a:hover {
  color: #fff;
}

.footer-newsletter-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.newsletter-field {
  position: relative;
  display: flex;
  align-items: center;
}

.newsletter-field i {
  position: absolute;
  left: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  pointer-events: none;
}

.newsletter-form input {
  width: 100%;
  padding: 13px 16px 13px 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.94rem;
  transition: var(--transition);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 192, 255, 0.2);
}

.newsletter-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), #0091d5);
  color: #fff;
  border: none;
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 145, 213, 0.4);
}

.newsletter-form button i {
  transition: transform 0.3s ease;
}

.newsletter-form button:hover i {
  transform: translateX(3px);
}

.footer-bottom {
  position: relative;
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(4px);
}

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

.footer-bottom p {
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ===== BACK TO TOP BUTTON ===== */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-top:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(79, 172, 254, 0.6);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4); }
  50% { box-shadow: 0 8px 35px rgba(79, 172, 254, 0.7); }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-up {
  opacity: 0;
  transform: translateY(18px);
  will-change: transform, opacity;
}

.animate-up.visible {
  animation: fadeInUp .84s cubic-bezier(.2,.9,.3,1) forwards;
}

.delay-0 { animation-delay: 0s; }
.delay-08 { animation-delay: 0.08s; }
.delay-12 { animation-delay: 0.12s; }
.delay-16 { animation-delay: 0.16s; }
.delay-24 { animation-delay: 0.24s; }

/* ===== KEEP YOUR ORIGINAL CONTENT STYLES BELOW ===== */

/* FADE CAROUSEL */
/* Homepage custom fade carousel (DO NOT affect Bootstrap .carousel) */
.homepage-fade-carousel {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 460px;
  max-height: 720px;
  overflow: hidden;
  background: #02283c;
  box-shadow: 0 24px 60px rgba(2, 60, 90, 0.2);
}

.homepage-fade-carousel .carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.homepage-fade-carousel .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1.03);
}

.homepage-fade-carousel .carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transform: scale(1);
}

.homepage-fade-carousel .carousel-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(1.0);
  transition: transform 7s ease;
}

.homepage-fade-carousel .carousel-slide.active .carousel-media {
  transform: scale(1.08);
}

.homepage-fade-carousel .slide-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 860px;
  padding: 0 24px;
  text-align: center;
  color: #fff;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s,
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.homepage-fade-carousel .carousel-slide.active .slide-content {
  opacity: 1;
  transform: translateY(0);
}

.homepage-fade-carousel .slide-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 auto 24px;
  max-width: 14ch;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, #ffffff 0%, #cce4f4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.55));
}

.homepage-fade-carousel .slide-content p {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  margin: 0 auto 40px;
  opacity: 0.97;
  max-width: 680px;
  line-height: 1.75;
  font-weight: 400;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.95);
}

.homepage-fade-carousel .slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(2, 40, 70, 0.70) 0%, rgba(2, 80, 110, 0.35) 50%, rgba(0, 110, 130, 0.15) 100%),
    radial-gradient(120% 100% at 50% 30%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.35) 100%);
}

/* Progress Bar */
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 10;
}

.carousel-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

.carousel-slide.active .carousel-progress-bar {
  animation: carouselProgress 5s linear forwards;
}

@keyframes carouselProgress {
  from { width: 0%; }
  to { width: 100%; }
}

/* Navigation Buttons */
.homepage-fade-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  opacity: 0.75;
}

.homepage-fade-carousel .carousel-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  transform: translateY(-50%) scale(1.10);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  opacity: 1;
}

.homepage-fade-carousel .carousel-btn.prev {
  left: 20px;
}

.homepage-fade-carousel .carousel-btn.next {
  right: 20px;
}

.homepage-fade-carousel .carousel-btn.prev {
  left: 20px;
}

.homepage-fade-carousel .carousel-btn.next {
  right: 20px;
}

.homepage-fade-carousel .carousel-btn.prev {
  left: 24px;
}

.homepage-fade-carousel .carousel-btn.next {
  right: 24px;
}

/* Carousel Navigation */
.homepage-fade-carousel .carousel-nav {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.homepage-fade-carousel .carousel-dots {
  display: flex;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.homepage-fade-carousel .carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.40);
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.homepage-fade-carousel .carousel-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.homepage-fade-carousel .carousel-dot.active {
  background: #fff;
  width: 30px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* Button style for carousel */
.homepage-fade-carousel .btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 13px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(0, 119, 204, 0.35);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.homepage-fade-carousel .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.homepage-fade-carousel .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 119, 204, 0.45);
}

.homepage-fade-carousel .btn:hover::before {
  left: 100%;
}

/* Buttons */
.btn {
  background: #fff;
  color: var(--primary);
  padding:14px 36px;
  border-radius:999px;
  font-weight:700;
  box-shadow:0 12px 30px rgba(0,30,60,0.18);
  transition:var(--transition);
  display:inline-block;
  cursor: pointer;
}

.btn:hover { transform:translateY(-6px); box-shadow:0 26px 50px rgba(0,30,60,0.22); }

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

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 15px 30px rgba(0, 119, 204, 0.3);
}

/* ENHANCED QUICK LINKS */
.discover-section {
  padding: 80px 6%;
  max-width: var(--max-width);
  margin: 0 auto;
  background: linear-gradient(180deg, #eaf4fd 0%, #f6fbff 100%);
}

.discover-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.discover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 119, 204, 0.12);
  border-color: rgba(0, 119, 204, 0.25);
  color: inherit;
}

.discover-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 119, 204, 0.08), rgba(45, 212, 191, 0.08));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  transition: all 0.35s ease;
}

.discover-card:hover .discover-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.discover-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.discover-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}

.discover-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  margin-top: auto;
}

.discover-card:hover .discover-link {
  color: var(--primary-dark);
  transform: translateX(4px);
}

.discover-card:hover .discover-link i {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .discover-section {
    padding: 56px 6%;
  }
  .discover-card {
    padding: 24px 20px;
  }
}

/* Stats / Achievements Section */
.nwri-stats {
  padding: 48px 6%;
  background: linear-gradient(135deg, rgba(0, 192, 255, 0.08), rgba(45, 212, 191, 0.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.nwri-stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  text-align: center;
}

.nwri-stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.nwri-stat-plus {
  font-size: 2rem;
  color: var(--accent);
}

.nwri-stat-label {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 640px) {
  .nwri-stats {
    padding: 32px 6%;
  }
  .nwri-stat-value {
    font-size: 2.2rem;
  }
  .nwri-stat-label {
    font-size: 0.85rem;
  }
  .nwri-stats-inner {
    gap: 20px;
  }
}

/* ENHANCED MAIN CONTENT CARDS */
.main-content {
  padding:64px 6% 96px;
  max-width:var(--max-width);
  margin: 0 auto;
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:38px;
  align-items:start;
  background: linear-gradient(180deg, #ffffff 0%, #eef5fb 100%);
}

.glass-card {
  background:var(--glass);
  border-radius:14px;
  padding:24px;
  box-shadow:var(--shadow);
  border:1px solid var(--border);
  transition:var(--transition);
  position:relative;
  overflow:visible;
}

/* Director Card */
.director-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.director-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  transition: transform 0.5s ease;
}

.director-card:hover img {
  transform: scale(1.03);
}

.director-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.director-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.director-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.director-message {
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* Enhanced Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 119, 204, 0.25);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 119, 204, 0.35);
  color: #fff !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.88rem;
  border-radius: 10px;
}

/* News Cards */
.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.news-new-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
}

.news-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.news-date-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(0, 119, 204, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  align-self: flex-start;
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

.news-card-excerpt {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.news-card-footer {
  margin-top: 6px;
}

.news-card-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-card-full-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.glass-card h3, .glass-card h4 {
  transition:color 0.3s ease;
}

.glass-card:hover h3,
.glass-card:hover h4 {
  color:var(--primary);
}

/* Simple hover lift effect */
.glass-card:hover {
  transform:translateY(-5px);
  box-shadow:0 20px 60px rgba(0, 119, 204, 0.15);
  z-index:10;
}

/* News Cards - Homepage */
.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.news-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.news-date-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(0, 119, 204, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  align-self: flex-start;
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

.news-card-excerpt {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.news-card-footer {
  margin-top: 6px;
}

/* Generic Scroller */
.scroller {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.scroller .glass-card {
  flex: 0 0 auto;
  width: 340px;
  min-width: 260px;
  scroll-snap-align: start;
}

.scroll-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.scroll-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.scroll-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.scroll-dot:hover {
  background: rgba(0, 0, 0, 0.35);
  transform: scale(1.1);
}

.scroll-dot.is-active {
  background: var(--primary);
  transform: scale(1.15);
}

@media (max-width: 640px) {
  .scroller .glass-card {
    width: 85vw;
    min-width: 260px;
  }

  .scroll-nav {
    gap: 10px;
  }
}

/* Director Message Modal */
.director-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.director-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.director-modal-container {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.director-modal-overlay.is-open .director-modal-container {
  transform: translateY(0);
}

.director-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.director-modal-header .director-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.director-modal-close {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.director-modal-close:hover {
  background: #e2e8f0;
  color: #334155;
}

.director-modal-body {
  padding: 24px;
}

.director-modal-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.director-modal-image-wrapper {
  flex: 0 0 240px;
}

.director-modal-image-wrapper img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.director-modal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.director-modal-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.director-modal-title-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.director-modal-message {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1rem;
  margin: 0;
  white-space: pre-line;
}

.director-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.director-modal-close-btn {
  padding: 10px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.director-modal-close-btn:hover {
  box-shadow: 0 8px 20px rgba(0, 119, 204, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .director-modal-layout {
    flex-direction: column;
  }
  .director-modal-image-wrapper {
    flex: 0 0 auto;
    width: 100%;
  }
  .director-modal-image-wrapper img {
    height: 220px;
  }
}

/* Section helper styles */
.nwri-section {
  padding: 64px 6%;
  background: #fff;
}

.nwri-section--alt {
  background: #eef4fa;
}

.nwri-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.nwri-section-title {
  color: var(--primary) !important;
  text-align: center;
}

.nwri-section .section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
}

.nwri-admissions-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 56px 6%;
  color: #fff;
}

.nwri-admissions-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.nwri-admissions-content {
  flex: 1 1 320px;
}

.nwri-admissions-content h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.nwri-admissions-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.nwri-admissions-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-accent {
  background: #f59e0b;
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
  border: none;
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.4);
  background: #d97706;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-3px);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: none;
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-3px);
  color: #fff;
}

.event-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.event-location {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 600;
}

.event-type-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Modern Event Cards */
.event-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  transition: all 0.35s ease;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.event-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.event-card-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.event-card-video-overlay i {
  font-size: 3rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.event-card:hover .event-card-video-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.event-card:hover .event-card-video-overlay i {
  transform: scale(1.1);
}

.event-card-video-overlay span {
  font-size: 0.85rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.event-card-video-banner {
  height: 200px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}

.event-card-video-banner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-card-video-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.event-card-video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.event-card-video-placeholder i {
  font-size: 4rem;
  opacity: 0.9;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  animation: videoPulse 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes videoPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

.event-card-icon {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, rgba(0, 119, 204, 0.08), rgba(45, 212, 191, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 3rem;
  flex-shrink: 0;
}

.event-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.event-card-date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 12px;
  padding: 8px 14px;
  line-height: 1.2;
  align-self: flex-start;
  box-shadow: 0 4px 12px rgba(0, 119, 204, 0.25);
}

.event-day {
  font-size: 1.4rem;
  font-weight: 800;
}

.event-month {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.event-date-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(0, 119, 204, 0.08);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.event-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
}

.event-card-excerpt {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.event-location {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-type-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Event Modal */
.event-modal-container {
  max-width: 700px;
}

.event-modal-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.event-modal-image-wrapper {
  flex: 0 0 260px;
}

.event-modal-image-wrapper img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.event-modal-main-video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  background: #000;
}

.event-modal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.event-modal-title-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.event-modal-description {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1rem;
  margin: 0;
  white-space: pre-line;
}

.event-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.event-play-video-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  border: none;
}

.event-play-video-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 119, 204, 0.3);
  color: #fff !important;
}

.event-youtube-btn {
  background: #ff0000;
  color: #fff !important;
  border: none;
}

.event-youtube-btn:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
  color: #fff !important;
}

@media (max-width: 768px) {
  .event-modal-layout {
    flex-direction: column;
  }
  .event-modal-image-wrapper {
    flex: 0 0 auto;
    width: 100%;
  }
  .event-modal-image-wrapper img {
    height: 180px;
  }
}

@media (max-width: 640px) {
  .nwri-admissions-inner {
    flex-direction: column;
    text-align: center;
  }
  .nwri-admissions-actions {
    justify-content: center;
    width: 100%;
  }
  .nwri-admissions-content h2 {
    font-size: 1.6rem;
  }
}

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

@media (max-width: 1024px) {
  .nwri-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.nwri-grid .glass-card {
  display: flex;
  flex-direction: column;
}

.nwri-grid .glass-card h4 {
  margin-bottom: 10px;
  color: var(--text);
}

.programme-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(0, 119, 204, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.programme-duration {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--primary);
  background: rgba(0, 119, 204, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 12px;
  font-weight: 600;
}

.programme-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 14px;
}

.programme-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-dark);
  background: rgba(0, 119, 204, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  align-self: flex-start;
}

@media (max-width: 640px) {
  .nwri-section {
    padding: 48px 6%;
  }
  .nwri-section h2 {
    font-size: 1.6rem;
  }
  .news-card-image {
    height: 160px;
  }
}

/* Watercolor contact card moved styles */
.watercolor-contact-card {
  max-width: 520px;
  margin: 40px auto;
  padding: 40px 32px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(173,216,230,0.25), rgba(135,206,235,0.18), rgba(176,224,230,0.22));
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(173,216,230,0.4);
  box-shadow: 0 15px 35px rgba(64,149,191,0.15);
}

/* decorative blurred circles */
.wc-circle {
  position:absolute;
  border-radius:50%;
  filter:blur(40px);
  pointer-events: none;
  z-index: 0;
}

.wc-circle--1 {
  width:280px;
  height:280px;
  background:rgba(135,206,250,0.25);
  top:-100px;
  right:-80px;
  filter: blur(40px);
}

.wc-circle--2 {
  width:220px;
  height:220px;
  background:rgba(173,216,230,0.3);
  bottom:-70px;
  left:-60px;
  filter: blur(35px);
}

/* ===== RESPONSIVE DESIGN ===== */

/* CONTACT PAGE RESPONSIVENESS */
@media (max-width: 1024px) {
  .footer-main {
    padding: 64px 5% 40px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }
  
  .watercolor-contact-card {
    padding: 40px;
  }
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .contact-hero {
    height: 50vh;
  }
  
  .contact-hero h1 {
    font-size: 2.5rem;
  }
  
  .contact-hero p {
    font-size: 1.2rem;
  }
  
  .contact-section {
    padding: 60px 5%;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    height: 45vh;
  }
  
  .contact-hero h1 {
    font-size: 2.2rem;
  }
  
  .contact-hero p {
    font-size: 1.1rem;
  }
  
  .contact-section {
    padding: 50px 5%;
  }
  
  .contact-info-section h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
  }
  
  .contact-info-card {
    padding: 28px;
    margin-bottom: 32px;
  }
  
  .contact-detail {
    margin: 16px 0;
    font-size: 1rem;
  }
  
  .watercolor-contact-card {
    padding: 32px;
  }
  
  .contact-title {
    font-size: 26px;
  }
  
  .contact-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }
  
  .wc-input,
  .wc-textarea {
    padding: 14px 18px;
    font-size: 16px;
    margin-bottom: 14px;
  }
  
  .wc-textarea {
     margin-bottom: 18px;
  }
  
  .wc-submit {
    padding: 14px;
    font-size: 16px;
  }
  
  .contact-map iframe {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .contact-hero {
    height: 40vh;
  }
  
  .contact-hero-content {
    padding: 0 4%;
  }
  
  .contact-hero h1 {
    font-size: 2rem;
  }
  
  .contact-hero p {
    font-size: 1rem;
  }
  
  .contact-section {
    padding: 40px 4%;
  }
  
  .contact-container {
    gap: 40px;
  }
  
  .contact-info-section h2 {
    font-size: 1.6rem;
  }
  
  .contact-info-card {
    padding: 24px;
    margin-bottom: 28px;
  }
  
  .contact-detail {
    margin: 14px 0;
    font-size: 0.95rem;
  }
  
  .contact-icon {
    width: 24px;
  }
  
  .watercolor-contact-card {
    padding: 24px;
  }
  
  .contact-title {
    font-size: 22px;
  }
  
  .contact-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .wc-input,
  .wc-textarea {
    padding: 12px 16px;
    font-size: 15px;
    margin-bottom: 12px;
  }
  
  .wc-textarea {
     margin-bottom: 16px;
  }

  .wc-submit {
    padding: 12px;
    font-size: 15px;
  }
  
  .wc-contact-info {
    margin-top: 24px;
    padding-top: 20px;
  }
  
  .contact-map iframe {
    height: 250px;
  }
}

@media (max-width: 400px) {
  .footer-main {
    padding: 40px 5% 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-col {
    align-items: center;
    text-align: center;
  }
  .footer-logo {
    justify-content: center;
  }
  .footer-links,
  .footer-contact-info {
    text-align: center;
    align-items: center;
  }
  .footer-contact-info li {
    justify-content: center;
  }
  .newsletter-form {
    align-items: center;
  }
  .footer-bottom {
    padding: 16px 0;
    font-size: 0.88rem;
  }
  .footer-bottom-links {
    gap: 14px;
    margin-top: 4px;
  }

  .wc-input,
  .wc-textarea {
    padding: 10px 14px;
    font-size: 14px;
  }
  
  .contact-map iframe {
    height: 220px;
  }
}

/* GENERAL RESPONSIVENESS */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-content {
    gap:28px;
  }
  .homepage-fade-carousel {
    height: 70vh;
  }
  .homepage-fade-carousel .carousel-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  .homepage-fade-carousel .carousel-btn.prev {
    left: 20px;
  }
  .homepage-fade-carousel .carousel-btn.next {
    right: 20px;
  }
}


@media (max-width: 1100px) {
  .main-content {
    grid-template-columns: 1fr;
    gap:32px;
  }
  .right {
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:20px;
  }
  .right h3 {
    grid-column:1/-1;
  }

  .director-card {
    grid-template-columns: 1fr;
  }

  .director-card img {
    height: 220px;
    max-height: 220px;
  }
}

/* FIXED RESPONSIVE DESIGN */
@media (max-width: 992px) {
  /* --- MOBILE MENU --- */
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 2001;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .mobile-menu-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
  }
  .mobile-menu-toggle:hover {
    background: rgba(0, 119, 204, 0.08);
    box-shadow: 0 0 18px rgba(0, 119, 204, 0.15);
  }
  .mobile-menu-toggle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    box-shadow: 0 0 0 rgba(0, 119, 204, 0);
  }
  .mobile-menu-toggle:hover::after {
    opacity: 0.6;
    transform: scale(1.35);
    box-shadow: 0 0 12px rgba(0, 119, 204, 0.2);
  }
  .mobile-menu-toggle:hover .hamburger {
    transform: scale(1.1);
    filter: drop-shadow(0 0 2px rgba(0, 119, 204, 0.35));
  }
  .mobile-menu-toggle:hover .bar {
    box-shadow: 0 0 5px rgba(0, 119, 204, 0.4);
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    position: relative;
    gap: 5px;
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
  }
  .bar {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
    transform-origin: center;
    position: absolute;
    left: 0;
  }
  .bar:nth-child(1) { top: 0; }
  .bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
  .bar:nth-child(3) { bottom: 0; top: auto; }
  body.menu-open .hamburger .bar:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }
  body.menu-open .hamburger .bar:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
  }
  body.menu-open .hamburger .bar:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    min-width: unset;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s ease;
    overflow-y: auto;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
  }
  body.menu-open .nav-menu,
  body.menu-open .nav-menu.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu-inner {
    padding: 80px 0 40px 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.35s ease 0.15s, transform 0.35s ease 0.15s;
  }
  body.menu-open .nav-menu-inner {
    opacity: 1;
    transform: translateX(0);
  }
  .nav-menu-inner ul li {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  body.menu-open .nav-menu-inner ul li {
    opacity: 1;
    transform: translateX(0);
  }
  body.menu-open .nav-menu-inner ul li:nth-child(1) { transition-delay: 0.1s; }
  body.menu-open .nav-menu-inner ul li:nth-child(2) { transition-delay: 0.15s; }
  body.menu-open .nav-menu-inner ul li:nth-child(3) { transition-delay: 0.2s; }
  body.menu-open .nav-menu-inner ul li:nth-child(4) { transition-delay: 0.25s; }
  body.menu-open .nav-menu-inner ul li:nth-child(5) { transition-delay: 0.3s; }
  body.menu-open .nav-menu-inner ul li:nth-child(6) { transition-delay: 0.35s; }
  body.menu-open .nav-menu-inner ul li:nth-child(7) { transition-delay: 0.4s; }
  body.menu-open .nav-menu-inner ul li:nth-child(8) { transition-delay: 0.45s; }

  .nav-menu > li {
    width: 100%;
    display: block;
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }
  .nav-menu a,
  .dropdown-toggle {
    width: 100%;
    text-align: left;
    padding: 14px 24px;
    font-size: 1rem;
    color: var(--text) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border-radius: 0;
    transition: background 0.2s;
    margin: 0;
    text-decoration: none;
  }
  .nav-menu a:hover,
  .dropdown-toggle:hover {
    background: rgba(0,119,204,0.04);
  }

  .dropdown-menu {
    position: static !important;
    float: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none;
    background: #f4f9fd !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.04) !important;
    border: none !important;
    min-width: unset !important;
    border-radius: 0 !important;
  }
  .dropdown-menu.show,
  .dropdown.show .dropdown-menu {
    display: block !important;
  }
  .dropdown-menu li {
    width: 100%;
    margin: 0;
  }
  .dropdown-menu a {
    display: block !important;
    padding: 12px 24px 12px 40px !important;
    font-size: 0.92rem;
    color: var(--text-light) !important;
    opacity: 1 !important;
    font-weight: 500;
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: background 0.2s;
    border-radius: 0 !important;
  }
  .dropdown-menu a:hover {
    color: var(--primary) !important;
    background: rgba(0,119,204,0.04) !important;
    transform: none !important;
  }

  /* Overlay for mobile menu */
  body.menu-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 1999;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s;
  }

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }

  /* Header fades when mobile menu is open */
  body.menu-open .header {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  /* Slide down header on mobile */
  .header.scrolled {
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  }
  body.menu-open .header.scrolled {
    transform: translateY(-100%);
  }
  .header:not(.scrolled) {
    transform: translateY(0);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  }
  /* Footer layout for mobile */
  .footer-wave svg {
    height: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .footer-col {
    align-items: center;
    text-align: center;
  }
  .footer-logo {
    justify-content: center;
  }
  .footer-col h4::after {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-links a:hover {
    padding-left: 0;
  }
  .footer-contact-info li {
    justify-content: center;
    text-align: left;
  }
  .newsletter-form {
    max-width: 360px;
    margin: 0 auto;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .footer-bottom-inner {
    flex-direction: column;
    justify-content: center;
  }
}

/* Helper animation for smooth dropdown opening */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .homepage-fade-carousel {
    height: 65vh;
    min-height: 420px;
  }
  .homepage-fade-carousel .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  .homepage-fade-carousel .carousel-btn.prev {
    left: 15px;
  }
  .homepage-fade-carousel .carousel-btn.next {
    right: 15px;
  }


  .quick-links {
    padding:48px 5% 36px;
  }
  .main-content {
    padding:48px 5% 64px;
  }
}

@media (max-width: 768px) {
  .top-bar-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .contact-info {
    justify-content: center;
  }
  
  .top-bar-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 8px 0;
  }
  
  .logo {
    margin-right: 0;
  }
  
  .logo img {
    height: 70px;
  }
  
  .scrolled .logo img {
    height: 60px;
  }
  
  .homepage-fade-carousel {
    height: 58vh;
    min-height: 380px;
  }
  .homepage-fade-carousel .carousel-btn {
    display: none;
  }
  .homepage-fade-carousel .carousel-nav {
    bottom: 20px;
  }
  .homepage-fade-carousel .slide-content h1 {
    font-size:1.6rem;
  }
  .homepage-fade-carousel .slide-content p {
    font-size:0.95rem;
    margin-bottom:20px;
  }

  .quick-links {
    padding:32px 5% 24px;
    grid-template-columns: 1fr;
    gap:16px;
  }
  .quick-links .ql {
    text-align:left;
    display:flex;
    gap:14px;
    align-items:center;
    flex-direction:row;
  }
  .ql img {
    width:58px;
    margin-bottom:0;
    flex-shrink:0;
  }
  .ql-content {
    flex-grow:1;
  }
  .ql h4 {
    margin:0 0 4px 0;
  }
  .ql-link {
    align-self:center;
    margin-top:0;
  }
  .main-content {
    padding:32px 5% 48px;
  }
  .right {
    grid-template-columns: 1fr;
    gap:16px;
  }
  .glass-card {
    padding:20px;
  }
  .btn {
    padding:12px 28px;
    font-size:0.95rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .footer-col {
    text-align: center;
    align-items: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-contact-info li {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .top-bar {
    padding: 8px 4%;
  }
  
  .main-nav {
    padding: 12px 4%;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  
  .top-bar-links {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .logo img {
    height: 60px;
  }
  
  .scrolled .logo img {
    height: 50px;
  }
  
  .logo-text h1 {
    font-size: 1.5rem;
  }
  
  .logo-text p {
    font-size: 0.8rem;
  }
  
  .nav-menu {
    width: 100%;
    padding: 80px 20px 40px;
  }
  
  .homepage-fade-carousel {
    height: 50vh;
    min-height: 320px;
  }
  .homepage-fade-carousel .slide-content h1 {
    font-size:1.4rem;
  }
  .homepage-fade-carousel .slide-content p {
    font-size:0.9rem;
    line-height:1.5;
  }

  .quick-links {
    padding:24px 4% 20px;
  }
  .quick-links .ql {
    padding:20px;
    flex-direction:column;
    align-items:flex-start;
  }
  .ql img {
    align-self:flex-start;
    margin-bottom:12px;
  }
  .ql-link {
    align-self:flex-end;
    margin-top:12px;
  }
  .main-content {
    padding:24px 4% 32px;
  }
  .glass-card {
    padding:16px;
  }
  .btn {
    padding:10px 24px;
    font-size:0.9rem;
  }
  
  .footer-main {
    padding: 48px 4% 32px;
  }
  
  .footer-bottom {
    padding: 15px 4%;
  }
}

@media (max-width: 360px) {
  .homepage-fade-carousel {
    height: 48vh;
    min-height: 280px;
  }
  .homepage-fade-carousel .slide-content h1 {
    font-size:1.3rem;
  }
  .homepage-fade-carousel .slide-content p {
    font-size:0.85rem;
  }

  .quick-links .ql {
    padding:16px;
  }
  .ql img {
    width:50px;
  }
  .ql h4 {
    font-size:1rem;
  }
  .ql p {
    font-size:0.9rem;
  }
}

/* small focus improvements for keyboard users */
a:focus, button:focus, input:focus {
  outline: 3px solid rgba(0,119,204,0.12);
  outline-offset:3px;
  border-radius:8px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ===== LOGIN MODAL ===== */
.login-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}

.login-modal-content {
  background: #ffffff;
  width: 350px;
  max-width: 90%;
  margin: 8% auto;
  padding: 25px;
  border-radius: 12px;
  position: relative;
  animation: popScale 0.3s ease;
}

@keyframes popScale {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close-login {
  position: absolute;
  right: 18px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
  color: #444;
}

.login-modal-content h2 {
  margin-bottom: 15px;
  font-size: 22px;
  color: #0077cc;
  text-align: center;
}

.login-modal-content input,
.login-modal-content button {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.login-modal-content button {
  background: #0077cc;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s ease;
}

.login-modal-content button:hover {
  background: #005a99;
}

/* Admission Modal Styles - University Standard */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 20, 45, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.modal-active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #fff;
  width: 95%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-overlay.modal-active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header-elegant {
  padding: 20px 25px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--accent);
}

.modal-header-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.modal-logo {
  height: 35px;
  width: auto;
  filter: brightness(0) invert(1);
  border-radius: 6px;
}

.modal-header-elegant h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.modal-close-elegant {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.modal-close-elegant:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.elegant-padding {
  padding: 30px 25px;
  overflow-y: auto;
}

.admission-announcement {
  margin-bottom: 30px;
}

.admission-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.admission-session {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 15px auto;
  border-radius: 2px;
}

.admission-desc {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.5;
  max-width: 100%;
  margin: 0 auto;
}

.btn-university-standard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: #fff !important;
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 119, 204, 0.2);
  width: 100%;
}

.btn-university-standard:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 119, 204, 0.3);
}

.modal-footer-minimal {
  padding: 15px;
  background: #fcfdfe;
  border-top: 1px solid #f0f4f8;
  text-align: center;
}

.modal-footer-minimal p {
  margin: 0;
  font-size: 0.75rem;
  color: #a0aec0;
  font-weight: 500;
}

@media (max-width: 480px) {
   .admission-title {
     font-size: 1.5rem;
   }
   .modal-header-elegant {
     padding: 15px 20px;
   }
   .elegant-padding {
     padding: 30px 20px;
   }
   .btn-university-standard {
     padding: 12px 25px;
     font-size: 1rem;
   }
}

/* Additional Ad Section Styles */
.additional-ad-section {
   margin-top: 30px;
   padding-top: 25px;
   border-top: 1px solid var(--border);
}

.additional-ad-section .ad-badge {
   display: inline-block;
   margin-bottom: 15px;
}

.additional-ad-section .ad-badge span {
   background: var(--accent);
   color: var(--text);
   font-size: 0.75rem;
   font-weight: 600;
   padding: 3px 10px;
   border-radius: 12px;
   text-transform: uppercase;
   letter-spacing: 0.5px;
}

.additional-ad-section h3 {
   color: var(--primary);
   font-size: 1.4rem;
   margin-bottom: 12px;
   font-weight: 700;
}

.additional-ad-section p {
   color: var(--text-light);
   font-size: 0.95rem;
   margin-bottom: 20px;
   line-height: 1.5;
}

.additional-ad-section .btn-university-standard.btn-secondary {
   background: var(--text);
   color: #fff !important;
}

.additional-ad-section .btn-university-standard.btn-secondary:hover {
   background: var(--primary);
   color: #fff !important;
}

/* ===== PROCUREMENT & TENDERS UI ===== */
.procurement-hero {
  padding: 110px 0;
  background:
    linear-gradient(rgba(0,0,0,0.68), rgba(0,0,0,0.68)),
    url('https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
  color: #fff;
  text-align: center;
}

.procurement-hero h1 {
  font-size: clamp(2.2rem, 4.3vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.6px;
}

.procurement-hero p {
  font-size: 1.15rem;
  opacity: 0.95;
}

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

.tenders-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tenders-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tenders-count {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
}

.tenders-filters {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tenders-title {
  color: var(--text);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.tenders-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0, 119, 204, 0.15);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 10px 30px rgba(0, 119, 204, 0.08);
  min-width: 320px;
}

.clear-search {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.clear-search:hover {
  color: var(--primary);
}

.tenders-search i {
  color: var(--primary);
  font-size: 0.95rem;
}

#tender-search {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
}

#tender-search::placeholder {
  color: rgba(11, 33, 64, 0.55);
}

.tender-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}

.tender-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tender-layout {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.tender-main {
  min-width: 0;
  flex: 1;
}

.tender-status {
  display: inline-flex;
  background: rgba(220,252,231,0.9);
  color: #166534;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tender-name {
  margin: 12px 0 6px 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.tender-meta {
  margin-top: 8px;
  color: var(--text-light);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tender-meta strong {
  color: var(--text);
  font-weight: 800;
}

.tender-action {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
}

.btn-primary-download {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 12px 22px !important;
  border-radius: 12px !important;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 119, 204, 0.22);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary-download:hover {
  transform: translateY(-3px);
  background: var(--primary-dark) !important;
  box-shadow: 0 18px 42px rgba(0, 90, 154, 0.28);
}

.tender-empty {
  padding: 40px 20px;
  grid-column: 1 / -1;
  text-align: center;
  color: #64748b;
}

.tender-empty i {
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 16px;
}

.tender-empty p {
  font-size: 1.1rem;
  font-weight: 500;
}

.procurement-info {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.procurement-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
}

.procurement-info-grid > div {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.procurement-info-grid > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(3, 20, 45, 0.12);
}

.procurement-info-grid h3 {
  color: var(--text);
  font-size: 1.45rem;
  margin-bottom: 18px;
  font-weight: 900;
}

.procurement-bullets {
  list-style: none;
  padding: 0;
}

.procurement-bullets li {
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-light);
  font-weight: 600;
}

.procurement-archive-link {
  color: var(--primary);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(0, 119, 204, 0.25);
  background: rgba(0, 119, 204, 0.04);
}

.procurement-archive-link[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.75;
}

.status-filter {
  padding: 10px 16px;
  border: 1px solid rgba(0, 119, 204, 0.2);
  border-radius: 12px;
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  min-width: 160px;
  cursor: pointer;
  transition: all 0.3s;
}

.status-filter:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.1);
}

.tender-status.status-open {
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
}

.tender-status.status-closed {
  background: rgba(239, 68, 68, 0.15);
  color: #991b1b;
}

.tender-status.status-upcoming {
  background: rgba(249, 115, 22, 0.15);
  color: #9a3400;
}

@media (max-width: 992px) {
  .tender-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  }
}

@media (max-width: 768px) {
  .procurement-hero { padding: 90px 0; }
  .tenders-toolbar { margin-bottom: 30px; }
  .tenders-filters { width: 100%; justify-content: flex-start; }
  .tenders-search { min-width: 200px; flex: 1; }
  .status-filter { min-width: 140px; }
  .tender-grid { grid-template-columns: 1fr; gap: 20px; }
  .tender-card { flex-direction: column; align-items: flex-start; }
  .tender-action { width: 100%; justify-content: flex-start; margin-left: 0; margin-top: 18px; }
  .procurement-info { padding: 60px 0; }
  .procurement-info-grid { grid-template-columns: 1fr; gap: 24px; }
  .procurement-info-grid > div { padding: 24px; }
}
