/********** Template CSS **********/
:root {
    --primary: #a42121;
    --light: #FFF5F3;
    --dark: #103741;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Heading ***/
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family:  ‘monotype corsiva’;
    font-weight: 700;
}

h5,
h6,
.h5,
.h6 {
    font-weight: 600;
}

.font-secondary {
    font-family: 'Lobster Two', cursive;
}


/* --- Brand Styling --- */
.navbar-brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
}

.brand-logo {
  height: 60px !important;
  width: auto !important;
  object-fit: contain !important;
  border-radius: 10px !important;
  background-color: #fff !important;
  padding: 4px !important;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.brand-logo:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2) !important;
}

.gradient-text {
  background: linear-gradient(180deg, #a42121, #7f0d0d) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 800 !important;
  font-size: 1.6rem !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

/* --- Navbar Links Styling --- */
.navbar .nav-link {
  color: #333 !important;
  font-weight: 700 !important;
  transition: color 0.3s ease !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  background: linear-gradient(180deg, #a42121, #7f0d0d) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* --- Dropdown Toggle Icon --- */
.navbar .dropdown-toggle::after {
  border: none !important;
  content: "\f107" !important;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  vertical-align: middle !important;
  margin-left: 5px !important;
  transition: transform 0.5s !important;
}

.navbar .dropdown-toggle[aria-expanded=true]::after {
  transform: rotate(-180deg) !important;
}

/* --- Responsive Navbar --- */
@media (max-width: 991.98px) {
  .navbar-nav {
    flex-direction: column !important;
    margin-top: 15px !important;
    border-top: 1px solid #EEEEEE !important;
  }

  .navbar .nav-link {
    padding: 10px 0 !important;
    text-align: center !important;
  }

  .navbar .btn {
    display: block !important;
    width: 90% !important;
    margin: 15px auto 0 auto !important;
    text-align: center !important;
  }

  .navbar-collapse {
    background: #fff !important;
    padding: 15px !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  }

  .navbar .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* Shrink brand title and hide "PRESCHOOL" */
  .gradient-text {
    font-size: 1.2rem !important;
  }

  .gradient-text::after {
    content: "" !important;
  }

  .brand-logo {
    height: 50px !important;
  }
}

/* --- Desktop Dropdown --- */
@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block !important;
    top: calc(100% - 15px) !important;
    margin-top: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.5s, top 0.5s !important;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/*** Header ***/
.header-carousel::before,
.header-carousel::after,
.page-header::before,
.page-header::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 10px;
    top: 0;
    left: 0;
    background: url(../img/bg-header-top.png) center center repeat-x;
    z-index: 1;
}

.header-carousel::after,
.page-header::after {
    height: 19px;
    top: auto;
    bottom: 0;
    background: url(../img/bg-header-bottom.png) center center repeat-x;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), url(../img/about-banner.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}

.text-pink {
  color: #e75480;
}
#daily-schedule .bg-light:hover {
  background-color: #f9f9f9;
  transform: scale(1.02);
  transition: 0.3s ease-in-out;
}
/* ===============================
   SCHOOL LIFE SECTION STYLING
   =============================== */

.school-life-section {
  background-color: #fafafa;
  position: relative;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Section Title */
.school-life-section h2 {
  font-weight: 700;
  color: #a42121;
  letter-spacing: 0.5px;
}

.school-life-section p {
  color: #555;
  font-size: 0.95rem;
}

/* ----- CARD DESIGN ----- */
.school-life-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eee;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.school-life-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(164, 33, 33, 0.15);
  border-color: #a42121;
}

/* ----- ICON STYLE ----- */
.icon-circle {
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #a42121 !important;
  color: #fff;
  box-shadow: 0 5px 10px rgba(164, 33, 33, 0.3);
  transition: all 0.3s ease;
}

.school-life-card:hover .icon-circle {
  transform: scale(1.08) rotate(5deg);
  background-color: #8e1b1b !important;
}

/* ----- CARD HEADING ----- */
.school-life-card h5 {
  color: #222;
  font-weight: 600;
  font-size: 1.1rem;
}

/* ----- PARAGRAPH AND LIST ----- */
.school-life-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.school-life-card ul {
  padding-left: 0.5rem;
  margin: 0;
  list-style: none;
}

.school-life-card ul li {
  font-size: 0.9rem;
  color: #444;
  padding: 6px 0;
  border-bottom: 1px dashed #e0e0e0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.school-life-card ul li:last-child {
  border-bottom: none;
}

/* Small decorative icon before list items */
.school-life-card ul li::before {
  content: "\f00c"; /* Font Awesome check icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #a42121;
  font-size: 0.8rem;
}

.programs-section {
  background: #fafafa;
}

.programs-section h2 {
  color: #a42121;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.program-card {
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  position: relative;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.program-img img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-card:hover .program-img img {
  transform: scale(1.07);
}

.program-body {
  position: relative;
  background: #fff;
}

.icon-box {
  width: 70px;
  height: 70px;
  margin: -55px auto 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a42121, #d03030);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(164, 33, 33, 0.3);
  color: #fff;
  font-size: 26px;
}

.program-body h5 {
  color: #333;
  font-weight: 700;
  margin-bottom: 10px;
}

.program-body p {
  font-size: 0.93rem;
  color: #666;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .program-img img {
    height: 160px;
  }
  .icon-box {
    width: 60px;
    height: 60px;
    font-size: 22px;
  }
}
/* === Improved Blog Section CSS ===
   Paste into css/style.css or inside a <style> in the page head
*/

:root{
  --brand-1: #a42121;     /* primary brand red */
  --brand-2: #a32221;     /* secondary red */
  --muted: #666666;
  --muted-2: #9aa0a6;
  --bg-card: #ffffff;
  --glass: rgba(255,255,255,0.8);
  --radius: 12px;
  --shadow-sm: 0 6px 18px rgba(22, 24, 28, 0.06);
  --shadow-lg: 0 18px 40px rgba(17, 20, 24, 0.10);
  --max-width: 1200px;
  --transition: 220ms cubic-bezier(.2,.9,.2,1);
}

/* Container tweaks */
#blog-overview { font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; color: #222; }
#blog-overview .container { max-width: var(--max-width); }

/* POSTS LIST */
#blog-overview .post-card { display: block; }
#blog-overview .card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(15,15,15,0.04);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

/* Hover / focus lift */
#blog-overview .card:hover,
#blog-overview .card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16,16,16,0.06);
}

/* Post row layout (image + body) */
#blog-overview .post-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

/* smaller image height on medium screens */
@media (min-width: 768px) {
  #blog-overview .post-img { height: 140px; }
}
@media (min-width: 992px) {
  #blog-overview .post-img { height: 160px; }
}

/* When hovering the card, zoom the image slightly */
#blog-overview .card:hover .post-img { transform: scale(1.03); }

/* Card body spacing */
#blog-overview .card-body {
  padding: 1.05rem 1.1rem;
}
#blog-overview .post-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .38rem;
  color: #111;
  line-height: 1.2;
}
#blog-overview .post-excerpt {
  color: var(--muted);
  margin-bottom: .65rem;
  font-size: .95rem;
}

