/* -------------------------------------------------------------
 * DAFFODIL INTERNATIONAL UNIVERSITY (DIU)
 * Official Website Layout & Color Theme (daffodilvarsity.edu.bd Exact Match)
 * ------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --diu-navy-dark: #002652;
  --diu-navy-footer: #0B2850;
  --diu-navy-banner: #0B335F;
  --diu-blue-primary: #034EA2;
  --diu-bg-gray: #F3F4F9;
  --diu-yellow-gold: #F5B800;
  --diu-green-accent: #00875A;
  
  --diu-text-dark: #0F172A;
  --diu-text-muted: #64748B;
  --diu-border: #E2E8F0;
  
  --diu-radius-sm: 8px;
  --diu-radius-md: 12px;
  --diu-radius-lg: 20px;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--diu-blue-primary);
}

body {
  font-family: var(--font-body);
  background-color: #FFFFFF;
  color: #334155;
  line-height: 1.6;
}

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

a {
  color: var(--diu-blue-primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* TOP MINI UTILITY HEADER BAR (EXACT DIU MATCH) */
.top-utility-bar {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.78rem;
  color: #64748B;
  padding: 0.4rem 0;
}

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

.top-utility-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-utility-left span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--diu-navy-dark);
}

.top-utility-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
}

.top-utility-links a {
  color: #64748B;
  font-size: 0.78rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.top-utility-links a:hover {
  color: var(--diu-blue-primary);
}

/* MAIN NAVBAR (EXACT DIU WHITE NAVBAR MATCH) */
.navbar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--diu-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  width: 100%;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1.5rem;
  width: 100%;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  white-space: nowrap;
}

.logo-crest-badge {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #002652, #00875A);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F5B800;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 38, 82, 0.25);
  border: 2px solid #F5B800;
  flex-shrink: 0;
}

.logo-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.1;
  font-family: var(--font-heading);
}

.logo-text h1 span.daffodil {
  color: var(--diu-navy-dark);
}

.logo-text h1 span.university {
  color: var(--diu-green-accent);
}

.logo-text span.portal-tag {
  font-size: 0.72rem;
  color: var(--diu-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-top: 1px;
}

/* Nav Links - Strict 1 line on desktop */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  white-space: nowrap;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}

.nav-links a:hover {
  color: var(--diu-blue-primary);
  background: #F1F5F9;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* Official Navy Blue Apply Now Button */
.btn-apply-now {
  background: var(--diu-blue-primary);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(3, 78, 162, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-apply-now:hover {
  background: var(--diu-navy-dark);
  box-shadow: 0 6px 18px rgba(0, 38, 82, 0.35);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, #FFC107, #F5B800, #FFC107);
  background-size: 200% auto;
  color: #002652;
  box-shadow: 0 8px 25px rgba(245, 184, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 800;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: all 0.75s ease;
}

.btn-gold:hover::after {
  left: 200%;
}

.btn-gold:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 35px rgba(245, 184, 0, 0.65);
  background-position: right center;
  color: #002652;
}

.btn-gold:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 5px 15px rgba(245, 184, 0, 0.4);
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: #F1F5F9;
  border: 1.5px solid var(--diu-border);
  color: var(--diu-navy-dark);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* HERO SECTION (EXACT OFFICIAL DIU DEEP NAVY #002652 BANNER) */
.hero-section {
  position: relative;
  background: #002652;
  color: #FFFFFF;
  padding: 5rem 0 6rem 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 85% 15%, rgba(245, 184, 0, 0.15) 0%, transparent 45%),
                    radial-gradient(circle at 10% 85%, rgba(3, 78, 162, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1.1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--diu-yellow-gold);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.1rem;
  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-title span.gold-highlight {
  color: var(--diu-yellow-gold);
  display: block;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 540px;
}

.official-rank-banner {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-left: 4px solid var(--diu-yellow-gold);
  padding: 0.9rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
}

.official-rank-banner strong {
  color: var(--diu-yellow-gold);
  font-size: 1.1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item h3 {
  color: var(--diu-yellow-gold);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--diu-radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
  border: 4px solid rgba(255, 255, 255, 0.18);
}

.hero-img-wrapper img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

.pvc-badge {
  position: absolute;
  bottom: -15px;
  left: -15px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-left: 5px solid var(--diu-blue-primary);
  padding: 1.2rem 1.4rem;
  border-radius: var(--diu-radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  color: var(--diu-navy-dark);
  max-width: 320px;
}

.pvc-badge h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--diu-navy-dark);
}

.pvc-badge p {
  font-size: 0.8rem;
  color: var(--diu-text-muted);
  line-height: 1.4;
  margin-top: 0.25rem;
}

/* SECTION 1: MAIN FEATURE (FIND SUPPORT AT DIU & SUBMIT QUERY FORM - #F3F4F9) */
.submit-section {
  padding: 5.5rem 0;
  background: #F3F4F9;
  position: relative;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(3, 78, 162, 0.1);
  color: var(--diu-blue-primary);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(3, 78, 162, 0.2);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--diu-blue-primary);
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--diu-text-muted);
  margin-top: 0.5rem;
}

.form-wrapper-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--diu-radius-lg);
  padding: 4rem 3.5rem;
  box-shadow: 0 25px 60px rgba(3, 78, 162, 0.08), 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.form-wrapper-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #002652, #034EA2, #00875A, #F5B800);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.form-group {
  margin-bottom: 0;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--diu-navy-dark);
  margin-bottom: 0.5rem;
}

