:root{
  --brand-blue: #004080;
  --brand-gold: #f5c518;
  --muted: #6c757d;
  --card-bg: #ffffff;
}

body{
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f6f8fa;
  color: #222;
}

/* TOP CONTACT BAR */
.top-contact {
  background: var(--brand-blue);
  color: #fff;
  font-size: 14px;
  padding: 6px 0;
}
.top-contact a { color: #fff; text-decoration: none; }
.top-contact a:hover { color: var(--brand-gold); text-decoration: underline; }

.top-contact .btn-apply {
  background: var(--brand-gold);
  color: var(--brand-blue);
  border: none;
  font-weight: 700;
}
.top-contact .btn-apply:hover {
  background: #e6b814;
  color: var(--brand-blue);
}

.top-contact .search-input{
  max-width: 220px;
}

/* HEADER (logo + title) */
.site-header {
  background: #fff;
  padding: 18px 0;
  border-bottom: 1px solid #e6e6e6;
}

.site-logo img {
  height: 84px;
  width: auto;
  border-radius: 6px;
  background: #fff;
}

.site-title {
  color: var(--brand-blue);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.2px;
  margin-top: 0;
  white-space: nowrap;   /* ✅ prevent breaking into 2 lines */
  overflow: hidden;
  text-overflow: ellipsis; /* ✅ in case screen too small */
}

.site-subtitle {
  color: #333;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* 📱 Mobile View Fix */
@media (max-width: 575px) {
  .site-header {
    padding: 8px;
  }

  .site-logo img {
    height: 40px; /* smaller logo for phone */
    margin-right: 6px;
  }

  .site-title {
    font-size: 0.45rem;   /* ✅ smaller font */
    line-height: 1.1;
    text-align: left;
    white-space: nowrap;  /* ✅ keep in one line */
    overflow: hidden;
  }

  .site-subtitle {
    font-size: 0.65rem;   
    line-height: 1.1;
    text-align: left;
    white-space: nowrap;  /* ✅ also in one line */
  }

  /* logo + text in same row */
  .site-header .container {
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
  }
}


/* NAVBAR */
.main-nav .navbar{
  background: var(--brand-blue);
}
.main-nav .nav-link{
  color: #fff !important;
  font-weight: 600;
  padding: 10px 14px;
}
.main-nav .nav-link:hover{
  background: var(--brand-gold);
  color: var(--brand-blue) !important;
  border-radius: 6px;
}
/* Desktop: open dropdown on hover */
@media (min-width: 992px){
  .main-nav .dropdown:hover .dropdown-menu{
    display:block;
    margin-top:0;
    animation: fadeIn 220ms ease-in-out;
  }
}

.dropdown-menu{
  min-width: 200px;
  border-radius: 6px;
}
.dropdown-item:hover{
  background: var(--brand-blue);
  color: #fff !important;
}

@keyframes fadeIn{
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* Mobile view: max-width 991px */
@media (max-width: 991px) {

  /* Dropdown toggle button style */
  .main-nav .dropdown > a {
    position: relative;
    padding-right: 30px; /* arrow space */
  }

  /* Arrow icon */
  .main-nav .dropdown > a::after {
    content: '▼';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    transition: transform 0.3s ease;
  }

  /* Dropdown menu hidden by default */
  .main-nav .dropdown-menu {
    display: none;
    background: var(--brand-gold); /* different color */
    padding: 10px;
    border-radius: 6px;
  }

  /* Open dropdown on click */
  .main-nav .dropdown.show .dropdown-menu {
    display: block;
    animation: slideDown 300ms ease-in-out;
  }

  /* Animate submenu */
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Submenu item hover effect */
  .main-nav .dropdown-item:hover {
    background: var(--brand-blue);
    color: #fff !important;
  }
}

/* MARQUEE / NEWS */
.news-bar{
  background: var(--brand-gold);
  color: #003050;
  padding: 8px 0;
  font-weight: 700;
}
.news-bar a{ color:#003050; text-decoration: none; font-weight:700; }
.news-bar a:hover{ text-decoration: underline; }

.info-section {
padding: 40px 0;
background-color: #003050;
}

.info-box {
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 1.5rem;
transition: all 0.4s ease;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
min-height: 180px;
padding: 2rem 1.5rem;
text-align: center;
background-color: transparent;
}

.icon-circle {
width: 70px;
height: 70px;
border-radius: 50%;
border: 2px solid white;
display: flex;
align-items: center;
justify-content: center;
position: relative;
margin: 0 auto;
transition: all 0.3s ease;
z-index: 1;
}

.icon-circle i {
font-size: 32px;
}

.icon-circle::after {
content: "";
position: absolute;
width: 100%;
height: 100%;
border: 2px solid rgba(255, 255, 255, 0.5);
border-radius: 50%;
animation: pulse-ring 1.5s infinite;
z-index: -1;
top: 0;
left: 0;
opacity: 0;
transition: opacity 0.3s;
}

@keyframes pulse-ring {
0% {
transform: scale(1);
opacity: 0.6;
}
100% {
transform: scale(1.8);
opacity: 0;
}
}

@media (hover: hover) {
.info-box:hover {
transform: translateY(-6px);
background: rgba(255, 255, 255, 0.1);
border-color: white;
box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.info-box:hover .icon-circle {
background-color: rgba(255, 255, 255, 0.1);
box-shadow: 0 0 15px 4px rgba(255, 255, 255, 0.6);
transform: scale(1.1);
}

.info-box:hover .icon-circle::after {
opacity: 1;
}
}

/* Responsive Icon Circle smaller on mobile */
@media (max-width: 576px) {
.icon-circle {
width: 55px;
height: 55px;
}

.info-box {
padding: 1.2rem 0.8rem;
min-height: auto;
}

.info-box h6 {
font-size: 0.95rem;
margin-top: 0.5rem;
}

.info-box i {
font-size: 1.5rem;
}
}

h6{
color: var(--card-bg);
}

.icon-circle {
width: 80px;
height: 80px;
background-color: aliceblue;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.icon-circle i {
color: #004080;
font-size: 2rem;
}

.info-box {
border: 1px solid rgba(255,255,255,0.2);
border-radius: 12px;
padding: 20px 10px;
transition: 0.3s;
}

.info-box:hover {
background-color: rgba(255, 255, 255, 0.1);
box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.info-box h6 {
margin-top: 15px;
font-weight: bold;
}

/* Responsive - Mobile */
@media (max-width: 576px) {
.icon-circle {
width: 60px;
height: 60px;
}
.icon-circle i {
font-size: 1.6rem;
}
.info-box h6 {
font-size: 0.95rem;
}
.info-box p {
font-size: 0.8rem;
}
}

/* Login Buttons Common Style */
.login-btn {
display: inline-block;
padding: 8px 18px;
margin: 5px;
font-size: 14px;
font-weight: 600;
color: #dbe9f2;
border: 2px solid gold;
border-radius: 25px;
text-decoration: none;
background: transparent;
transition: all 0.3s ease-in-out;
animation: fadeInUp 0.6s ease forwards;
}

/* Hover Effect */
.login-btn:hover {
background: gold;
color: #003050;
transform: scale(1.05) translateY(-3px);
box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Staff Button Specific */
.staff-btn {
animation-delay: 0.2s;
}

/* Student Button Specific */
.student-btn {
animation-delay: 0.4s;
}

/* Fade-in Up Animation */
@keyframes fadeInUp {
0% {
    opacity: 0;
    transform: translateY(20px);
}
100% {
    opacity: 1;
    transform: translateY(0);
}
}
/* Make carousel full width and centered */
#carouselExampleIndicators {
max-width: 100%;
margin: 0 auto;
}

/* Carousel images - responsive heights for different screens */
@media (min-width: 992px) {
/* Large screens: desktop, laptop */
#carouselExampleIndicators .carousel-item img {
height: 650px;
object-fit: cover;
width: 100%;
}
}

@media (min-width: 576px) and (max-width: 991px) {
/* Medium screens: tablets */
#carouselExampleIndicators .carousel-item img {
height: 450px;
object-fit: cover;
width: 100%;
}
}

@media (max-width: 575px) {
/* Small screens: phones */
#carouselExampleIndicators .carousel-item img {
height: 250px;
object-fit: cover;
width: 100%;
}
}

/* Style carousel indicators for a neat look */
.carousel-indicators button {
width: 10px;
height: 10px;
border-radius: 50%;
margin: 0 4px;
background-color: #888;
}

.carousel-indicators .active {
background-color: #444;
}

/* Optional: make prev/next arrows bigger on mobile */
@media (max-width: 575px) {
.carousel-control-prev-icon,
.carousel-control-next-icon {
width: 30px;
height: 30px;
}
}

.stats-section {
background: var(--brand-blue);
padding: 40px 0;
}

.stat-box {
background: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.stat-box h2 {
font-size: 2.5rem;
font-weight: bold;
color: var(--brand-blue);
}

.stat-box p {
margin: 0;
font-weight: 500;
}

/* small tweaks */
.btn-outline-gold{
  color: var(--brand-blue);
  border-color: var(--brand-gold);
  background: transparent;
}
.btn-outline-gold:hover{
  background: var(--brand-gold);
  color: var(--brand-blue);
}

/* responsive spacing for top-right buttons on mobile */
@media (max-width:767px){
  .top-contact .right-group{ margin-top:8px; }
  .header-buttons .btn{ margin:3px 4px; }
  .site-title{ font-size:1.05rem; }
}
/* ===== News & Events Section Background ===== */
.news-events-section {
background: #f0f4ff; /* Light blue shade */
padding: 20px;
border-radius: 12px;
}

/* ===== About Title Styling ===== */
.about-title {
font-weight: 800;
font-family: 'Poppins', sans-serif;
color: #1a237e; /* Deep blue */
text-transform: uppercase;
letter-spacing: 1px;
}

.about-underline {
width: 80px;
height: 4px;
background: #ff9800; /* Golden orange */
border-radius: 2px;
margin-bottom: 20px;
}
/* ===== News & Events Card ===== */
.news-card {
background: #ffffff;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0,0,0,0.15);
overflow: hidden;
}

/* Title Bar */
.news-title {
background: #003366;
color: white;
text-align: center;
padding: 12px;
font-weight: 700;
font-size: 1.1rem;
letter-spacing: 0.5px;
}

/* News List */
.news-list {
height: 200px;
overflow: hidden;
position: relative;
}

.news-item {
padding: 12px 15px;
border-bottom: 1px solid #eee;
animation: slideUp 9s linear infinite;
background: #fafafa;
}

.news-item:nth-child(even) {
background: #f5f5f5;
}

/* Links */
.news-item a {
display: block;
color: #1a237e;
text-decoration: none;
font-weight: 500;
}

.news-item a:hover {
color: #ff9800;
}

/* Animation - Vertical Scroll */
@keyframes slideUp {
0% { transform: translateY(0); }
33% { transform: translateY(-100%); }
66% { transform: translateY(-200%); }
100% { transform: translateY(0); }
}

/* Pause Animation on Hover */
.news-list:hover .news-item {
animation-play-state: paused;
}

/* Responsive */
@media (max-width: 768px) {
.news-list {
height: 150px;
}
}

.footer img {
max-width: 500px;
border-radius: 8px;
border: 2px solid #004080;
margin-top: 10px;
}

/* Optional: link hover color */
.footer a.text-dark:hover {
color: #004080;
text-decoration: underline;
}

/* Map container - smaller size */
.map-container {
position: relative;
width: 200px; /* reduced from 250px */
max-width: 100%;
border-radius: 8px;
overflow: hidden;
border: 2px solid #004080;
}

/* Map image - smaller with scaling */
.map-container img {
display: block;
width: 100%;
height: auto;
user-select: none;
transition: transform 0.3s ease;
transform-origin: center center;
cursor: pointer;
}

/* Zoom icons */
.map-zoom-icons {
position: absolute;
top: 6px; /* slightly closer */
right: 6px;
display: flex;
flex-direction: column;
gap: 4px; /* tighter spacing */
user-select: none;
}

.map-zoom-icons span {
background: rgba(0, 64, 128, 0.85);
color: white;
font-weight: bold;
font-size: 16px; /* slightly smaller icons */
width: 26px;
height: 26px;
line-height: 26px;
border-radius: 4px;
text-align: center;
cursor: pointer;
}

/* Bold text inside footer */
.footer p,
.footer a {
font-weight: bold;
}

.about-block {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 20px;
}

/* Text left side */
.about-text {
flex: 1 1 55%;
padding: 10px;
color: black;
font-size: 18px;
line-height: 1.8;
text-align: justify;
order: 1;
}

/* Image right side */
.about-image {
flex: 1 1 40%;
padding: 10px;
text-align: center;
margin-top: 50px;
order: 2;
}

.about-image img {
max-width: 100%;
height: auto;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}

.about-image img:hover {
transform: scale(1.03);
}

/* Heading style */
.about-heading {
font-weight: bold;
font-size: 22px;
margin-bottom: 5px;
color: #004080;
}

/* Divider style for headings only */
.about-divider {
width: 70px;
height: 4px;
background-color: #006400;
margin-bottom: 20px;
border: none;
}

/* Content text style */
.about-content {
font-size: 17px;
font-weight: bold;
color: #111;
line-height: 1.8;
text-align: justify;
margin-bottom: 20px;
}

/* Mobile view */
@media (max-width: 768px) {
.about-block {
flex-direction: column;
}

.about-text, .about-image {
flex: 1 1 100%;
order: unset;
}

.about-image {
margin-top: 20px;
}
} 

/* 🔗 Quick Links hover animation */
.footer .list-unstyled li {
  margin-bottom: 6px;
}

.footer .list-unstyled a {
  display: inline-block;
  padding: 6px 10px;
  position: relative;
  color: #222;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer .list-unstyled a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: #004080;
  transition: width 0.3s ease;
}

.footer .list-unstyled a:hover {
  color: #004080;
  transform: translateX(5px);
}

.footer .list-unstyled a:hover::after {
  width: 100%;
}

/* 🌐 Social Media hover animation */
.footer a i {
  transition: all 0.3s ease;
}

.footer a:hover i {
  transform: scale(1.2) rotate(10deg);
  color: #f5c518; /* yellow highlight on hover */
}

/* Footer overall spacing control */
.footer .container-fluid {
  padding: 20px 30px !important;  /* reduce top-bottom, left-right padding */
}

.footer h5 {
  font-size: 16px;
  margin-bottom: 12px; /* reduce heading bottom gap */
}

.footer p,
.footer ul {
  margin-bottom: 0; /* remove extra gap */
  font-size: 14px;
  line-height: 1.6;
}

.footer .list-unstyled li {
  margin-bottom: 4px; /* reduce list spacing */
}

/* Social media bar */
.footer .text-center {
  padding: 10px 0 !important; /* reduce height */
}
