/* ================= GLOBAL TYPOGRAPHY ================= */

 /* ================= GLOBAL ================= */
p{
    text-align: justify;
}
 body {
    opacity: 0;
    transform: translateY(10px);
    transition: 
        opacity 0.6s ease,
        transform 0.6s ease;
}

body.loaded {
    opacity: 1;
    transform: translateY(0);
}

html {
    scroll-behavior: smooth;
}
button, a {
    transition: all 0.3s ease;
}

button:hover, a:hover {
    transform: translateY(-2px);
}
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


body {
    font-family: 'Poppins', sans-serif;
    color: #444444;
    background-color: #F8F9FA;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: #1e4fa3;
    font-weight: 600;
}

h1 { font-weight: 700; }
h2 { font-weight: 600; }
h3 { font-weight: 600; }
h4 { font-weight: 500; }

p {
    font-weight: 400;
    line-height: 1.7;
}

/* ================= TOP BAR ================= */

.top-bar {
    background-color: #0B3D91;
    color: #ffffff;
    font-size: 14px;
}

.top-bar a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 15px;
    transition: 0.3s ease;
}

.top-bar a:hover {
    color: #F4B400;
}

/* ================= BUTTONS ================= */

.btn-primary,
.apply-btn {
    background-color: #F4B400;
    border: none;
    color: #ffffff;
    font-weight: 600;
    border-radius: 6px;
    padding: 6px 16px;
    transition: 0.3s ease;
}

.btn-primary:hover,
.apply-btn:hover {
    background-color: #d89c00;
    color: #ffffff;
}

/* ================= MAIN HEADER ================= */

.main-header {
    padding: 5px 0;
    background: #ffffff;
    border-bottom: 3px solid #F4B400;
}

.main-header .row {
    align-items: center;
}

.college-name {
    font-size: 28px;
    font-weight: 700;
    color: #0B3D91;
    letter-spacing: 1px;
}

.college-location {
    font-size: 15px;
    color: #444;
    margin-top: 4px;
}

.college-sub {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    line-height: 1.5;
}

.naac-logo {
    max-height: 65px;
}

/* ================= NAVBAR ================= */
/* Navbar Background */
.navbar-custom {
    background-color: #082C6C;   /* deep blue */
    padding: 12px 0;
}

/* Navbar Text */
.navbar-custom .navbar-nav .nav-link {
    color: #ffffff !important;   /* PURE WHITE */
    font-weight: 500;
    padding: 14px 20px;
    margin-right: 20px;
    position: relative;
    transition: all 0.3s ease;
}

/* Hover Effect */
.navbar-custom .navbar-nav .nav-link:hover {
    color: #ffffff !important;   /* keep text white */
}

/* Active Link */
.navbar-custom .navbar-nav .nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
}

/* Underline Animation */
.navbar-custom .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -4px;
    background-color: #F4B400;   /* gold underline */
    transition: width 0.3s ease;
}

.navbar-custom .navbar-nav .nav-link:hover::after,
.navbar-custom .navbar-nav .nav-link.active::after {
    width: 100%;
}
.navbar-toggler {
    border-color: rgba(255,255,255,0.6);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}
/* ================= SECTION SPACING ================= */

section {
    padding: 60px 0;
}

/* ================= MISSION & VISION ================= */

.mission-vision-section {
    background: #003294;
    padding: 80px 0;
}

.mv-card {
    padding: 20px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: 0.3s;
    height: 100%;
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.mv-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 10px;
}

.vision-icon {
    background: #C9A227;
}

.mission-icon {
    background: #0B3D91;
}

.mv-title {
    font-size: 22px;
    font-weight: 600;
    color: #0B3D91;
}

.mv-underline {
    width: 60px;
    height: 3px;
    background: #F4B400;
    margin: 10px 0 10px 0;
}

.mv-text {
    font-size: 15px;
    line-height: 1.7;
}

/* ================= ABOUT SECTION ================= */

.about-highlight-section {
    padding: 50px 0;
    background: #f8f9fa;
}

