/* your styles go here */
/* Example site test */

/* REMOVE ONLY background images (keep front <img>) */
.home-carousel,
.home-carousel .item,
.home-carousel .owl-item {
  background-image: none !important;
}

/* Keep the dark overlay optional */
.home-carousel .dark-mask {
  background: rgba(0, 0, 0, 0.3); /* keep overlay */
  /* OR remove it completely:
     display: none !important;
  */
}






/* ================================
   SITE ALERT – FINAL VERSION
   ================================ */

.site-alert {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Alert container */
.site-alert .alert {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    margin: 0;                 /* 🔑 removes top gap */
    border-radius: 0;
    padding: 10px 0;
}

/* Inner wrapper to center content like Bootstrap container */
.site-alert-inner {
    max-width: 1170px;         /* Bootstrap container width */
    margin: 0 auto;
    padding: 0 15px;           /* same as container padding */
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: center;
}

/* Icon */
.site-alert i {
    font-size: 1.2em;
    flex-shrink: 0;
}

/* Scrolling wrapper */
.alert-marquee {
    position: relative;
    overflow: hidden;
    flex: 1;
}

/* Scrolling text */
.alert-marquee span {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: alert-scroll 18s linear infinite;
}

.site-alert:hover .alert-marquee span {
    animation-play-state: paused;
}

/* Animation */
@keyframes alert-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ================================
   TOP BAR – BLUE BACKGROUND
   ================================ */

#top {
    background-color: #2f5f8f;   /* professional blue */
    border-bottom: none;
}

/* Logo – white */
#top .navbar-brand img {
    height: 40px;
    filter: brightness(0) invert(1);
}

/* Social icons container */
#top .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    height: 50px;
    line-height: 40px;
    opacity: 1;
}

/* Social icons – white & sharp */
#top .social a i {
    font-size: 28px;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

/* Hover effect */
#top .social a:hover i {
    color: #dbe9ff;
}


/* ================================
   REDUCE NAV BAR HEIGHT
   ================================ */

/* ================================
   FIX NAV GAP + REDUCE HEIGHT
   ================================ */

/* Remove unwanted top gap */
#navbar.navbar {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 44px;
}

/* Reduce menu item height */
#navbar .nav > li > a {
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 24px;
}

/* Fix active menu item extra height */
#navbar .nav > li.active > a,
#navbar .nav > li > a:hover {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Mobile toggle alignment */
#navbar .navbar-toggle {
    margin-top: 4px;
    margin-bottom: 4px;
    padding: 6px 10px;
}

/* Prevent dropdown from pushing nav height */
#navbar .dropdown-menu {
    margin-top: 0;
}


/* =========================================
   FORCE COMPACT NAVBAR (FIX AFFIX GAP)
   ========================================= */

/* Kill body padding added by affix */
body {
    padding-top: 0 !important;
}

/* Override affixed navbar spacing */
.navbar-affixed-top,
.navbar-affixed-top.affix {
    top: 0 !important;
}

/* Force navbar height */
#navbar {
    min-height: 42px !important;
    margin: 0 !important;
}

/* Menu item height */
#navbar .nav > li > a {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    line-height: 22px !important;
}

/* Active & hover states */
#navbar .nav > li.active > a,
#navbar .nav > li > a:hover {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* Mobile toggle */
#navbar .navbar-toggle {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    padding: 6px 10px !important;
}

/* Prevent dropdown spacing from affecting height */
#navbar .dropdown-menu {
    margin-top: 0 !important;
}




/* =========================================
   RECENT POSTS – FORCE UNIFORM HEIGHT
   ========================================= */

/* Make all recent post cards equal height */
.recent-posts .box-image-text {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Content area grows equally */
.recent-posts .box-image-text .content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* 🔑 REAL summary container */
.recent-posts .box-image-text .text {
    max-height: 140px;          /* HARD LIMIT – guarantees equality */
    overflow: hidden;
}

/* Hide code blocks ONLY on homepage cards */
.recent-posts .box-image-text pre,
.recent-posts .box-image-text code {
    display: none !important;
}

/* Button always aligned */
.recent-posts .box-image-text .btn {
    margin-top: auto;
}

/* =====================================
   RECENT POSTS – FORCE SAME TEXT HEIGHT
   ===================================== */

/* Target ONLY homepage recent posts intro */
.box-image-text.blog .intro {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;   /* 👈 SAME NUMBER OF LINES FOR ALL */
    overflow: hidden;
    min-height: 5.6em;      /* 👈 forces equal height even for short text */
}

/* =====================================
   RECENT POSTS – FIX TITLE HEIGHT
   ===================================== */

.box-image-text.blog h4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;   /* 👈 max 2 lines for title */
    overflow: hidden;
    min-height: 2.8em;      /* 👈 forces equal title height */
    line-height: 1.4;
}

/* =====================================
   RECENT POSTS – ALIGN BUTTONS
   ===================================== */

.box-image-text.blog {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.box-image-text.blog .content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.box-image-text.blog .read-more {
    margin-top: auto;   /* 👈 pins button to bottom */
}


/* =========================================
   INNER PAGE HEADER (BREADCRUMBS) – BLUE
   ========================================= */

#heading-breadcrumbs {
    background-color: #2f5f8f;   /* blue */
    color: #ffffff;
    padding: 18px 0;             /* adjust height if needed */
}