/* Meta and badges */
.post-meta small { color: var(--muted-2); font-size: .85rem; display:inline-flex; gap:.5rem; align-items:center; }
.category-badge {
  display:inline-block;
  padding: .18rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight:600;
  color:#fff;
  background: linear-gradient(90deg,var(--brand-1),var(--brand-2));
  box-shadow: 0 2px 8px rgba(164,33,33,0.12);
  margin-left:6px;
}

/* Date badge on image (positioned top-left) */
.post-card .img-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: .8rem;
  font-weight:700;
  display:inline-flex;
  flex-direction:column;
  text-align:center;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.06);
}

/* Make image container position relative to hold badge */
.post-card .img-wrap { position: relative; overflow: hidden; }

/* Read more / link styling */
#blog-overview .stretched-link, #blog-overview a.stretched-link {
  color: var(--brand-1);
  font-weight:600;
  text-decoration: none;
}
#blog-overview a.stretched-link:hover,
#blog-overview a.stretched-link:focus { text-decoration: underline; color: var(--brand-2); }

/* Sidebar cards (glass-like, subtle) */
.sidebar-card .card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.95));
  border-radius: 12px;
  border: 1px solid rgba(15,15,15,0.04);
  box-shadow: 0 8px 24px rgba(10,10,10,0.04);
}
.sidebar-card .card-body { padding: 1.05rem; }