.section-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #C9A227;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #0B3D91;
    margin-bottom: 10px;
}

.about-text {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.about-list li::before {
    content: "✔";
    color: #C9A227;
    margin-right: 10px;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .main-header {
        padding: 5px 0;
        text-align: center;
    }

    .college-name {
        font-size: 20px;
        letter-spacing: 0.5px;
    }

    .college-location,
    .college-sub {
        font-size: 12px;
    }

    .college-logo {
        max-height: 50px !important;
    }

    .navbar-custom .navbar-nav .nav-link {
        padding: 10px 15px;
    }

    .mv-card {
        text-align: center;
    }
}

/* Highlight Cards */
.highlight-card {
    background: #ffffff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    transition: 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
}

.highlight-card i {
    font-size: 32px;
    color: #0B3D91;
    margin-bottom: 15px;
}

.highlight-card h5 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    border-color: #C9A227;
}

.highlight-card:hover i {
    color: #C9A227;
}

/* ================= DEPARTMENTS SECTION ================= */

.departments-section {
    padding: 100px 0;
    background: #003294;
}


.section-subtitle-text {
    color: #555;
    font-size: 16px;
}

/* Department Card */
.dept-card {
    background: #ffffff;
    padding: 40px 25px;
    border-radius: 16px;
    text-align: center;
    transition: 0.3s ease;
    border: 1px solid #e5e5e5;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.dept-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #0B3D91, #1c5fd4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dept-icon i {
    font-size: 28px;
    color: #fff;
}

.dept-card h5 {
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.dept-card a {
    text-decoration: none;
    font-weight: 500;
    color: #0B3D91;
    transition: 0.3s;
}

.dept-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: #C9A227;
}