/* Page title */
#heading-breadcrumbs h1 {
    color: #ffffff;
    margin: 0;
    font-size: 30px;   /* optional: slightly smaller title */
    letter-spacing: 1px;
}

/* If breadcrumbs are added later */
#heading-breadcrumbs .breadcrumb {
    background: transparent;
    margin: 10px 0 0;
}

#heading-breadcrumbs .breadcrumb,
#heading-breadcrumbs .breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
}

#heading-breadcrumbs .breadcrumb a:hover {
    color: #ffffff;
}


/* =====================================
   GLOBAL TEXT JUSTIFICATION
   ===================================== */

/* Main content paragraphs */
p {
    text-align: justify;
    text-justify: inter-word;
}

/* Blog content */
#content p,
.blog p,
.post-content p,
.content p {
    text-align: justify;
    text-justify: inter-word;
}


/* =====================================
   FOOTER – REDUCE HEIGHT & SPACING
   ===================================== */

/* Main footer container */
#footer {
    padding-top: 10px;     /* default ~60px */
    padding-bottom: 10px;
}

/* Footer headings */
#footer h4 {
    margin-bottom: 5px;  /* reduce space under titles */
}

/* Footer text */
#footer p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* About us text specifically */
#footer .about-us p {
    margin-bottom: 10px;
}

/* Contact address spacing */
#footer address,
#footer .text-uppercase {
    margin-bottom: 12px;
}

/* Button spacing */
#footer .btn {
    margin-top: 8px;
}

/* Remove excessive HR spacing */
#footer hr {
    margin: 15px 0;
}

/* =========================
   COPYRIGHT BAR – COMPACT
   ========================= */

#copyright {
    padding: 8px 0;      /* reduce height */
}

#copyright p {
    margin: 0;
    font-size: 14px;
}






/* =====================================
   HOME – FROM OUR BLOG (RECENT POSTS)
   ===================================== */

/* Only Recent Posts section */
section.bar.background-white.no-mb {
    background-color: #2f5f8f;   /* blue */
    color: #ffffff;
}

/* Section title */
section.bar.background-white.no-mb .heading h2 {
    color: #ffffff;
}

/* Subtitle text */
section.bar.background-white.no-mb .lead {
    color: rgba(255, 255, 255, 0.85);
}

/* Blog card container stays white */
section.bar.background-white.no-mb .box-image-text {
    background: #ffffff;
    color: #333;
}

/* Blog titles */
section.bar.background-white.no-mb .box-image-text h4 a {
    color: #2f5f8f;
}

/* Author/date */
section.bar.background-white.no-mb .author-category {
    color: #777;
}

/* Intro text */
section.bar.background-white.no-mb .intro {
    color: #555;
}

/*section.bar.background-white.no-mb .btn-template-main {
    background: #2f5
}*/






















/* =====================================
   FOOTER – FORCE BLUE (ACTUAL FIX)
   ===================================== */

/* Footer outer wrapper */
#footer {
    background-color: #2f5f8f !important;
}

/* 🔑 THIS is the visible background */
#footer .container {
    background-color: #2f5f8f !important;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer headings */
#footer h4 {
    color: #ffffff;
}

/* Footer text */
#footer p,
#footer address,
#footer .text-uppercase {
    color: rgba(255, 255, 255, 0.85);
}

/* Footer links */
#footer a {
    color: #dbe9ff;
}

#footer a:hover {
    color: #ffffff;
}

/* Footer button */
#footer .btn-template-main {
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
}

#footer .btn-template-main:hover {
    background: #ffffff;
    color: #2f5f8f;
}

/* Remove any footer background images */
#footer,
#footer .container {
    background-image: none !important;
}

/* ============================
   COPYRIGHT – MATCH BLUE
   ============================ */

#copyright {
    background-color: #244c73 !important;
}

#copyright p {
    color: rgba(255, 255, 255, 0.85);
}



/* =====================================
   PEOPLE SECTION – CENTER SUBTITLE
   ===================================== */

section.bar.background-white .lead {
    text-align: center !important;
}


/* =====================================
   PEOPLE SECTION – FORCE SINGLE LINE NAMES
   ===================================== */

.box-simple h3 {
    white-space: nowrap;        /* 🔑 prevent line break */
    overflow: hidden;           /* hide overflow */
    text-overflow: ellipsis;    /* show … if too long */
    font-size: 16px;            /* slightly smaller for long names */
    letter-spacing: 0.5px;
}


/* =====================================
   PEOPLE SECTION – FORCE STRONG TEXT
   ===================================== */

/* Name */
.box-simple h3 {
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 15px;
}

/* Role (override Bootstrap text-muted) */
.box-simple h4.text-muted {
    color: #2f5f8f !important;   /* brand blue */
    font-weight: 600;
    opacity: 1 !important;
}

/* Description text */
.box-simple .person-description p {
    color: #444 !important;
    font-weight: 400;
    line-height: 1.65;
    text-align: justify;
}

/* Improve font sharpness */
.box-simple {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