/* Category links in sidebar */
#blogCategories { padding-left: 0; margin: 0; }
.category-link {
  color: #333;
  display: block;
  padding: 10px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  font-weight: 600;
}
.category-link:hover { background: rgba(164,33,33,0.06); color: var(--brand-1); transform: translateX(4px); }
.category-link.active { background: rgba(164,33,33,0.08); color: var(--brand-1); box-shadow: inset 0 0 0 1px rgba(164,33,33,0.04); }

/* Recent posts (mini list) */
#blog-overview .list-unstyled img { object-fit: cover; }

/* Tags cloud */
.tags-cloud { display:flex; flex-wrap:wrap; gap:8px; }
.tag-btn {
  border-radius: 999px;
  border: 1px solid rgba(16,16,16,0.06);
  background: transparent;
  padding: 7px 12px;
  font-size: .84rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.tag-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(12,12,12,0.06); background: rgba(164,33,33,0.06); color: var(--brand-1); }
.tag-btn:active { transform: translateY(-1px); }

/* Pagination */
.pagination { gap: .35rem; }
.pagination .page-item .page-link {
  border-radius: 8px;
  padding: .45rem .65rem;
  border: 1px solid rgba(16,16,16,0.06);
  color: #444;
}
.pagination .page-item.active .page-link {
  background: linear-gradient(90deg,var(--brand-1),var(--brand-2));
  color: #fff;
  border: none;
  box-shadow: 0 8px 22px rgba(164,33,33,0.12);
}

/* Small screen adjustments: stack image above text for better reading */
@media (max-width: 767px) {
  #blog-overview .row.g-0.align-items-center { display:block; }
  #blog-overview .post-img { height: 220px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  #blog-overview .card-body { padding: .95rem; }
}

/* Accessibility: clear focus visible state for interactive items */
a:focus, button:focus, .category-link:focus {
  outline: 3px solid rgba(164,33,33,0.14);
  outline-offset: 3px;
}

/* Utility tweaks */
.small { font-size: .85rem; color: var(--muted); }

/* Optional: subtle separator between posts on narrow screens */
@media (max-width: 991px) {
  #postsList .post-card + .post-card { margin-top: 1.25rem; }
}

/* --- Gallery (3-per-row, bigger tiles) --- */
:root{
  --brand-1:#a42121; --brand-2:#a32221; --muted:#6b6f74; --radius:12px; --transition:200ms;
}

/* Grid: 3 items per row on desktop */
.gallery-grid {
  display:grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 18px;
}
@media(min-width:700px){ .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1000px){ .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

/* Larger tiles */
.gallery-item {
  background:#fff;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 12px 30px rgba(8,8,8,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor:pointer;
  outline:none;
}
.gallery-item:focus,
.gallery-item:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(8,8,8,0.12); outline: 3px solid rgba(164,33,33,0.12); outline-offset: 4px; }

.img-wrap { position:relative; overflow:hidden; display:block; }
.img-wrap img { width:100%; height: 260px; object-fit:cover; display:block; transition: transform var(--transition); }
@media(min-width:1000px){ .img-wrap img { height: 300px; } }
.gallery-item:hover img, .gallery-item:focus img { transform: scale(1.04); }

/* video play icon overlay */
.media-icon {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:62px; height:62px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.65));
  color:#fff; font-size:1.2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform var(--transition);
}
.gallery-item:hover .media-icon { transform: translate(-50%,-50%) scale(1.06); }

/* caption badge bottom-left */
.img-caption {
  position:absolute;
  left:12px; bottom:12px;
  background: rgba(0,0,0,0.58);
  color:#fff; padding:6px 10px; border-radius:8px;
  font-weight:700; font-size:.95rem;
}

