:root {
  --primary-red: #ED2224;
  --primary-blue: #0173B3;
  --dark-text: #1f2937;
  --soft-bg: #f7fafc;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --bs-primary: #0173B3;
  --bs-primary-rgb: 1, 115, 179; /* Required for utilities using opacity */
}

/* Specifically override Primary Button styles */
.btn-primary {
  --bs-btn-bg: #0173B3;
  --bs-btn-border-color: #0173B3;
  --bs-btn-hover-bg: #015c8f; /* Slightly darker for hover */
  --bs-btn-hover-border-color: #015c8f;
  --bs-btn-active-bg: #015c8f;
  --bs-btn-active-border-color: #015c8f;
  --bs-btn-disabled-bg: #0173B3;
  --bs-btn-disabled-border-color: #0173B3;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-text);
  background: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: #0173B3;
}

.top-strip {
  background: linear-gradient(90deg, var(--primary-red), var(--primary-blue));
  color: #fff;
  font-size: 0.92rem;
  padding: 8px 0;
}

.top-strip a {
  color: #fff;
  margin-left: 16px;
}

.navbar {
  transition: all 0.35s ease;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
  font-weight: 800;
  color: var(--primary-blue) !important;
  letter-spacing: 0.3px;
}

.navbar-brand span {
  color: var(--primary-red);
}

.nav-link {
  font-weight: 600;
  color: #213547 !important;
  margin-left: 8px;
  margin-right: 8px;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-theme {
  background: linear-gradient(135deg, var(--primary-red), var(--primary-blue));
  border: none;
  color: #fff;
  border-radius: 50px;
  padding: 12px 24px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(1, 115, 179, 0.18);
}

.btn-theme:hover {
  color: #fff;
  transform: translateY(-2px);
}

.hero {
  position: relative;
  margin-top: 0;
}

.hero-slide {
  min-height: 60vh;
  display: flex;
  align-items: end;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(1, 115, 179, 0.25));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 720px;
  animation: fadeUp 1s ease;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 10px 18px;
  border-radius: 40px;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
  font-weight: 600;
}

.hero .h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.92);
}

.owl-theme .owl-dots {
  position: absolute;
  bottom: 25px;
  width: 100%;
}

.owl-theme .owl-dots .owl-dot span {
  background: rgba(255,255,255,0.5);
  width: 14px;
  height: 14px;
}

.owl-theme .owl-dots .owl-dot.active span {
  background: var(--primary-red);
}

.section-space {
  padding: 90px 0;
}

.section-title small {
  color: var(--primary-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-top: 10px;
  color: #132238;
}

.section-title p {
  color: #5b6472;
  max-width: 700px;
}

.feature-card,
.card-modern,
.gallery-card,
.notice-box,
.news-card {
  background: #fff;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.35s ease;
}

.feature-card:hover,
.card-modern:hover,
.gallery-card:hover,
.news-card:hover {
  transform: translateY(-8px);
}

.feature-icon {
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 1.7rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-blue));
  margin-bottom: 18px;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 24px;
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-badge {
  position: absolute;
  right: -10px;
  bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 22px;
  min-width: 190px;
}

.floating-badge h4 {
  font-weight: 800;
  color: var(--primary-blue);
  margin: 0;
}

.highlight-strip {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
  color: #fff;
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.notice-box {
  overflow: hidden;
}

.notice-header {
  background: linear-gradient(90deg, var(--primary-red), var(--primary-blue));
  color: #fff;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1.1rem;
}

.notice-list {
  max-height: 420px;
  overflow: auto;
  padding: 12px 0;
}

.notice-item {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid #edf2f7;
  transition: background 0.3s ease;
}

.notice-item:hover {
  background: #f8fbff;
}

.notice-date {
  min-width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(237, 34, 36, 0.1);
  color: var(--primary-red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1;
}

.notice-date span:last-child {
  font-size: 0.85rem;
  margin-top: 4px;
  color: var(--primary-blue);
}

.news-card img,
.gallery-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.news-card img {
  height: 220px;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.news-body {
  padding: 24px;
}

.meta {
  font-size: 0.9rem;
  color: #6b7280;
}

.gallery-card {
  overflow: hidden;
  position: relative;
}

.gallery-card img {
  height: 260px;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1,115,179,0.88), rgba(237,34,36,0.2));
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: all 0.35s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.stats-card {
  border-radius: 24px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
  height: 100%;
}

.stats-card h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-red);
  margin-bottom: 8px;
}

.footer {
  background: #0f172a;
  color: rgba(255,255,255,0.8);
  padding-top: 70px;
}

.footer h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer a {
  color: rgba(255,255,255,0.8);
  display: inline-block;
  margin-bottom: 10px;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 35px;
  padding: 20px 0;
  font-size: 0.95rem;
}

.bg-soft {
  background: var(--soft-bg);
}

.page-title {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 250px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: #fff;
}

/* Dark overlay */
.page-title .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

/* Title text */
.page-title h1 {
    position: relative;
    font-size: 36px;
    font-weight: 700;
    z-index: 2;
    margin: 0;
}

/* Content spacing */
.page-content {
    padding: 40px 0;
}

/* Optional: better readability */
.page-content p {
    font-size: 16px;
    line-height: 1.7;
}

/* Carousel container */
.owl-carousel.owl-theme {
  position: relative;
}