.form-label i {
  color: var(--diu-blue-primary);
  font-size: 0.9rem;
}

.form-label span.req {
  color: #EF4444;
}

.form-control {
  width: 100%;
  padding: 1rem 1.35rem;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--diu-navy-dark);
  background-color: #F8FAFC;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-control:hover {
  background-color: #FFFFFF;
  border-color: #CBD5E1;
}

.form-control:focus {
  outline: none;
  border-color: var(--diu-blue-primary);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(3, 78, 162, 0.12), inset 0 2px 4px rgba(0,0,0,0.02);
  transform: translateY(-2px);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23034EA2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1.15rem;
  padding-right: 3rem;
  cursor: pointer;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.file-upload-box {
  border: 2px dashed var(--diu-blue-primary);
  background: #F1F5F9;
  border-radius: var(--diu-radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  display: block;
}

.file-upload-box:hover {
  background: rgba(3, 78, 162, 0.08);
  border-color: var(--diu-navy-dark);
  transform: translateY(-2px);
}

.file-upload-box input[type="file"] {
  display: none;
}

/* SECTION 2: SCHOLARSHIP & OVERSIGHT BANNER (#002652 NAVY SECTION) */
.scholarship-section {
  padding: 5.5rem 0;
  background: #002652;
  color: #FFFFFF;
}

.scholarship-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.scholarship-video-card {
  position: relative;
  border-radius: var(--diu-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.15);
}

.scholarship-video-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* SECTION 3: ABOUT PORTAL (WHITE BACKGROUND) */
.about-section {
  padding: 5.5rem 0;
  background: #FFFFFF;
}

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

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.about-feat-card {
  background: #F8FAFC;
  padding: 1.35rem;
  border-radius: var(--diu-radius-md);
  border: 1px solid var(--diu-border);
}

.about-feat-card .icon {
  width: 44px;
  height: 44px;
  background: rgba(3, 78, 162, 0.1);
  color: var(--diu-blue-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* SECTION 4: PROCESS lifecycle (#F3F4F9 LIGHT GRAY) */
.process-section {
  padding: 5.5rem 0;
  background: #F3F4F9;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.process-card {
  background: #FFFFFF;
  border-radius: var(--diu-radius-md);
  padding: 2rem 1.5rem;
  border: 1px solid var(--diu-border);
  box-shadow: var(--diu-shadow-sm);
  position: relative;
  transition: all 0.3s ease;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--diu-shadow-md);
  border-color: var(--diu-blue-primary);
}

.process-num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: rgba(3, 78, 162, 0.12);
}

.process-icon {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, rgba(3, 78, 162, 0.1), #D5E4F5);
  color: var(--diu-blue-primary);
  border-radius: var(--diu-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* SECTION 5: CONTACTS SECTION (WHITE) */
.contact-section {
  padding: 5.5rem 0;
  background: #FFFFFF;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact-card {
  background: #F8FAFC;
  border-radius: var(--diu-radius-md);
  padding: 2.2rem 1.75rem;
  border: 1px solid var(--diu-border);
  box-shadow: var(--diu-shadow-sm);
  text-align: center;
  transition: all 0.3s ease;
}

.contact-card:hover {
  box-shadow: var(--diu-shadow-md);
  border-color: var(--diu-blue-primary);
}

.contact-avatar {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, var(--diu-blue-primary), var(--diu-navy-dark));
  color: var(--diu-yellow-gold);
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  border: 3px solid var(--diu-yellow-gold);
}

.contact-details {
  font-size: 0.9rem;
  color: #334155;
  text-align: left;
  background: #FFFFFF;
  padding: 1.1rem;
  border-radius: var(--diu-radius-sm);
  border: 1px solid var(--diu-border);
  margin-top: 1.2rem;
}

.contact-details p {
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* SECTION 6: FAQ ACCORDION SECTION (#F3F4F9) */
.faq-section {
  padding: 5.5rem 0;
  background: #F3F4F9;
}

.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #FFFFFF;
  border-radius: var(--diu-radius-md);
  border: 1px solid var(--diu-border);
  overflow: hidden;
}

.faq-header {
  padding: 1.35rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--diu-navy-dark);
}

.faq-header .icon {
  font-size: 1.1rem;
  color: var(--diu-blue-primary);
  transition: transform 0.3s ease;
}

.faq-body {
  padding: 0 1.75rem 1.35rem 1.75rem;
  display: none;
  font-size: 0.95rem;
  color: var(--diu-text-muted);
  line-height: 1.6;
  border-top: 1px solid #F1F5F9;
}

.faq-item.active .faq-header .icon {
  transform: rotate(180deg);
}

.faq-item.active .faq-body {
  display: block;
}

/* START YOUR JOURNEY BANNER (#0B335F NAVY BANNER MATCHING DIU SITE) */
.start-journey-banner {
  background: linear-gradient(135deg, #0B335F 0%, #002652 100%);
  color: #FFFFFF;
  padding: 5rem 0;
  position: relative;
}

.journey-content h2 {
  font-size: 2.6rem;
  color: #FFFFFF;
  font-weight: 800;
  margin-bottom: 1rem;
}

.journey-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin-bottom: 2rem;
}

/* OFF-CANVAS SIDEBAR MENU DRAWER FOR MOBILE */
.mobile-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 38, 82, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

@media (max-width: 1024px) {
  .mobile-sidebar-overlay {
    display: block;
  }
  .mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

.mobile-sidebar-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 320px;
  max-width: 85%;
  background: #FFFFFF;
  z-index: 2600;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-sidebar-overlay.active .mobile-sidebar-drawer {
  transform: translateX(0);
}

/* PAPER PLANE FLIGHT ANIMATION overlay */
.plane-animation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 38, 82, 0.4);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.plane-animation-overlay.active {
  display: flex;
}

.animated-plane {
  font-size: 5rem;
  color: var(--diu-yellow-gold);
  position: absolute;
  bottom: -10%;
  left: -10%;
  transform: rotate(45deg);
  text-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.plane-animation-overlay.active .animated-plane {
  animation: flyAway 1.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes flyAway {
  0% {
    bottom: -15%;
    left: -15%;
    transform: rotate(15deg) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: rotate(45deg) scale(0.9);
  }
  45% {
    bottom: 40%;
    left: 35%;
    transform: rotate(180deg) scale(1.4);
  }
  75% {
    bottom: 75%;
    left: 65%;
    transform: rotate(290deg) scale(1.1);
  }
  100% {
    bottom: 115%;
    left: 115%;
    transform: rotate(420deg) scale(0.4);
    opacity: 0;
  }
}

/* CUSTOM MODAL SYSTEM */
.custom-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 38, 82, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.custom-modal-box {
  background: #FFFFFF;
  border-radius: var(--diu-radius-lg);
  max-width: 620px;
  width: 100%;
  padding: 2.75rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-modal-overlay.active .custom-modal-box {
  transform: scale(1);
}

.modal-close-icon {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #F1F5F9;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--diu-text-muted);
  font-size: 1.2rem;
}

/* CUSTOM TOAST CONTAINER */
#customToastContainer {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  min-width: 320px;
  max-width: 420px;
  background: #FFFFFF;
  border-left: 5px solid var(--diu-blue-primary);
  border-radius: var(--diu-radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--diu-navy-dark);
  animation: toastIn 0.3s ease;
}

.toast-item.toast-success { border-left-color: var(--diu-green-accent); }
.toast-item.toast-info { border-left-color: var(--diu-yellow-gold); }
.toast-item.toast-error { border-left-color: #EF4444; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* OFFICIAL DIU FOOTER (#0B2850 EXPLICIT MATCH) */
.footer {
  background: #0B2850;
  color: #FFFFFF;
  padding: 4.5rem 0 2rem 0;
}

.footer-newsletter-box {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--diu-radius-md);
  padding: 2rem;
  margin-bottom: 3.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--diu-yellow-gold);
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: var(--diu-blue-primary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .scholarship-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .top-utility-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar-inner {
    height: 72px;
    gap: 0.5rem;
  }
  .logo-text h1 {
    font-size: 0.95rem;
  }
  .logo-text span.portal-tag {
    font-size: 0.65rem;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .form-wrapper-card {
    padding: 2rem 1.25rem;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  #customToastContainer {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }
  .toast-item {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .logo-brand {
    gap: 0.6rem;
  }
  .logo-text h1 {
    font-size: 0.85rem;
  }
  .logo-crest-badge {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}