/* Lightbox */
.gallery-lightbox {
  position:fixed; inset:0; display:none; align-items:center; justify-content:center;
  background: rgba(6,6,6,0.78); z-index:1600; padding:20px;
}
.gallery-lightbox[aria-hidden="false"] { display:flex; }

.lb-content { max-width:1100px; width:100%; display:flex; flex-direction:column; gap:12px; align-items:center; }
.lb-media-wrap { width:100%; display:flex; align-items:center; justify-content:center; }

.lb-media-wrap img, .lb-media-wrap video {
  max-width:100%;
  max-height: calc(100vh - 240px);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

/* lightbox controls */
.lb-close, .lb-prev, .lb-next {
  position: absolute; top:18px; background: rgba(0,0,0,0.45); color:#fff; border:none;
  width:46px; height:46px; border-radius:8px; display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.lb-close { right:18px; font-size:26px; background: transparent; }
.lb-prev { left:18px; }
.lb-next { right:78px; }
.lb-prev:hover, .lb-next:hover, .lb-close:hover { transform: translateY(-3px); background: rgba(0,0,0,0.6); }

/* caption row */
.lb-caption { width:100%; display:flex; justify-content:space-between; align-items:center; gap:12px; color:#fff; }
.lb-title { font-weight:700; font-size:1.05rem; }
#lbDownload { background: linear-gradient(90deg,var(--brand-1),var(--brand-2)); color:#fff; border:none; padding:.45rem .6rem; border-radius:8px; }

/* accessibility focus */
button:focus, .category-btn:focus, .gallery-item:focus { outline:3px solid rgba(164,33,33,0.14); outline-offset:3px; }

/* search & categories minor styles (reuse previous) */
.categories-wrap { display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 0.6rem; }
.category-btn { background:transparent; border:1px solid rgba(16,16,16,0.06); padding:7px 12px; border-radius:999px; font-weight:600; cursor:pointer; }
.category-btn.active { background: linear-gradient(90deg,var(--brand-1),var(--brand-2)); color:#fff; }

/* ----- RESPONSIVE DESIGN ----- */
@media (max-width: 991px) {
  .school-life-card {
    padding: 1.5rem;
  }

  .d-flex.align-items-center.mb-3 {
    flex-direction: column;
    text-align: center;
  }

  .icon-circle {
    margin-bottom: 0.8rem;
  }
}

/*** Facility ***/
.facility-item .facility-icon {
    position: relative;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-item .facility-icon::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .9);
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-icon span {
    position: absolute;
    content: "";
    width: 15px;
    height: 30px;
    top: 0;
    left: 0;
    border-radius: 50%;
}

.facility-item .facility-icon span:last-child {
    left: auto;
    right: 0;
}

.facility-item .facility-icon i {
    position: relative;
    z-index: 2;
}

.facility-item .facility-text {
    position: relative;
    min-height: 250px;
    padding: 30px;
    border-radius: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
}

.facility-item .facility-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .9);
    transition: .5s;
    z-index: 1;
}

.facility-item .facility-text * {
    position: relative;
    z-index: 2;
}

.facility-item:hover .facility-icon::before,
.facility-item:hover .facility-text::before {
    background: transparent;
}

.facility-item * {
    transition: .5s;
}

.facility-item:hover * {
    color: #FFFFFF !important;
}


/*** About ***/
.about-img img {
    transition: .5s;
}

.about-img img:hover {
    background: var(--primary) !important;
}


/*** Classes ***/
.classes-item {
    transition: .5s;
}

.classes-item:hover {
    margin-top: -10px;
}


/*** Team ***/
.team-item .team-text {
    position: absolute;
    width: 250px;
    height: 250px;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #FFFFFF;
    border: 17px solid var(--light);
    border-radius: 250px;
    transition: .5s;
}

.team-item:hover .team-text {
    border-color: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.testimonial-carousel .testimonial-item .border {
    border: 1px dashed rgba(0, 185, 142, .3) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 45px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    border-color: var(--primary);
    background: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 16px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #ffffff !important;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: rgba(255,255,255,0.5);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: #FFFFFF;
    text-decoration: none; /* corrected from 'normal' */
    font-style: normal; /* corrected from 'none' */
    font-weight: 700;
    transition: color 0.3s ease; /* smooth hover */
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbbbbb; /* soft grey for inactive state */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .footer-menu a:last-child {
    border-right: none; /* remove last divider */
}

.footer .copyright a:hover,
.footer .footer-menu a:hover {
    color: var(--primary) !important; /* your theme’s primary color (red gradient base) */
    text-decoration: underline;
}


.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}
  :root {
            --brand-primary: #a42121;
            --brand-dark: #8c1c1c;
            --gray-100: #f8f9fa;
            --gray-200: #e9ecef;
            --gray-400: #ced4da;
            --gray-600: #6c757d;
            --gray-800: #343a40;
            --font-sans: 'Inter', sans-serif;
            --font-serif: 'Lora', serif;
            --error-color: #d93025;
            --success-color: #1e8e3e;
        }

        *, *::before, *::after { box-sizing: border-box; }



        .form-container {
            width: 100%;
            max-width: 1600px; /* Increased max-width for wider layout */
        }

        .form-shell {
            display: flex;
            flex-direction: column-reverse;
            gap: 2rem;
            align-items: flex-start;
        }
        
        @media (min-width: 1024px) {
            .form-shell {
                flex-direction: row;
                justify-content: center;
            }
        }

        .form-panel {
            flex: 1 1 60%;
            width: 100%;
            max-width: 850px; /* Increased form width */
            background: #fff;
            padding: 2rem;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        }

        .progress-steps {
            display: flex;
            gap: 1rem;
            align-items: center;
            margin-bottom: 2rem;
        }

        .step-pill {
            width: 40px; height: 40px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: var(--gray-200);
            color: var(--gray-600);
            font-weight: 700;
            transition: all .3s ease;
            position: relative;
        }
        .step-pill.active {
            background: var(--brand-primary);
            color: #fff;
            transform: translateY(-3px);
            box-shadow: 0 8px 15px rgba(164,33,33,0.2);
        }
        .step-pill.completed {
             background: var(--success-color);
             color:#fff;
        }
         .step-pill.completed::after {
            content:'✓';
            font-size:1.2rem;
         }


        .multi-form fieldset { border: 0; padding: 0; margin: 0; }
        .multi-form legend {
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: var(--brand-primary);
            font-size: 1.2rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--gray-200);
            width: 100%;
        }

        .field-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
        @media(min-width: 768px) { .field-grid { grid-template-columns: 1fr 1fr; } }
        .field-grid-3 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
        @media(min-width: 768px) { .field-grid-3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }


        .field { margin-bottom: 1.25rem; }
        .field label {
            display: block;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
            color: var(--gray-800);
            font-weight: 600;
        }
        .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field select {
            width: 100%;
            padding: 0.75rem 1rem;
            border-radius: 8px;
            border: 1px solid var(--gray-400);
            font-size: 1rem;
            font-family: inherit;
            transition: all .2s ease;
        }
        .field input:focus, .field select:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(164,33,33,0.15);
            border-color: var(--brand-primary);
        }
        .field.invalid input, .field.invalid select, .photo-drop.invalid {
            border-color: var(--error-color);
            box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.15);
        }
        .field.invalid label { color: var(--error-color); }

        .photo-drop {
            border: 2px dashed var(--gray-400);
            padding: 1rem; border-radius: 12px; text-align: center; position: relative;
            background: #fff; cursor: pointer; transition: all .2s ease;
        }
        .photo-drop:hover { background: var(--gray-100); border-color: var(--brand-primary); }
        .photo-drop-inner {
            display: flex; flex-direction: column; gap: 0.5rem;
            align-items: center; justify-content: center;
            color: var(--gray-600); font-weight: 500; padding: 1rem;
        }
        .photo-drop .icon { font-size: 2rem; color: var(--brand-primary); }
        .btn-clear-photo {
            position: absolute; top: 10px; right: 10px;
            background: #fff; border: 1px solid var(--gray-400);
            color: var(--gray-600); font-size: 1.2rem; cursor: pointer;
            width: 30px; height: 30px; border-radius: 50%; display: flex;
            align-items: center; justify-content: center;
        }

        .actions {
            display: flex; justify-content: space-between; gap: 1rem;
            margin-top: 2rem; border-top: 1px solid var(--gray-200); padding-top: 1.5rem;
        }

        .btn-ghost {
            background: var(--gray-200); color: var(--gray-800);
        }
        .btn-ghost:hover { background: var(--gray-400); }
        .btn-primary {
            background: var(--brand-primary); color: #fff;
            box-shadow: 0 4px 15px rgba(164,33,33,0.15);
        }
        .btn-primary:hover { background: var(--brand-dark); box-shadow: 0 6px 20px rgba(164,33,33,0.2); }
        .btn:disabled { background: var(--gray-400); cursor: not-allowed; }

        /* Preview Panel - A4 Styling */
        .preview-panel {
            width: 100%;
            max-width: 800px;
            position: sticky;
            top: 2rem;
        }
        @media (min-width: 1024px) {
            .preview-panel {
                /* New width is 85% of A4 width to match the scale */
                width: 178.5mm; 
                min-width: 178.5mm;
            }
        }
        .preview-document {
            background: #fff;
            box-shadow: 0 10px 40px rgba(0,0,0,0.1);
            padding: 1.5in 1in 1in 1in; /* Standard margins */
            font-family: var(--font-serif);
            color: #333;
            width: 210mm; /* A4 width */
            min-height: 297mm; /* A4 height */
            /* New scaling to make it visually smaller while preserving style */
            transform: scale(0.85);
            transform-origin: top left;
        }
        .doc-header { text-align: center; margin-bottom: 1in; }
        .doc-header img { max-width: 100px; margin-bottom: 0.5rem; }
        .doc-header h1 {
            font-family: var(--font-sans); font-size: 1.5rem;
            font-weight: 700; margin: 0; color: var(--brand-primary); letter-spacing: 1px;
        }
        .doc-header h2 {
            font-family: var(--font-sans); font-size: 1rem;
            color: var(--gray-600); font-weight: 500; margin: 0.25rem 0 0;
        }
        .app-id {
            text-align: right; font-family: 'Courier New', monospace;
            font-size: 0.9rem; color: var(--gray-600); margin-bottom: 0.5in;
        }
        .doc-section { margin-bottom: 0.75in; }
        .doc-section-title {
            font-family: var(--font-sans); font-size: 1rem;
            font-weight: 700; color: #000;
            border-bottom: 1px solid #ccc; padding-bottom: 0.25rem; margin-bottom: 0.3in;
        }
        .doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25in 0.5in; }
        .doc-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.25in 0.5in; }
        .doc-item { margin-bottom: 0.2in; }
        .doc-item-label {
            font-size: 0.8rem; color: #666; font-family: var(--font-sans);
            text-transform: uppercase; letter-spacing: 0.5px;
        }
        .doc-item-value { font-size: 1rem; min-height: 1.2rem; border-bottom: 1px solid #eee; padding: 2px 0;}
        .doc-item-value.placeholder { color: #aaa; }
        
        .doc-photo-area {
            display: flex; gap: 1in; align-items: flex-start;
        }
        .doc-photo {
            width: 1.5in; height: 1.5in; border: 1px solid #ccc;
            display: flex; align-items: center; justify-content: center;
            background: var(--gray-100); color: #aaa;
        }
        .doc-photo img { width: 100%; height: 100%; object-fit: cover; }

        .doc-footer { margin-top: 1in; }
        .doc-agreement { font-size: 0.9rem; font-style: italic; color: #555; margin-bottom: 0.5in; }
        .doc-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 1in; }
        .sig-box { border-top: 1px solid #000; padding-top: 0.5rem; font-family: var(--font-sans); font-weight: 600; }

        /* Thank you page */
        #thankYouPage {
            text-align: center;
            background: #fff;
            padding: 3rem 2rem;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            animation: fadeIn 0.5s ease-in-out;
        }
        #thankYouPage .success-icon {
            font-size: 4rem;
            color: var(--success-color);
            background: #e6f4ea;
            width: 100px; height: 100px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
        }
        #thankYouPage h2 { font-size: 2rem; color: var(--brand-primary); margin: 0 0 0.5rem; }
        #thankYouPage p { font-size: 1.1rem; color: var(--gray-600); max-width: 600px; margin: 0 auto 2rem; }
        .instructions {
            text-align: left;
            max-width: 500px;
            margin: 2rem auto;
            background: var(--gray-100);
            padding: 1.5rem;
            border-radius: 12px;
            border: 1px solid var(--gray-200);
        }
        .instructions h3 { margin: 0 0 1rem; font-size: 1.2rem; }
        .instructions ol { padding-left: 1.5rem; margin: 0; }
        .instructions li { margin-bottom: 0.75rem; font-size: 1rem; }
        .instructions strong { color: var(--brand-primary); font-weight: 700; }
        #thankYouPreview { margin: 2rem auto; }
        #thankYouPreview .preview-document { transform: scale(1); } 
		/* =========================
   Preview: Desktop visible + Mobile modal toggle
   ========================= */

/* Ensure preview visible on desktop flow */
.preview-panel {
  display: block !important;
  position: static !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  max-height: none !important;
  overflow: visible !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
  z-index: auto !important;
}

/* Ensure preview-inner exists visually if present */
.preview-panel .preview-inner {
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* =========================
   Mobile styles (<=1023px)
   ========================= */
@media (max-width: 1023px) {
  /* Collapsed by default — keep DOM but hidden */
  .preview-panel {
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(6px) !important;
    transition: max-height 320ms ease, opacity 240ms ease, transform 240ms ease;
    position: relative !important;
  }

  /* When opened, behave like a full-screen modal */
  .preview-panel.preview-open {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    background: rgba(0,0,0,0.55) !important;
    z-index: 9998 !important;
    max-height: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* inner wrapper: scrollable white card */
  .preview-panel .preview-inner {
    width: 100% !important;
    max-width: 980px !important;
    height: calc(100% - 2rem) !important;
    background: #fff !important;
    border-radius: 12px !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
    transform: none !important;
  }

  /* document inside modal should scale/fill nicely */
  .preview-panel .preview-inner .preview-document {
    transform: none !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: auto !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
  }

  /* Close button inside preview-inner (sticky at top) */
  .preview-panel .preview-inner .preview-close {
    position: sticky !important;
    top: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .5rem !important;
    margin: 0.75rem !important;
    float: right !important;
    background: linear-gradient(180deg, var(--brand-primary), var(--brand-dark)) !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    z-index: 10000 !important;
    border: none !important;
  }

  /* prevent background body scroll when modal open */
  body.preview-modal-open {
    overflow: hidden !important;
    touch-action: none !important;
    height: 100% !important;
  }

  /* Mobile toggle button (bottom-right) */
  .mobile-preview-toggle {
    position: fixed !important;
    right: 14px !important;
    bottom: 16px !important;
    z-index: 10001 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 14px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, var(--brand-primary), var(--brand-dark)) !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18) !important;
    cursor: pointer !important;
    border: 0 !important;
    transform: translateY(0) !important;
  }

  .mobile-preview-toggle .icon {
    width: 22px; height: 22px; display: inline-grid; place-items: center;
    background: rgba(255,255,255,0.08); border-radius: 50%;
    font-weight: 900;
  }

  .mobile-preview-toggle[aria-expanded="true"] {
    background: linear-gradient(180deg, var(--brand-dark), var(--brand-primary)) !important;
  }
}
/* =========================
   Thank You Page - Mobile Friendly
   ========================= */
@media (max-width: 1023px) {
    #thankYouPage {
        padding: 2rem 1rem !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
        margin: 1rem !important;
        width: auto !important;
    }

    #thankYouPage .success-icon {
        font-size: 3rem !important;
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 1rem !important;
    }

    #thankYouPage h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
        text-align: center !important;
    }

    #thankYouPage p {
        font-size: 1rem !important;
        text-align: center !important;
        max-width: 90% !important;
        margin: 0.5rem auto 1.5rem auto !important;
    }

    #thankYouPage .instructions {
        max-width: 95% !important;
        padding: 1rem !important;
        margin: 1rem auto !important;
    }

    #thankYouPage #thankYouPreview .preview-document {
        transform: scale(0.9) !important;
        width: 100% !important;
        min-height: auto !important;
        padding: 0.5rem !important;
    }
}
/* Hide close button on desktop */
@media (min-width: 1024px) {
    .preview-close {
        display: none !important;
    }
}
/* -------------------------
   Thank-you preview - final print render
   ------------------------- */