/* Hide initially */
.owl-carousel.owl-theme .owl-nav {
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

/* Show on hover */
.owl-carousel.owl-theme:hover .owl-nav {
  opacity: 1;
}

/* Positioning */
.owl-carousel.owl-theme .owl-nav {
  position: absolute;
  top: calc(50% - 35px);
  width: 100%;
  transform: translateY(-50%);
}

/* Buttons */
.owl-carousel.owl-theme .owl-nav button {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  background: #fff;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  /* Shadow */
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);

  /* Smooth animation */
  transition: all 0.35s ease;
  font-size: 50px;
  line-height: 1;
}

/* Icons */
.owl-carousel.owl-theme .owl-nav i {
  font-size: 32px;
  color: #333;
  transition: 0.3s;
}

/* Position */
.owl-carousel.owl-theme .owl-prev { left: 0px; }
.owl-carousel.owl-theme .owl-next { right: 0px; }

/* Hover effect */
.owl-carousel.owl-theme .owl-nav button:hover {
  transform: scale(1.2);
  background: #000;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.owl-carousel.owl-theme .owl-nav button:hover i {
  color: #fff;
  transform: translateX(3px);
}

/* Direction tweak */
.owl-carousel.owl-theme .owl-prev:hover i {
  transform: translateX(-3px);
}

/* Click effect */
.owl-carousel.owl-theme .owl-nav button:active {
  transform: scale(0.95);
}

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

.table-calendar th {
    color: #fff;
    background: #BF1A1A;
    font-size: 24px;
    text-align: center;
	text-transform:uppercase;
    width: 14.285%;
    padding: 10px 0px !important;
}

.table-calendar td p {
    margin: 0;
    padding-top: 25px;
    padding-bottom: 25px;
    font-size: 34px;
}

td.red-bg{
	color:#FDFDFD;
	background:#D00;
}


td.info-bg{
	padding:0 !important;
}

.table-calendar-wrap .table-condensed > tbody > tr > td, .table-calendar-wrap.table-condensed > tfoot > tr > td,  .table-calendar-wrap .table-condensed > thead > tr > td{
	padding:0 !important;
}

.info-bg p{
	color:#FDFDFD;
	background:#0173B3;
}

.popover{
	color:#616161 !important;
	text-align:center;
	border-radius:0;
}	

.table-calendar td {
    cursor: pointer;
    text-align: center;
    vertical-align:middle !important;
    position: relative;
}

.table-calendar span {
    font-size: 18px;
    position: absolute;
    bottom: 10px;
    right: 15px;
}

.table-calendar-event td{
	padding:10px !important;
}

/* General button styling */
.fixed-calendar-link,
.fixed-enroll-link {
    display: flex; /* Align icon and text */
    align-items: start; /* Vertically align icon and text */
    justify-content: center; /* Center the text and icon horizontally */
    padding: 5px 10px; /* Padding inside the buttons */
    font-size: 14px; /* Font size for text */
    text-decoration: none; /* Remove underline from links */
    border-radius: 8px; /* Round corners of the button */
    z-index: 9999; /* Ensure the buttons stay on top */
    animation: glowing 1.5s infinite alternate; /* Glowing animation */
}

/* Styling for the icon */
.fixed-calendar-link i, .fixed-enroll-link i {
    margin-right: 10px; /* Space between icon and text */
}

/* Glowing animation */
@keyframes glowing {
    0% {
        box-shadow: 0 0 1px #fff, 0 0 10px #fff, 0 0 2px #0173B3, 0 0 3px #0173B3, 0 0 4px #0173B3;
    }
    50% {
        box-shadow: 0 0 1px #fff, 0 0 20px #0173B3, 0 0 3px #0173B3, 0 0 4px #0173B3, 0 0 5px #0173B3;
    }
    100% {
        box-shadow: 0 0 0.5px #fff, 0 0 10px #fff, 0 0 2px #0173B3, 0 0 3px #0173B3, 0 0 4px #0173B3;
    }
}

/* Media query for desktop */
@media (min-width: 992px) {
    .fixed-calendar-link {
        position: fixed;
        bottom: 20px;
        right: 20px;
    }

    .fixed-enroll-link {
        position: fixed;
        bottom: 20px; /* Adjust position for the second button */
        left: 20px;
    }
}

/* Media query for mobile and tablet */
@media (max-width: 991px) {
    .fixed-calendar-link {
        position: fixed;
        bottom: 20px;
        right: 20px;
    }

    .fixed-enroll-link {
        position: fixed;
        bottom: 20px; /* Adjust position for the second button */
        left: 20px;
    }
    
    .footer-bottom {
        margin-bottom: 50px;
    }
}

/* Hover effect for buttons */
.fixed-calendar-link:hover, .fixed-enroll-link:hover {
    background-color: #0056b3; /* Darken the button on hover */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); /* Add subtle shadow on hover */
}
  

@media screen and (max-width: 767px) {
    .table-calendar th{
    	font-size:12px;
    }
			
	.table-calendar td{
		font-size:20px;
	}
	
	.table-calendar span{
		font-size:12px;
	}
}

@media (max-width: 991.98px) {
  .hero-slide {
    min-height: 58vh;
  }

  .floating-badge {
    position: static;
    margin-top: 16px;
  }

  .navbar {
    background: rgba(255,255,255,0.98);
  }
}

@media (min-width: 576px) {
  .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* Optional: fix 1px gap */
  }
}