/* ============================================
   CALL TO ACTION (APPLY NOW)
   ============================================ */
.cta-apply-section {
  /* background: linear-gradient(180deg, #fff 80%, #f8f8f8 100%); */
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px rgba(255, 115, 0, 0.07);
  padding: 3.5rem 1rem 4rem 1rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}
.cta-apply-section h2 {
  font-weight: 700;
  letter-spacing: 0.5px;
}
.cta-apply-underline {
  width: 60px;
  height: 8px;
  background: linear-gradient(90deg, #ff7300 60%, #005bea 100%);
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.cta-apply-btn, .brand-btn {
  display: inline-block;
  background: linear-gradient(90deg, #28a745 60%, #c3c800 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 0.8rem 2.8rem;
  border-radius: 2.5rem;
  box-shadow: 0 6px 32px rgba(40, 167, 69, 0.13);
  text-decoration: none;
  margin-top: 1.5rem;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.cta-apply-btn:hover, .brand-btn:hover {
  background: linear-gradient(90deg, #28a745 80%, #c3c800 100%);
  color: #fff;
  box-shadow: 0 8px 40px rgba(40, 167, 69, 0.18);
}
/* ============================================
   CUSTOM NAVBAR TOGGLER (Hamburger to X)
   ============================================ */
.custom-toggler {
  border: none;
  background: transparent;
  padding: 0.5rem 0.7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  z-index: 1100;
}
.custom-toggler .toggler-bar {
  display: block;
  width: 28px;
  height: 3px;
  background: #222;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(.4,2.08,.55,.44);
}
.custom-toggler.collapsed .toggler-bar {
  background: #222;
}
.custom-toggler:not(.collapsed) .toggler-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.custom-toggler:not(.collapsed) .toggler-bar:nth-child(2) {
  opacity: 0;
}
.custom-toggler:not(.collapsed) .toggler-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
/* ============================================
   TOPBAR COMPONENT
   ============================================ */
.topbar-ktvc {
  background: #e5e5e5;
  border-radius: 6px 6px 0 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 1rem;
  margin-bottom: 0;
}
.topbar-social-bg {
  background: green;
  border-radius: 6px 0 0 0;
  min-height: 48px;
}
.topbar-social-icons a {
  font-size: 1.3rem;
  color: #fff !important;
  transition: color 0.2s;
}
.topbar-social-icons a:hover {
  color: #222 !important;
}
.topbar-ktvc .bi {
  vertical-align: middle;
  margin-right: 4px;
}
.topbar-links a {
  color: #181c32;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.topbar-links a:hover {
  color: #c3c800;
}
.topbar-links .vr {
  border-left: 1px solid #bdbdbd;
  height: 22px;
  margin: 0 8px;
}
@media (max-width: 767.98px) {
  .topbar-ktvc .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .topbar-links {
    justify-content: flex-start !important;
    flex-wrap: wrap;
  }
  .topbar-social-bg {
    border-radius: 6px 6px 0 0;
  }
}
/* ============================================
   PRINCIPAL'S MESSAGE SECTION
   ============================================ */
.principal-message-section {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}
.principal-message-section .row {
  background: #eaf8fa;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 128, 96, 0.08);
  padding: 2.5rem 2rem;
  align-items: center;
}
.principal-message-section img {
  max-width: 220px;
  min-width: 120px;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.principal-message-section h2 {
  color: #008060;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.principal-message-section p {
  font-size: 1.13rem;
  color: #222;
}
.principal-message-section .fst-italic {
  color: #555;
  font-size: 1rem;
}
.partners-section {
  background: #f8f9fa;
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px rgba(40, 167, 69, 0.08);
  margin-top: 5rem;
  margin-bottom: 5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.partners-section .partner-logo {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.10);
  padding: 0.5rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  min-width: 120px;
  height: 110px;
  width: 120px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.partners-section .partner-logo img {
  height: 65px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(0.2) contrast(1.1);
  transition: filter 0.2s;
  display: block;
  margin: 0 auto;
}
/* ============================================
   OUR PARTNERS SECTION
   ============================================ */
.partners-section {
  background: #f8f9fa;
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px rgba(40, 167, 69, 0.08);
  margin-top: 3rem;
  margin-bottom: 3rem;
}
.partners-section h2 {
  letter-spacing: 1px;
  font-size: 2.2rem;
}
.partners-section .partner-logo {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.10);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.partners-section .partner-logo:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 6px 24px rgba(40, 167, 69, 0.18);
}
.partners-section .partner-logo img {
  max-height: 60px;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(0.2) contrast(1.1);
  transition: filter 0.2s;
}
.partners-section .partner-logo:hover img {
  filter: none;
}
.partners-section p.text-muted {
  font-size: 1.05rem;
  margin-bottom: 0;
}
/* ============================================
   BASE STYLES (Desktop First)
   ============================================ */

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body { overflow-x: hidden; }
p { overflow-wrap: anywhere; }
img, svg, video, canvas { max-width: 100%; height: auto; }

/* ============================================
   NAVBAR
   ============================================ */

.navbar { 
  position: relative;
  padding: 10px 0;
  min-height: 50px;
  z-index: 1000;
}
.navbar .container-fluid {
  flex-wrap: wrap;
  gap: 15px;
}
/* Logo positioning */
.navbar-brand {
  position: relative;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  margin-right: auto;
}
.navbar-brand img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}
.college-name {
  font-size: 28px;
  font-weight: bold;
  color: #28a745;
  margin-left: 15px;
  white-space: nowrap;
}

/* Nested submenus for desktop */
.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -0.125rem;
}
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu,
  .navbar .dropdown-submenu:hover > .dropdown-menu { 
    display: block; 
  }
}

/* Navbar Toggler */
.navbar .navbar-toggler {
  z-index: 1031;
}
.navbar-toggler {
  border: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #000;
}
.toggler-icon {
  display: inline-block;
  width: 22px;
  height: 18px;
  position: relative;
}
.toggler-icon .bar {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
  border-radius: 2px;
}
.toggler-icon .bar:nth-child(1) { top: 0; }
.toggler-icon .bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.toggler-icon .bar:nth-child(3) { bottom: 0; }
.navbar-toggler:not(.collapsed) .toggler-icon .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.navbar-toggler:not(.collapsed) .toggler-icon .bar:nth-child(2) {
  opacity: 0;
}
.navbar-toggler:not(.collapsed) .toggler-icon .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.navbar .collapse {
  margin-top: 8px;
}

/* ============================================
   CAROUSEL - DESKTOP
   ============================================ */

.carousel-item {
  position: relative;
  overflow: hidden;
  background: #000;
  height: 70vh;
  min-height: 500px;
}
.carousel-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay */
.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1;
}

/* Carousel Caption */
.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  border-radius: 1.2rem;
  padding: 2rem 1rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  max-width: 700px;
  width: 90%;
}

/* FIXED: Carousel Tag - Always Visible */
.carousel-tag {
  display: block;
  visibility: visible;
  opacity: 1;
  font-size: clamp(1.2rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
  background: rgba(0,0,0,0.7);
  border-radius: 1.5rem;
  padding: 0.25em 1.2em;
  margin-bottom: 0.7em;
  box-shadow: 0 2px 8px rgba(40,167,69,0.18);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 2px 2px 12px #000, 0 2px 8px #28a745;
  text-align: center;
  line-height: 1.3;
}

.carousel-tag .tag-green {
  color: #ceff00;
  text-shadow: 2px 2px 12px #000, 0 2px 8px #28a745;
}
.carousel-tag .tag-highlight {
  color: #ffc107;
  text-shadow: 2px 2px 12px #000, 0 2px 8px #ffc107;
}
.carousel-tag .tag-green,
.carousel-tag .tag-highlight {
  display: inline;
  font-size: inherit;
  font-weight: inherit;
}

.tag-green {
  color: #28a745;
  border-bottom: 2px solid #28a745;
  padding-bottom: 0.25rem;
}
.tag-highlight {
  color: #ffc107;
  border-bottom: 2px solid #ffc107;
  padding-bottom: 0.25rem;
}

/* Carousel Title & Subtitle */
.carousel-title {
  color: #ffc107;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.18);
  animation: fadeInUp 1s cubic-bezier(.39,.575,.565,1.000);
  font-size: clamp(1.5rem, 5vw, 2.8rem);
  font-weight: 900;
  margin: clamp(0.75rem, 2vw, 1.25rem) 0;
  line-height: 1.2;
}
.carousel-subtitle {
  color: #fff700;
  font-weight: 600;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.25);
  animation: fadeInUp 1.2s cubic-bezier(.39,.575,.565,1.000);
  font-size: clamp(0.875rem, 2.5vw, 1.125rem);
  margin: clamp(0.75rem, 2vw, 1.25rem) 0;
  line-height: 1.5;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Carousel Button */
.carousel-btn {
  display: inline-block;
  background: #ffc107;
  color: #000;
  padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.875rem);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.875rem, 2vw, 1rem);
  border-radius: 4px;
  margin-top: clamp(0.5rem, 2vw, 1.25rem);
  transition: background 0.3s ease;
  box-shadow: 0 2px 8px rgba(40,167,69,0.08);
}