#thankYouPreview {
  margin: 2rem auto;
  display: flex;
  justify-content: center;
}

/* ensure the injected document prints/shows at 1:1 */
#thankYouPreview .preview-document,
#thankYouPreview .preview-document * {
  transform: none !important;
  width: auto !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* hide the live right-side preview while thank you view is shown */
body.show-thankyou #preview-section,
body.show-thankyou .preview-panel {
  display: none !important;
}
  #thankYouPreview #previewDocument {
    display: none;
  }

		/* Ensure final preview is not scaled */

        @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
        .team-section {
      padding: 60px 0;
    }

    .team-sidebar {
      background: white;
      border-radius: 15px;
      box-shadow: 0 0 10px rgba(0,0,0,0.08);
      padding: 20px;
    }

    .team-sidebar h4 {
      color: var(--primary-color);
      font-weight: 600;
      margin-bottom: 20px;
    }

    .team-list-item {
      padding: 12px 15px;
      margin-bottom: 8px;
      border-radius: 10px;
      cursor: pointer;
      transition: 0.3s;
    }

    .team-list-item:hover,
    .team-list-item.active {
      background-color: var(--primary-color);
      color: #fff;
    }

    .team-card {
      background: #fff;
      border-radius: 15px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.08);
      padding: 30px;
      display: flex;
      gap: 30px;
      align-items: flex-start;
      transition: 0.3s;
    }

    .team-card img {
      width: 200px;
      height: 200px;
      object-fit: cover;
      border-radius: 15px;
      border: 4px solid var(--primary-color);
    }

    .team-info h3 {
      color: var(--primary-color);
      font-weight: 700;
    }

    .team-info p.role {
      font-weight: 500;
      color: #666;
    }

    .team-info p.bio {
      margin-top: 15px;
      line-height: 1.6;
    }

    .team-contact p i {
      color: var(--primary-color);
      margin-right: 10px;
    }

    .social-links a {
      display: inline-block;
      margin-right: 10px;
      color: #fff;
      background: var(--primary-color);
      width: 38px;
      height: 38px;
      border-radius: 50%;
      text-align: center;
      line-height: 38px;
      transition: 0.3s;
    }

    .social-links a:hover {
      background: #7f1a1a;
      transform: translateY(-2px);
    }

    @media (max-width: 992px) {
      .team-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }

      .team-card img {
        width: 160px;
        height: 160px;
      }
    }

.blog-container {
  display: flex;
  gap: 2rem;
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
  flex-wrap: wrap;
}

.blog-main {
  flex: 0 0 65%;
  min-width: 300px;
}

.blog-article {
  background: var(--light);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.blog-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.blog-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-meta {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.blog-meta i {
  color: var(--primary);
  margin-right: 0.3rem;
}

.blog-content {
  line-height: 1.7;
  font-size: 1rem;
  color: var(--text);
  white-space: pre-line;
}

.blog-sidebar {
  flex: 0 0 30%;
  min-width: 250px;
  position: sticky;
  top: 2rem;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.other-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.other-posts-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.other-posts-list li:last-child {
  border-bottom: none;
}

.other-posts-list a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.other-posts-list a:hover {
  color: var(--primary);
}

@media (max-width: 991px) {
  .blog-container {
    flex-direction: column;
  }

  .blog-sidebar {
    position: static;
    margin-top: 2rem;
  }
}
