/* Global Styles */
html, body {
  overflow-x: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}
a {
  text-decoration: none;
  color: inherit;
}
.text-justify {
  text-align: justify;
}

/* Root Variables */
:root {
  --primary-color: #0B7189;
  --secondary-color: #3c4474;
  --text-color: #f8f9fa;
  --header-color: #bf4e30;
  --navbar-color: #4F7CAC;
}

/* Utility Classes */
.bg-navbar-var { background-color: var(--navbar-color) !important; }
.bg-primary-var { 
  background-color: var(--primary-color) !important; 
  color: #fff !important;
}
.bg-secondary-var { background-color: var(--secondary-color) !important; }
.text-primary-var { color: var(--primary-color) !important; }
.bg-header-var { background-color: var(--header-color) !important; }
.text-white-var { color: var(--text-color) !important; }
.text-secondary-var { color: var(--secondary-color) !important; }
.text-header-var { color: var(--header-color) !important; }

/* Buttons */
.btn-outline-custom {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-outline-custom:hover {
  background-color: var(--primary-color);
  color: #fff;
}
.header-icon {
  width:48px; height:48px; font-size:1.3rem;
}



.btn-close{
  width: 24px; height: 24px; font-size: 1rem;
}
/* Navbar */
.navbar-custom {
  width: 100%;
  background: var(--navbar-color);
  font-weight: 600;
  height: 5vh;
  align-items: center;
  padding: 0 1rem;
}
.navbar-custom .nav-link,
.navbar-custom .navbar-brand {
  color: white !important;
  font-weight: 500;
}
.navbar-custom .nav-link {
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}
.navbar-toggler {
  border: none;
  background: transparent;
  padding: 0.4rem 0.6rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Dropdown Menu */
.navbar-custom .dropdown-menu,
.dropdown-menu-custom {
  background-color: #fff;
  border: none;
  border-radius: 0;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.navbar-custom .dropdown-menu li + li .dropdown-item {
  border-top: 1px solid var(--navbar-color);
}
.dropdown-menu-custom .dropdown-item {
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  transition: background 0.3s ease;
}
.dropdown-menu-custom .dropdown-item:hover {
  background-color: var(--navbar-color);
  color: white;
}
.dropdown-menu {
  animation: dropdownFade 0.3s ease-in-out;
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Offcanvas */
.offcanvas.offcanvas-start {
  width: 320px;
  background-color: var(--navbar-color);
  color: white;
  transition: transform 0.3s ease-in-out;
}
.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.offcanvas-title {
  color: white;
  font-weight: bold;
  font-size: 1.3rem;
}
.offcanvas .btn-close {
  background-color: white;
  opacity: 1;
}
.offcanvas-body .nav-link {
  font-size: 1.05rem;
  padding: 0.6rem 1rem;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease-in-out;
}
.offcanvas-body .nav-link:focus {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Nav Tabs */
.nav-tabs {
  border-bottom: 1px solid #ddd;
}
.nav-tabs .nav-link {
  border-radius: 0 !important;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--navbar-color);
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
}
.nav-tabs .nav-link.active {
  border-bottom: 2px solid var(--navbar-color);
  background-color: var(--primary-color);
  color: #fff;
}
.nav-tabs .nav-link:hover {
  color: #fff;
  background-color: var(--primary-color);
}

/* Banner */
.banner {
  overflow: hidden;
}
.banner img {
  height: 50vh;
  object-fit: cover;
  width: 100%;
}



/* Notice Board */
.notice-slide-wrapper {
  height: 45.5vh;
  overflow: hidden;
  position: relative;
}

.notice-slide {
  display: flex;
  flex-direction: column;
  animation: scrollUp 20s linear infinite;
 
  will-change: transform;
}

.notice-card {
  height: 60px;
  display: flex;
  justify-content: start;
  margin-bottom: 10px;
  padding-left: 10px;
}

@keyframes scrollUp {
  0% {
    transform: translateY(100%);
    
  }

  100% {
    transform: translateY(-100%);
   
  }
}

.notice-slide-wrapper:hover .notice-slide {
  animation-play-state: paused;
  
}
/* Blinking */
.blinking-icon {
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
/* Principal Image */
.principal-image img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  max-width: 200px;
  height: auto;
}

.principal-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
/* Gallery */
.gallery-card {
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.gallery-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.gallery-card img,
.home-gallery .card-img-top {
  object-fit: cover;
  height: 200px;
  width: 100%;
  transition: transform 0.4s ease-in-out;
}
.home-gallery .card:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* Important Links */
.important-links-wrapper {
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}
.important-links-slider {
  display: inline-flex;
  animation: scrollLeft 25s linear infinite;
}
@keyframes scrollLeft {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.important-links-slider .link-card {
  flex: 0 0 auto;
  width: 240px;
}
.important-links-slider img {
  width: 250px !important;
  height: 100px !important;
  object-fit: contain;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.important-links-slider .link-card:hover .icon-img {
  transform: scale(1.1);
}
.pause-on-hover:hover .important-links-slider {
  animation-play-state: paused;
}

/* College Icon Cards */
.college-icon-details .info-card {
  border: none;
  border-radius: 1rem;
  background: white;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.college-icon-details .info-card:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}
.college-icon-details .info-icon {
  font-size: 2.9rem;
}
.college-icon-details .info-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-top: 0.5rem;
}
.college-icon-details .info-value {
  font-size: 1.8rem;
  font-weight: bold;
}

/* Stylish Headings */
.stylish-heading {
  position: relative;
  display: inline-block;
}
.stylish-heading::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
}

/* Footer Links */
.footer-links a {
  position: relative;
  transition: color 0.3s ease;
}
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.footer-links a:hover::after {
  transform: scaleX(1);
}

/* Section */
section {
  text-align: justify;
  scroll-margin-top: 100px;
}
blockquote {
  border-left: 4px solid #198754;
  padding-left: 1rem;
  color: #555;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-custom {
    flex-direction: column;
    align-items: flex-start;
  }
  .navbar-custom .nav-link {
    padding: 0.5rem 0;
  }
  .notice-slide-wrapper {
    height: 30vh;
  }
}
@media (max-width: 767.98px) {
  .banner-notice-row {
    flex-direction: row !important;
    flex-wrap: wrap;
  }
  .banner-notice-row > div {
    width: 100% !important;
    margin-bottom: 0.2rem;
    font-size: 0.5rem;
  }
  .banner img {
    height: auto;
    object-fit: contain;
  }
  .notice-board,
  .notice-slide-wrapper {
    height: auto !important;
  }
  .notice-slide-wrapper {
    height: 25vh;
  }
  .title-text {
    font-size: 0.875rem;
  }
  .notice-card .card-body {
    padding: 0.5rem 0.70rem;
    font-size: 0.75rem;
  }
  .principal-image img {
    max-width: 50% !important;
    width: 100% !important;
  }
  .principal-message h2,
  .about-college-home h2 {
    font-size: 1.3rem;
  }
  .principal-message p,
  .about-college-home p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .college-icon-details .info-title {
    font-size: 0.9rem;
  }
  .college-icon-details .info-value {
    font-size: 1.4rem;
  }
  .college-icon-details .info-icon {
    font-size: 2.2rem !important;
  }
  blockquote p {
    font-size: 1rem;
    padding-left: 0.5rem;
  }
  .blockquote-footer {
    font-size: 0.8rem;
  }
  #streamTabs .nav-link {
    font-size: 0.80rem !important;
    padding: 0.25rem 0.5rem !important;
  }
  #streamTabs .nav-item {
    margin: 2px;
  }
}
@media (max-width: 575.98px) {
    .header-icon {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
      }
  .gallery-row .col-sm-6,
  .gallery-row .col-md-4,
  .gallery-row .col-lg-3 {
    display: none;
  }
  .gallery-row .col-12:first-child {
    display: block !important;
  }
  #seat-matrix-table th,
  #seat-matrix-table td {
    font-size: 0.75rem;
    padding: 0.4rem;
  }
  #seat-matrix-table {
    font-size: 0.8rem;
  }
  .college-icon-details .info-icon i {
    font-size: 30px;
  }
  .college-icon-details .info-title {
    font-size: 12px;
  }
    .notice-board {
    height: 400px !important; /* Adjust as needed */
  }

    .notice-slide-wrapper {
      height: 250px !important;
      overflow: hidden;
    }
  
    .notice-slide {
      animation: scrollUp 15s linear infinite;
      /* मोबाइल पर थोड़ी fast */
    }
  
    .notice-card .card-body {
      padding: 0.4rem 0.5rem;
      font-size: 0.8rem;
    }
  
    .title-text {
      font-size: 0.85rem;
    }

}