/* ============================================
   HOMEPAGE COMPONENTS
   ============================================ */

.homepage-hero {
  background: linear-gradient(120deg, #28a745 60%, #ffc107 100%);
  color: #fff;
  border-radius: 0 0 2rem 2rem;
  box-shadow: 0 8px 32px rgba(40,167,69,0.12);
}
.homepage-hero h1, 
.homepage-hero h2, 
.homepage-hero h3 {
  color: #fff;
  text-shadow: 1px 2px 8px rgba(44,62,80,0.12);
}
.homepage-highlight {
  background: linear-gradient(90deg, #fffbe6 60%, #e9f5ea 100%);
  border-radius: 1.5rem;
  box-shadow: 0 2px 12px rgba(40,167,69,0.07);
}
.homepage-highlight .card {
  transition: transform 0.2s, box-shadow 0.2s;
}
.homepage-highlight .card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(40,167,69,0.18);
  border-color: #ffc107;
}

/* Buttons */
.carousel-btn, .btn-success, .btn-warning {
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(40,167,69,0.08);
}
.carousel-btn:hover, 
.btn-success:hover {
  background: #1e7e34;
  color: #fff;
  box-shadow: 0 4px 16px rgba(40,167,69,0.18);
}
.btn-warning:hover {
  background: #ffd600;
  color: #1e7e34;
  box-shadow: 0 4px 16px rgba(255,193,7,0.18);
}

/* Sections */
.homepage-section-title {
  color: #28a745;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.homepage-section-subtitle {
  color: #ffc107;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.about-kigumo {
  background: #e9f5ea;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(40,167,69,0.07);
}
.about-kigumo h3 {
  color: #28a745;
}
.about-kigumo ul {
  list-style: disc inside;
  color: #333;
  margin-top: 1rem;
}
.about-kigumo li {
  margin-bottom: 0.5rem;
  transition: color 0.3s, background 0.3s;
}
.about-kigumo li:hover {
  background: #e9f5ea;
  color: #28a745;
  border-radius: 0.5em;
  padding-left: 0.5em;
}

/* ============================================
   IMAGE SECTION
   ============================================ */

.img-section {
  background-image: url(../images/school1.jpg);
  background-repeat: no-repeat;
  height: 300px;
  background-size: cover;
  border: green solid;
}
.contact-text {
  font-size: 100px;
  color: green;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section .card-title { 
  font-weight: 600; 
}
.contact-section .contact-list a { 
  text-decoration: none; 
}
.contact-section .contact-list a:hover { 
  text-decoration: underline; 
}
.contact-section .card { 
  border: 1px solid rgba(0,0,0,0.08); 
}
.contact-section .form-status { 
  min-height: 1.25rem; 
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: #0b5d1e !important;
  color: ;
  backdrop-filter: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
.site-footer .footer-logo { 
  height: 42px; 
  width: auto; 
  object-fit: contain; 
}
.site-footer a { 
  color: ; 
  text-decoration: none; 
  cursor: pointer;
}
.site-footer a:hover { 
  color: #ffc107; 
.site-footer .container,
.site-footer .row {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
}
.site-footer .footer-links li { 
  margin-bottom: .4rem; 
}
.site-footer .footer-links i { 
  vertical-align: middle; 
  margin-right: 2px; 
}
.site-footer .footer-contact a { 
  color:black;
}
.site-footer .footer-contact a:hover { 
  color: yellow; 
}
.site-footer .footer-about { 
  color: #ffc107; 
}

/* Subscribe Form */
.subscribe-form .form-control {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}
.subscribe-form .form-control::placeholder { 
  color: rgba(255,255,255,0.7); 
}
.subscribe-form .form-control:focus { 
  box-shadow: none; 
  border-color: #ffc107; 
}

/* Social Icons */
.social-circle {
  width: clamp(32px, 8vw, 40px); 
  height: clamp(32px, 8vw, 40px); 
  border-radius: 50%;
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  color: #fff;
}
.bg-fb { background-color: #3b5998; }
.bg-tw { background-color: #1da1f2; }
.bg-yt { background-color: #ff0000; }
.bg-tg { background-color: #0088cc; }
.bg-wa { background-color: #25d366; } 

/* ============================================
   VISION & MISSION PAGE
   ============================================ */
.vision-card {
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  animation: visionFadeUp 0.6s ease both;
}
.vision-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  border-color: rgba(40, 167, 69, 0.25);
}
.vision-card-green { background: #e9f5ea; }
.vision-card-yellow { background: #fffbe6; }
.vision-card-light { background: #f8f9fa; }
.vision-card-teal { background: #eaf8fa; }

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

/* ============================================
   ABOUT PAGE BOXES
   ============================================ */
.about-card {
  padding: 1.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: aboutFadeUp 0.6s ease both;
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  border-color: rgba(40, 167, 69, 0.25);
}
.about-card-plain { background: #ffffff; }
.about-card-teal { background: #eaf8fa; }
.about-card-light { background: #f8f9fa; }
.about-card-yellow { background: #fffbe6; }
.about-card-green { background: #e9f5ea; }

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

/* About page text styling */
.about-heading,
.about-subheading {
  position: relative;
  display: inline-block;
  color: #28a745;
  letter-spacing: 0.5px;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.about-subheading-teal { color: #008060; }
.about-subheading-yellow { color: #c3c800; }

.about-heading::after,
.about-subheading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #28a745 0%, #c3c800 100%);
  transition: width 0.25s ease, opacity 0.25s ease;
  opacity: 0.85;
}
.about-heading:hover::after,
.about-subheading:hover::after {
  width: 72px;
  opacity: 1;
}
.about-heading:hover,
.about-subheading:hover {
  color: #1e7e34;
  text-shadow: 0 4px 10px rgba(40, 167, 69, 0.2);
}
.about-subheading-teal:hover { color: #006f54; }
.about-subheading-yellow:hover { color: #b5b800; }

/* Subtle text emphasis for lists */
.about-card ul li {
  position: relative;
  padding-left: 0.5rem;
}
.about-card ul li::marker {
  color: #28a745;
}

/* ============================================
   TABLET STYLES (max-width: 991.98px)
   ============================================ */

@media (max-width: 991.98px) {
  /* Navbar */
  .navbar .container-fluid {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .navbar-brand img {
    max-height: 32px;
  }
  .college-name {
    font-size: 50%;
    margin-left: 4px;
  }
  .navbar-nav {
    font-size: 0.95rem;
    gap: 2px;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  .navbar-nav .nav-item {
    width: 100%;
  }
  .navbar-nav .nav-link {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    width: 100%;
    text-align: left;
  }
  .navbar-collapse {
    width: 100%;
  }
  .dropdown-menu {
    width: 100%;
    min-width: 0;
    font-size: 0.95rem;
    position: static !important;
    float: none;
  }
  .dropdown-submenu > .dropdown-menu {
    display: none;
    padding-left: 0.75rem;
  }
  .dropdown-submenu > .dropdown-menu.show {
    display: block;
  }
  .navbar-collapse .dropdown-item { 
    width: 100%; 
  }
  
  /* Carousel */
  .carousel-item {
    height: auto;
    min-height: 220px;
  }
  .carousel-item img {
    position: static;
    width: 100vw;
    height: auto;
    min-height: 180px;
    object-fit: cover;
  }
  .carousel-caption {
    position: static;
    transform: none;
    padding: 0.7rem 0.2rem;
    max-width: 98vw;
    border-radius: 0.7rem;
    background: rgba(0,0,0,0.55);
    margin: 0.5rem auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  }
  .carousel-tag {
    font-size: 1rem;
    padding: 0.15em 0.5em;
    max-width: 98vw;
    white-space: normal;
    overflow-wrap: break-word;
  }
  .carousel-title {
    font-size: 1.1rem;
    margin: 0.4rem 0;
  }
  .carousel-subtitle {
    font-size: 0.85rem;
    margin: 0.3rem 0;
  }
  .carousel-btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    margin-top: 0.4rem;
  }
  
  /* Homepage Components */
  .homepage-highlight, 
  .about-kigumo {
    padding: 1rem 0.5rem;
    border-radius: 0.7rem;
  }
  .about-kigumo h3 {
    font-size: 1.1rem;
  }
  .about-kigumo ul {
    font-size: 0.95rem;
    padding-left: 1rem;
  }
  .homepage-section-title {
    font-size: 1.1rem;
  }
  .homepage-section-subtitle {
    font-size: 0.95rem;
  }
  .card-title {
    font-size: 1rem;
  }
  .card-text {
    font-size: 0.95rem;
  }
}

/* ============================================
   MOBILE STYLES (max-width: 767.98px)
   ============================================ */

@media (max-width: 767.98px) {
  /* Navbar Mobile */
  .navbar .container-fluid {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .navbar-brand img {
    max-height: 32px !important;
  }
  .college-name {
    font-size: 13px !important;
    margin-left: 4px !important;
  }
  .navbar-nav {
    font-size: 0.95rem !important;
    gap: 2px !important;
    width: 100% !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .navbar-nav .nav-item {
    width: 100% !important;
  }
  .navbar-nav .nav-link {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    width: 100% !important;
    text-align: left !important;
  }
  .navbar-collapse {
    width: 100% !important;
  }
  .dropdown-menu {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 0.95rem !important;
  }
  
  /* Carousel Mobile - FIXED VERSION */
  .carousel-item {
    height: auto !important;
    min-height: 180px !important;
    max-height: none !important;
    background: #000 !important;
  }
  .carousel-item img {
    position: static !important;
    width: 100vw !important;
    height: auto !important;
    min-height: 140px !important;
    max-height: 260px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 auto !important;
  }
  .carousel-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100% !important;
    min-height: 100% !important;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0.6) 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
  }
  .carousel-caption {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 96vw !important;
    max-width: 96vw !important;
    background: rgba(0,0,0,0.55) !important;
    border-radius: 0.7rem !important;
    padding: 0.7rem 0.2rem !important;
    margin: 0 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  /* FIXED: Carousel Tag - Mobile */
  .carousel-tag {
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    color: #fff !important;
    background: rgba(0,0,0,0.7) !important;
    border-radius: 0.5em !important;
    padding: 0.18em 0.6em !important;
    margin-bottom: 0.5em !important;
    max-width: 90vw !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18) !important;
    display: block !important;
    line-height: 1.2 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .carousel-title {
    font-size: 1.05rem !important;
    margin: 0.3rem 0 !important;
    text-align: center !important;
    background: rgba(0,0,0,0.35) !important;
    border-radius: 0.4em !important;
    padding: 0.1em 0.3em !important;
    display: inline-block !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }
  
  .carousel-subtitle {
    font-size: 0.85rem !important;
    margin: 0.2rem 0 !important;
    text-align: center !important;
    background: rgba(0,0,0,0.25) !important;
    border-radius: 0.3em !important;
    padding: 0.1em 0.2em !important;
    display: inline-block !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }
  
  .carousel-btn {
    font-size: 0.85rem !important;
    padding: 0.35rem 0.7rem !important;
    margin-top: 0.3rem !important;
    display: inline-block !important;
  }
  
  /* Footer Mobile */
  .site-footer {
    padding: 1.2rem 0.5rem !important;
    font-size: 0.95rem;
  }
  .footer-logo {
    height: 28px !important;
  }
  .footer-links li {
    margin-bottom: 0.2rem;
  }
  .subscribe-form .form-control {
    font-size: 0.95rem;
    padding: 0.3rem 0.5rem;
  }
  .social-circle {
    width: 28px !important;
    height: 28px !important;
    font-size: 1rem;
  }
}

/* ============================================
   SMALL MOBILE (max-width: 576px)
   ============================================ */

@media (max-width: 576px) {
  /* Very small screens logo adjustment */
  .navbar-brand img { 
    max-height: 40px; 
  }
  .college-name {
    font-size: 14px;
    margin-left: 8px;
  }
  
  /* Carousel Small Mobile */
  .carousel-item {
    height: auto;
    min-height: 420px;
  }
  .carousel-item img {
    position: relative;
    min-height: 420px;
  }
  .carousel-overlay {
    position: relative;
    align-items: flex-start;
    justify-content: center;
    padding: 1.25rem 0.75rem;
    min-height: 420px;
  }
  .carousel-caption {
    padding: 0.75rem 0.5rem;
    position: static;
  }
  .carousel-tag {
    font-size: 0.7rem;
    margin-bottom: 0.35rem;
  }
  .carousel-title {
    font-size: 0.95rem;
    margin: 0.4rem 0;
    line-height: 1.1;
  }
  .carousel-subtitle {
    font-size: 0.7rem;
    margin: 0.4rem 0;
    line-height: 1.25;
  }
  .carousel-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    margin-top: 0.5rem;
  }
  
  /* Contact section tighter padding */
  .contact-section .card-body { 
    padding: 1rem; 
  }
}

/* ============================================
   EXTRA SMALL SCREENS (max-width: 380px)
   ============================================ */

@media (max-width: 380px) {
  .carousel-item {
    min-height: 50%;
  }
  .carousel-overlay {
    padding: 1rem 0.5rem;
    min-height: 50%;
  }
  .carousel-tag {
    font-size: 50%;
  }
  .carousel-title {
    font-size: 50%;
    margin: 0.3rem 0;
  }
  .carousel-subtitle {
    font-size: 50%;
    margin: 0.3rem 0;
  }
  .carousel-btn {
    padding: 0.45rem 0.9rem;
    font-size: 50%;
  }


/* Emergency fix for carousel-tag visibility on mobile */
@media (max-width: 767.98px) {
  .carousel-tag {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.8) !important;
    padding: 0.3em 0.6em !important;
    margin: 0.5em auto !important;
    font-size: 1rem !important;
    z-index: 100 !important;
    position: relative !important;
  }
}

.next:hover,
  .btn-success:hover {
  background: yellow;
  color: green;
  box-shadow: 0 4px 16px rgba(40,167,69,0.18);
  font-size: medium;

}

}
.carousel-tag:hover {
  background: #ffc107;
  color: #1e7e34;
  box-shadow: 0 4px 16px rgba(255,193,7,0.18);
}

.login {
  margin-left: 10px;

}

.login:hover {
  background-color: yellow;
  color: green;
}

.dropdown-item:hover {
  background-color: greenyellow;

}

.nav-item:hover {
  background-color: green;
  color: white;
  text-transform:inherit;

}

.parners-text {
  background-color: greenyellow;
}



.parner {
  
}