.dept-card:hover .dept-icon {
    background: linear-gradient(135deg, #C9A227, #f5c842);
}

.dept-card:hover a {
    color: #C9A227;
}

.news-card {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.image-wrapper {
    overflow: hidden;
}

.image-wrapper img {
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .image-wrapper img {
    transform: scale(1.1);
}

/* Smooth hover */
.event-list .list-group-item {
    border-radius: 10px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.event-list .list-group-item:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Fade-in animation */
.fade-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Smooth transition */
.event-list .list-group-item {
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    background: #fff;
}

/* Hover effect */
.event-list .list-group-item:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    background: #f8f9fa;
}

/* Title hover color */
.event-list .list-group-item:hover h6 {
    color: #0d6efd;
    transition: color 0.3s ease;
}

/* Badge slight animation */
.event-list .list-group-item:hover .badge {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}
.announcement-wrapper {
    height: auto;
}

.announcement-content {
    display: inline-block;
    white-space: nowrap;
    animation: scrollLeft 20s linear infinite;
}

.announcement-item {
    display: block;
    padding: 6px 0;
    font-weight: 500;
    color: #1f4e8c;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause when hovered */
.announcement-wrapper:hover .announcement-content {
    animation-play-state: paused;
}


.counter-section {
    background: #ffffff;
}


.counter-card {
    background: #f8f9fc;
    padding: 30px 20px;
    border-radius: 12px;
    transition: 0.3s ease;
}

.counter-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.counter {
    font-size: 46px;
    font-weight: 700;
    color: #1e4fa3;   /* same blue */
}

.counter-card p {
    margin-top: 10px;
    font-size: 15px;
    color: #555;
}

.custom-footer {
    background: #f4f7fb; /* light grey matching your site */
}

.footer-title {
    color: #1e4fa3;  /* your Latest News blue */
    font-weight: 600;
}

.footer-heading {
    color: #146c5f;  /* navbar teal */
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-text {
    color: #555;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    text-decoration: none;
    color: #444;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #1e4fa3; /* blue on hover */
    padding-left: 5px;
}

.social-icons a {
    color: #146c5f;
    font-size: 18px;
    margin-right: 10px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #1e4fa3;
}

.footer-bottom {
    font-size: 14px;
    color: #777;
}
.slider-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e4fa3; /* Your Latest News blue */
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

/* Elegant underline effect */
.slider-title::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #146c5f; /* navbar teal */
    display: block;
    margin: 8px auto 0;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .slider-title {
        font-size: 20px;
    }
}

/* ================= SIDEBAR ================= */

.sidebar-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.sidebar-title {
    font-weight: 600;
    color: #0B3D91;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #F4B400;
}

.sidebar-back {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #0B3D91;
    text-decoration: none;
    margin-bottom: 15px;
}

.sidebar-back:hover {
    color: #F4B400;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #444;
    font-weight: 500;
    transition: 0.3s ease;
}

.sidebar-menu a:hover {
    background: #f4f7fb;
    color: #0B3D91;
    padding-left: 18px;
}

/* Optional Active State */
.sidebar-menu a.active {
    background: #0B3D91;
    color: #ffffff;
}


.faculty-wrapper {
    margin-top: 30px;
}

.faculty-item {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.faculty-card {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .faculty-card {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    /* Separator between photo and content */
    .faculty-card > div:first-child {
        border-bottom: 1px solid #ddd;
        padding-bottom: 15px;
        margin-bottom: 15px;
        width: 100%;
    }
}

/* Wrapper for responsiveness */
.custom-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
}

/* Base Table Style */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  font-size: 15px;
}

/* Header */
.custom-table thead {
  background: linear-gradient(135deg, #0B3D91, #163d7a);
  color: #ffffff;
}

.custom-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 14px;
  text-transform: uppercase;
}

/* Body Cells */
.custom-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f1f1;
  color: #444;
  transition: all 0.3s ease;
}

/* Zebra Striping */
.custom-table tbody tr:nth-child(even) {
  background-color: #f9fbff;
}

/* Hover Effect */
.custom-table tbody tr:hover {
  background-color: #fff8e1;
  transform: scale(1.01);
  transition: all 0.2s ease-in-out;
}

/* Last Row Border Remove */
.custom-table tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive Font Adjust */
@media (max-width: 768px) {
  .custom-table {
    font-size: 14px;
  }

  .custom-table th,
  .custom-table td {
    padding: 10px;
  }
}

/* ============================= */
/* Main Content List Styling */
/* ============================= */
.main-content ul,
.main-content ol {
  margin: 15px 0 15px 25px;
  padding: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

/* =========================
   Unordered List (Gold Dot)
   ========================= */

.main-content ul {
  list-style: none;
}

.main-content ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

/* Gold Bullet */
.main-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  background: #F4B400;
  border-radius: 50%;
}

/* =========================
   Ordered List (Blue Badge)
   ========================= */

.main-content ol {
  list-style: none;              /* ✅ FIXED: removes default 1,2,3 */
  counter-reset: list-counter;   /* Reset custom counter */
}

.main-content ol li {
  position: relative;
  padding-left: 40px;            /* Slightly more space for badge */
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

/* Blue Number Badge */
.main-content ol li::before {
  counter-increment: list-counter;
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 3px;
  width: 24px;
  height: 24px;
  background: #0B3D91;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 24px;
  border-radius: 50%;
}

/* =========================
   Hover Effect
   ========================= */

.main-content ul li:hover,
.main-content ol li:hover {
  color: #0B3D91;
  transform: translateX(4px);
}

/* =========================
   Nested Lists
   ========================= */

.main-content ul ul,
.main-content ol ol,
.main-content ul ol,
.main-content ol ul {
  margin-top: 8px;
  margin-left: 15px;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 768px) {
  .main-content ul,
  .main-content ol {
    font-size: 14px;
  }
}

/* Modal overlay */
.css-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;       /* hide by default */
  align-items: flex-start;
  justify-content: center;
  z-index: 9999;
  overflow-y: auto;    /* scroll if content is taller than viewport */
}

/* Modal content */
.css-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  max-height: 90vh;
  overflow-y: auto;
}

/* Close button */
.css-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  text-decoration: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

.css-modal-close:hover {
  color: #000;
}