/* ===== GLOBAL STYLES ===== */
html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Arial', sans-serif;
  color: #333;
}

/* ===== HEADER BASE ===== */
header {
  background: #0d47a1;
  padding: 10px 20px;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

/* ===== LEFT SECTION ===== */
.header-left {
  width: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.college-logo {
  max-height: 100px;
  width: auto;
  object-fit: contain;
}

/* ===== CENTER SECTION ===== */
.header-center {
  width: 60%;
  text-align: center;
}



.header-center h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 5px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.header-center p {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== HIGHLIGHTED TEXT ===== */
.highlight-text {
  background: #ffeb3b;   /* Yellow background */
  color: #000;           /* Black text */
  display: inline-block; /* Shrinks to fit text */
  padding: 2px 6px;      /* Space around text */
  border-radius: 4px;    /* Rounded corners */
  font-weight: 500;      /* Slightly bold */
  text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
  transition: background 0.2s ease;
}
.highlight-text:hover {
  background: #ffd700;   /* Brighter yellow on hover */
  cursor: default;
}

/* ===== RIGHT SECTION (SOCIAL MEDIA) ===== */
.header-right {
  width: 20%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.social-row {
  display: flex;
  justify-content: center;
  gap: 15px;
}
.social-row a {
  color: #fff;
  font-size: 2rem;
  transition: transform 0.2s ease, color 0.2s ease;
}
.social-row a:hover {
  transform: scale(1.2);
  color: #ffeb3b;
}

/* ===== NAVBAR ===== */
nav.navbar-custom {
  background: #0b3d91;
}
nav.navbar-custom .nav-link {
  color: #fff !important;
  font-weight: 600;
}
nav.navbar-custom .nav-link:hover {
  color: #ffcc00 !important;
}
.navbar-toggler {
  border-color: #fff;
}
.navbar-toggler-icon {
  background-color: #fff;
  mask: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="%23fff" viewBox="0 0 30 30"%3E%3Cpath stroke="none" d="M0 0h30v30H0z"/%3E%3Cpath stroke="%23000" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"/%3E%3C/svg%3E');
}

/* ===== ALERT MARQUEE ===== */
.alert-marquee {
  width: 100%;
  background: #fff3cd;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
}
.alert-text {
  display: inline-block;
  white-space: nowrap;
  font-weight: bold;
  color: red;
  font-size: 1.1rem;
  position: absolute;
  animation: scroll-left 20s linear infinite;
}
@keyframes scroll-left {
  0% { transform: translateX(50%); }
  100% { transform: translateX(-100%); }
}

/* ===== MAIN CONTENT ===== */
.main-content {
  background: #f5f5f5;
  flex: 1;
  color: #333;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 95%;
  margin: 20px auto;
}

/* ===== LEFT SECTION BOX ===== */
.left-section {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}
.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #003366;
  text-align: center;
}
.important-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.important-links li {
  margin: 8px 0;
}
.important-links a {
  color: #0056b3;
  text-decoration: none;
  font-weight: 500;
}
.important-links a:hover {
  text-decoration: underline;
  color: #003366;
}

/* ===== COORDINATOR MESSAGE ===== */
.coordinator-message {
  background: linear-gradient(to bottom right, #ffffff, #e0f0ff);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 30px;
  transition: transform 0.3s ease;
}
.coordinator-message:hover {
  transform: scale(1.02);
}
.coordinator-message p {
  text-align: justify;
  text-justify: inter-word;
}
.coordinator-message p.fw-bold {
  text-align: left;
}

/* ===== NOTICE BOARD ===== */
.notice-box {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  overflow: hidden;
}
.notice-header {
  background: #0d47a1;
  color: #fff;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}
.notice-container {
  height: 300px;
  overflow: hidden;
  position: relative;
}
.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  animation: scrollNotices 20s linear infinite;
}
.notice-list li {
  padding: 10px;
}
.notice-list a {
  text-decoration: none;
  color: #0d47a1;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes scrollNotices {
  0% { transform: translateY(50%); }
  100% { transform: translateY(-100%); }
}
.notice-container:hover .notice-list {
  animation-play-state: paused;
}

/* ===== PROGRAM CARDS ===== */
.card.bg-warning .card-title,
.card.bg-warning li,
.card.bg-warning a {
  color: #222 !important;
}

.program-link {
  font-size: 0.9rem;
  color: #003366;
  text-decoration: none;
  transition: color 0.2s ease;
}
.program-link:hover {
  color: #d32f2f;
  text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
  background: #0d47a1;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 1rem;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
}
.footer-gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}
.footer-gallery-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #0d47a1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}
.footer-gallery-item img:hover {
  transform: scale(1.1);
}
.footer-caption {
  margin-top: 5px;
  font-size: 0.9rem;
  color: #fff;
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  header {
    flex-direction: column;
    text-align: center;
  }
  .header-left,
  .header-center,
  .header-right {
    width: 100%;
  }
  .college-logo {
    max-height: 80px;
    margin-bottom: 8px;
  }
  .header-center h1 {
    font-size: 1.6rem;
  }
  .header-center p {
    font-size: 1rem;
  }
  .social-row a {
    font-size: 2.2rem;
  }
  .coordinator-message {
    padding: 20px;
  }
  .coordinator-message p.fw-bold,
  .coordinator-message p.text-center {
    text-align: center;
  }
  .highlight-text {
    padding: 4px 8px;
    font-size: 1.05rem;
  }
}
/* ===== POPUP OVERLAY (FIXED) ===== */
.banner-overlay {
    display: none;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.75);
    z-index: 999999;
}

/* ===== CENTERED BANNER BOX ===== */
.banner-content {
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 80vw;
    height: 80vh;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

/* Image */
.banner-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 1000000;
}
