/*
Theme Name: SFX School Bootstrap Theme
Author: Your Team
Version: 1.0
Description: Custom Bootstrap based school theme
*/
:root {
  --bs-primary: #202135;
  --bs-secondary: #efa286;
  --bs-light: #faf9fb;
  --bs-dark: #202135;

  --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans",
    "Liberation Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
}

.hero {
  position: relative;
  width: 100%;
  margin-bottom: 60px;
}


.hero-overlay {
  background: rgba(0,0,0,0.5);
  height: 100%;
}
/* ERP Login Button Styling */
.navbar-nav .erp-login-btn > a {
  background-color: #000;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 20px;
  margin-left: 12px;
  font-weight: 600;
}

/* Hover effect */
.navbar-nav .erp-login-btn > a:hover {
  background-color: #333;
  color: #fff !important;
}
/* Logo text (site name) */
.navbar-brand span {
  font-size: 1.85rem;   /* increase size */
  font-weight: 500;    /* bold */
  color: #202135;      /* matches your --bs-dark */
}
/* Main menu items */
.navbar-nav .nav-link {
  font-size: 1.05rem;   /* slightly bigger */
  font-weight: 400;    /* semi-bold */
  color: #202135;
}
.navbar-nav .nav-item {
  margin-left: 10px;
}
.dropdown-menu .dropdown-item {
  font-size: 0.95rem;
   font-weight: 400; 
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--bs-secondary);
}

.navbar-nav .current-menu-item > .nav-link,
.navbar-nav .current-menu-parent > .nav-link {
  color: var(--bs-secondary);
  font-weight: 700;
}
/* Top bar adjustments */
.top-bar {
  font-size: 0.9rem; /* Increase/decrease as needed */
}


/* Desktop logo & brand text */
.navbar-brand .logo-img {
  height: 60px;
}

.navbar-brand .brand-text {
  font-size: 1.5rem;
  font-weight: 700;
}
.carousel-item {
  height: 80vh;            /* desktop */
  min-height: 400px;
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .carousel-item {
    height: 45vh;          /* mobile */
    min-height: 260px;
  }
}

/* Mobile adjustments */
@media (max-width: 991px) {
  .navbar-brand .logo-img {
    height: 40px; /* smaller logo */
  }

  .navbar-brand .brand-text {
    font-size: 1.1rem; /* smaller text */
    font-weight: 600;
  }
}

/* Mobile fix */
@media (max-width: 991px) {
  .navbar-nav .erp-login-btn > a {
    margin-left: 0;
    margin-top: 8px;
    display: inline-block;
  }
  .navbar-nav .nav-link {
    font-size: 1rem;
    padding: 10px 0;
  }
  
}
/* Navbar brand adjustments */
.navbar-brand span {
  font-weight: 700; /* Default desktop weight */
  font-size: 1.25rem; /* Default desktop font size */
}

@media (max-width: 991px) {
  .navbar-brand span {
    font-weight: 600;  /* Lighter weight for mobile */
    font-size: 1rem;   /* Smaller font for mobile */
  }

  .navbar-brand img {
    height: 45px; /* Reduce logo size slightly */
  }
}
@media (max-width: 576px) {
  .navbar .container-fluid {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-toggler {
    margin-top: 5px;
  }
}

/* Top Bar Styling */
.top-bar {
  padding-top: 6px;     /* increase height */
  padding-bottom: 6px;
  font-size: 24px;      /* increase text size */
}

/* Left text spacing */
.top-bar-left small {
  font-size: 18px;
  letter-spacing: 0.3px;
}

/* Social icons size & spacing */
.top-bar-right a {
  font-size: 16px;      /* icon size */
  margin-left: 10px;
}

/* Optional: better vertical alignment */
.top-bar .container {
  align-items: center;
}
/* Desktop hover dropdown */
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}
.top-bar .container-fluid,
.navbar .container-fluid {
  padding-left: 40px;
  padding-right: 20px;
}
/* Intro section */
.home-intro-section {
  background: #fff;
}

.school-title {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 500;
  font-size:40px;
  letter-spacing: 1px;
  margin-bottom: 30px;
  justify-content: center;
}

/* Text */
.title-text {
  white-space: nowrap;
}

/* Line container */
.title-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 60px;        /* ⭐ FIX */
}

/* Short line */
.title-lines::before {
  content: "";
  width: 30px;
  height: 2px;
  background: #202135;
}

/* Long line */
.title-lines::after {
  content: "";
  width: 60px;
  height: 2px;
  background: #202135;
}

/* Right alignment */
.title-lines.right {
  align-items: flex-start;
}
.title-lines.left {
  align-items: flex-end;
}
/* Mobile cleanup */
@media (max-width: 768px) {
  .title-lines {
    display: none;
  }

  .school-title {
    justify-content: center;
    text-align: center;
  }
}



/* Description */
.school-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

/* Events box */
.events-box {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.events-header {
  background: #202135;
  color: #fff;
  padding: 12px;
  font-weight: 600;
  text-align: center;
}

.events-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.events-list li {
  padding: 12px 15px;
  border-bottom: 1px dashed #ccc;
  font-size: 0.95rem;
}

.events-list li a {
  float: right;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--bs-secondary);
}
.home-cards-section {
  padding-top: 60px; /* adjust if needed */
}


.home-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}


/* Image zoom container */
.home-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
   overflow: hidden;
  transition: transform 0.6s ease;
}

/* Zoom image only */
.card-img img {
  transition: transform 0.6s ease;
}

.home-card:hover .card-img img {
  transform: scale(1.12);
}
/* Water fill overlay */


/* Keep content above water */
.home-card .card-body {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 18px;
}

/* Water layer */
.home-card .card-body::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
 background: rgba(13, 202, 240, 0.65);
  transition: height 0.6s ease;
  z-index: 1;
}

/* Fill on hover */
.home-card:hover .card-body::before {
  height: 100%;
}

/* Keep content above water */
.home-card .card-body h5,
.home-card .card-body a {
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
}

/* Text color change */
.home-card:hover h5 {
  color: #fff;
}

.home-card:hover .btn {
  background: #fff;
  color: #202135;
  border-color: #fff;
}
/* Curvy Read More button */
.home-card .btn {
  border-radius: 30px;          /* makes it curvy */
  padding: 6px 18px;            /* better proportion */
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.4s ease;
}


/* Mobile tweaks */
@media (max-width: 768px) {
  .school-title {
    text-align: center;
  }
}
