*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Mono', monospace;
}

/* ===================== Public header redesign ===================== */
.public-header {
    background: linear-gradient(135deg, #0f4a87 0%, #082f60 100%);
    color: #fff;
    box-shadow: 0 6px 22px rgba(6, 32, 72, 0.4);
    position: relative;
    z-index: 20;
}

.public-header__primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
    flex-wrap: nowrap;
    text-align: center;
}

.public-header__logo {
    flex: 0 0 auto;
}

.public-header__logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
    border: 3px solid rgba(255,255,255,0.18);
    box-shadow: 0 6px 18px rgba(3, 18, 41, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.public-header__text {
    flex: 1 1 auto;
    max-width: 620px;
    text-align: center;
}

.public-header__headline {
    font-size: clamp(1.55rem, 2.1vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 0.35rem !important;
}

.public-header__headline-main {
    display: block;
    color: #ffe176;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.public-header__headline-accent {
    display: inline-block;
    margin-left: 0.35rem;
    color: #ffefaa;
}

.public-header__motto {
    font-size: clamp(0.9rem, 1.1vw, 0.98rem);
    color: #dbeafe;
    font-weight: 500;
}

.public-header__subtitle {
    font-size: clamp(0.85rem, 1vw, 0.9rem);
    font-weight: 600;
    color: rgba(255,255,255,0.88);
}

.public-header__meta {
    max-width: 320px;
}

@media (max-width: 992px) {
    .public-header__primary {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
        padding: 0.95rem 0;
    }
    .public-header__text {
        max-width: 100%;
    }
    .public-header__logo img {
        width: 110px;
        height: 110px;
    }
    .public-header__meta {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .public-header__primary {
        padding: 0.75rem 0;
    }
    .public-header__logo img {
        width: 100px;
        height: 100px;
    }
    .public-header__headline {
        font-size: clamp(1.4rem, 5.8vw, 1.9rem);
    }
    .public-header__motto {
        font-size: 0.92rem;
    }
    .public-header__subtitle {
        font-size: 0.88rem;
    }
}

@media (max-width: 576px) {
    .public-header__primary {
        gap: 0.55rem;
        padding: 0.6rem 0;
    }
    .public-header__logo img {
        width: 86px;
        height: 86px;
    }
    .public-header__headline {
        font-size: clamp(1.25rem, 6.8vw, 1.65rem);
    }
    .public-header__motto {
        font-size: 0.85rem;
    }
    .public-header__subtitle {
        font-size: 0.8rem;
    }
}

/* ===================== Public navbar redesign ===================== */
.public-navbar {
    background: linear-gradient(180deg, #0a3d73 0%, #082e5c 100%);
    border-bottom: 3px solid #f4c542;
    box-shadow: 0 5px 16px rgba(6, 32, 72, 0.3);
}

.public-navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0;
    gap: 1rem;
}

.public-navbar .nav-link {
    color: rgba(255,255,255,0.94) !important;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.75rem 1.2rem !important;
    position: relative;
    transition: color 0.2s ease, background 0.2s ease;
}

.public-navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 12px;
    height: 3px;
    background: transparent;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link:focus {
    color: #f4c542 !important;
}

.public-navbar .nav-link:hover::after,
.public-navbar .nav-link.active::after {
    background: #f4c542;
}

.public-navbar .nav-link.active {
    color: #f4c542 !important;
}

.public-navbar__toggle-btn {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.public-navbar__toggle-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.public-navbar__toggle-label {
    color: #f4c542;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
}

@media (max-width: 1200px) {
    .public-navbar .nav-link {
        padding: 0.65rem 1rem !important;
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .public-navbar {
        position: sticky;
        top: 0;
        z-index: 18;
    }
    .public-navbar__inner {
        justify-content: space-between;
    }
}

/* Mobile slide-out nav matches palette */
.mobileNav {
    background: rgba(10, 52, 98, 0.96);
    color: #fff;
    padding-top: 4rem;
}
.mobileNav .nav-link {
    color: rgba(255,255,255,0.9) !important;
}
.mobileNav .nav-link.active,
.mobileNav .nav-link:hover {
    color: #f4c542 !important;
}

/* ===================== Marquee ribbon ===================== */
.public-marquee {
    background: linear-gradient(90deg, #f9d970 0%, #f4c542 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.14);
}

.public-marquee__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.55rem 0;
    overflow: hidden;
}

.public-marquee__icon {
    color: #08305e;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.public-marquee__track {
    overflow: hidden;
    flex: 1;
    position: relative;
}

.public-marquee__content {
    display: inline-flex;
    gap: 3rem;
    white-space: nowrap;
    animation: marquee-scroll 22s linear infinite;
}

.public-marquee__item {
    color: #082f5a;
    font-weight: 600;
    font-size: 0.98rem;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .public-marquee__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.65rem 0;
    }
    .public-marquee__icon {
        margin-left: 0.5rem;
    }
    .public-marquee__content {
        animation-duration: 28s;
        gap: 2rem;
    }
    .public-marquee__item {
        font-size: 0.9rem;
    }
}

.smNav {
    background-color: #ffffff;
    border-top: 4px solid #009344;
    border-bottom: 4px solid #009344;
    padding: 1.2rem 0;
    position: relative;
    color: #0b592d;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.smNav ul li a {
    color: #fff;
    font-size: 14px;
    line-height: 40px;
    padding: 0 1em;
}

.top-nav {
    width: 100%;
}

.top-nav--banner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 1.5rem;
}

.top-nav-text {
    line-height: 1.5;
}

.top-text, .bottom-text {
    font-weight: 500;
}

.banner-title {
    font-size: clamp(1.8rem, 2vw + 1.5rem, 2.7rem);
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #0b592d;
}

.banner-title__main {
    color: #008c39;
}

.banner-title__accent {
    color: #d7282f;
    margin-left: 0.4rem;
}

.banner-subtitle {
    font-size: clamp(1rem, 1.2vw + 0.75rem, 1.25rem);
    font-weight: 600;
    color: #0a3f1f;
}

.banner-tagline {
    font-size: clamp(0.95rem, 1vw + 0.7rem, 1.15rem);
    font-weight: 600;
    color: #7a1f86;
}

.top-nav-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

@media (max-width: 992px) {
    .top-nav--banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .top-nav-logo img {
        width: 110px;
        height: 110px;
    }
}

/* Ensure longer paragraphs are left-aligned for readability */
.home-page-content-two p,
.home-page-content-three p {
  text-align: left;
}

/* Normalize heights for the three news images block at the bottom of section three */
.home-page-content-three > .text-center img {
  width: 360px !important;
  height: 460px !important;
  object-fit: cover;
}

.mainNav ul li a {
    color: red;
    font-weight: bold;
    font-size: .95rem;
    font-weight: 400;
    margin: 0;
    padding: 0.5em 1em;
}

.mainNav ul li a:hover {
    background: rgba(240, 229, 229, 0.298);
}

.imgContainer {
    width: 100%;
    padding: 0;
    position: relative;
}

.img1 {
    background-image: url("/images/1.jpg");
    height: 85%;
    background-size: cover;
}

.mainTxt {
    font-size: 30px;
    line-height: 36px;
}

a {
    text-decoration: none;
}

.cardContainer img {
    background-size: cover;
}

.card {
    border: none;
}
.overlay {
    background-color: rgba(0, 0, 0, 0.7);
    height: 100%;
    width: 100%;
}

.cta_item_content h3 {
    font-size: 34px;
    line-break: 38px;
}

.cta_item_content p {
    font-size: 23px;
    line-break: 38px;
    max-width: 800px;
}

.cta_item_content a {
    background-color: rgba(51,51,51,.3);
    border: 1px solid #fff;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.24px;
    line-height: 21px;
    margin-bottom: 0;
    margin-top: 1em;
    padding: 1.228em 2em;
    text-align: center;
    text-transform: uppercase;
    -webkit-transition: background-color .25s ease-out,color .25s ease-out;
    transition: background-color .25s ease-out,color .25s ease-out;
    vertical-align: middle;
}

.cta_item_content a:hover {
    background-color: rgba(0,0,0,.4);
}

.footer {
    width: 100%;
    background: #ebf3aa;
    color: brown;
    min-height: 270px;
    padding: 2em 1em 0 2em;
    bottom: 0;
}

.footer .container {
    font-size: 18px;
}

.nav h2 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2em;
    text-transform: uppercase;
}

.nav ul li {
    list-style: none;
}

.nav ul li a{
    font-size: 1em;
    font-weight: 400;
    line-height: 1.6em;
    color: brown;
}

.nav ul li a:hover {
    color: hsla(0,0%,100%,.8);
}

.signNewsletter {
    border: 1px solid #fff;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.24px;
    line-height: 21px;
    margin-bottom: 0;
    margin-top: 1em;
    padding: 1.228em 2em;
    text-align: center;
    text-transform: uppercase;
    -webkit-transition: background-color .25s ease-out,color .25s ease-out;
    transition: background-color .25s ease-out,color .25s ease-out;
    vertical-align: middle;
}

.terms {
    color: hsla(0,0%,100%,.5);
    display: inline-block;
    font-size: 12px;
}

.terms a {
    margin: 0 5px;
    color: hsla(0,0%,100%,.5);
}

.terms a:hover {
    color: hsla(0,0%,100%,.8);
}

.socialIcons a {
  padding: 20px;
  font-size: 25px;
  width: 50px;
  text-align: center;
  text-decoration: none;
  color: #fff;
}

.topics-body {
    background-color: #fff;
    clear: both;
    margin: 0 auto;
    max-width: 1400px;
    width: 90%;
}

.topics-header {
    background-color: #0084b4;
    margin: 0;
    padding: 0;
}

.topics-header-content {
    margin: 0 auto;
    max-width: 1240px;
    padding: 4.8611% 0;
}

.topics-header-content p {
    font-size: 3.3rem;
    font-weight: 700;
    line-height: 65px;
}

.topics {
    margin: 0 auto;
    max-width: 1240px;
}

.topics p {
    font-size: 2.3rem;
    font-weight: 400;
    line-height: 46px;
}

.topics-heading {
    min-height: 4rem;
    background-color: #f2f2f2;
}

.topics-heading a{
    font-size: 1.5rem;
}

.post-img-container {
    height: 650px;
}

.post-img {
    background-color: rgba(0, 0, 0, .4);
    background-image: url('/images/post-header.jpg');
    background-size: cover;
    height: 100%;
}

.post-second-img {
    width: 75%;
}

.post-second-img em {
    font-size: .7rem;
}

.tags {
    font-size: .7em !important;
}

.tag-links {
    font-size: .9rem;
}

.topic-title {
    color: #00abf1;
}

.mng-pic {
    max-height: 190px;
}

.projects img {
    height: 170px;
}

.pr-name {
    font-size: 4em;
}

.gallery img {
    height: 200px;
    max-width: 100%;
    cursor: pointer;
}

#showImgBox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, .6);
    z-index: 100;
}

.closeImg {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem 2rem;
    cursor: pointer;
}

.comm-img img{
    width: 300px;
    height: 300px;
}

.home-carousel img{
    max-height: 800px;
}

/* USER LIST TABLE */
.user-list tbody td > img {
    position: relative;
	max-width: 50px;
	float: left;
	margin-right: 15px;
}
.user-list tbody td .user-link {
	display: block;
	font-size: 1.25em;
	padding-top: 3px;
}
.user-list tbody td .user-subhead {
	font-size: 0.875em;
	font-style: italic;
}

/* TABLES */
.members-table {
    border-collapse: separate;
}
.table-hover > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > th {
	background-color: #eee;
}
.members-table thead > tr > th {
	border-bottom: 1px solid #C2C2C2;
	padding-bottom: 0;
}
.members-table tbody > tr > td {
	font-size: 0.875em;
	background: #f5f5f5;
	border-top: 10px solid #fff;
	vertical-align: middle;
	padding: 12px 8px;
}
.members-table tbody > tr > td:first-child,
.members-table thead > tr > th:first-child {
	padding-left: 20px;
}
.table thead > tr > th span {
	border-bottom: 2px solid #C2C2C2;
	display: inline-block;
	padding: 0 5px;
	padding-bottom: 5px;
	font-weight: normal;
}
.members-table thead > tr > th > a span {
	color: #344644;
}
.members-table thead > tr > th > a span:after {
	content: "\f0dc";
	font-family: FontAwesome;
	font-style: normal;
	font-weight: normal;
	text-decoration: inherit;
	margin-left: 5px;
	font-size: 0.75em;
}
.members-table thead > tr > th > a.asc span:after {
	content: "\f0dd";
}
.members-table thead > tr > th > a.desc span:after {
	content: "\f0de";
}
.members-table thead > tr > th > a:hover span {
	text-decoration: none;
	color: #2bb6a3;
	border-color: #2bb6a3;
}
.table.table-hover tbody > tr > td {
	-webkit-transition: background-color 0.15s ease-in-out 0s;
	transition: background-color 0.15s ease-in-out 0s;
}
.members-table tbody tr td .call-type {
	display: block;
	font-size: 0.75em;
	text-align: center;
}
.members-table tbody tr td .first-line {
	line-height: 1.5;
	font-weight: 400;
	font-size: 1.125em;
}
.members-table tbody tr td .first-line span {
	font-size: 0.875em;
	color: #969696;
	font-weight: 300;
}
.members-table tbody tr td .second-line {
	font-size: 0.875em;
	line-height: 1.2;
}
.members-table a.table-link {
	margin: 0 5px;
	font-size: 1.125em;
}
.members-table a.table-link:hover {
	text-decoration: none;
	color: #2aa493;
}
.members-table a.table-link.danger {
	color: #fe635f;
}
.members-table a.table-link.danger:hover {
	color: #dd504c;
}

.table-products tbody > tr > td {
	background: none;
	border: none;
	border-bottom: 1px solid #ebebeb;
	-webkit-transition: background-color 0.15s ease-in-out 0s;
	transition: background-color 0.15s ease-in-out 0s;
	position: relative;
}
.table-products tbody > tr:hover > td {
	text-decoration: none;
	background-color: #f6f6f6;
}
.table-products .name {
	display: block;
	font-weight: 600;
	padding-bottom: 7px;
}
.table-products .price {
	display: block;
	text-decoration: none;
	width: 50%;
	float: left;
	font-size: 0.875em;
}
.table-products .price > i {
	color: #8dc859;
}
.table-products .warranty {
	display: block;
	text-decoration: none;
	width: 50%;
	float: left;
	font-size: 0.875em;
}
.table-products .warranty > i {
	color: #f1c40f;
}
.members-table tbody > tr.table-line-fb > td {
	background-color: #9daccb;
	color: #262525;
}
.members-table tbody > tr.table-line-twitter > td {
	background-color: #9fccff;
	color: #262525;
}
.members-table tbody > tr.table-line-plus > td {
	background-color: #eea59c;
	color: #262525;
}
.table-stats .status-social-icon {
	font-size: 1.9em;
	vertical-align: bottom;
}
.table-stats .table-line-fb .status-social-icon {
	color: #556484;
}
.table-stats .table-line-twitter .status-social-icon {
	color: #5885b8;
}
.table-stats .table-line-plus .status-social-icon {
	color: #a75d54;
}

.w-lg-75 {
    width: 50%;
}

.bdrh {
    max-width: 790px;
}

.social-links ul li a{
    color: brown;
}

@media screen and (max-width: 1350px) {
    .mainNav ul li a {
        font-size: .9em;
    }

    .footer .container {
        font-size: 15px;
    }

    .topics-header-content p {
        font-size: 2.7rem;
    }

    .topics p {
        font-size: 1.3rem;
    }

    .topics-heading a{
        font-size: 1.2rem;
    }

    .post-img-container {
        height: 500px;
    }

    .post-second-img em {
        font-size: .6rem;
    }

    .top-text, .mid-text, .bottom-text {
        font-size: 1.2em;
    }


}

@media screen and (max-width: 1000px) {
    .top-nav {
        width: 90%;
    }
    .top-text, .mid-text, .bottom-text {
        font-size: 1.2em !important;
    }

    .w-lg-75 {
        width: 75% !important;
    }
}

@media screen and (max-width: 790px) {
    .top-text, .mid-text, .bottom-text {
        font-size: 1.1em !important;
    }
}

@media screen and (max-width: 715px) {
    .cta_item_content h3 {
        font-size: 28px;
    }

    .cta_item_content p {
        font-size: 20px;
    }

    .topics-header-content p {
        font-size: 2.2rem;
    }

    .topics p {
        font-size: 1.6rem;
    }

    .topics-heading a{
        font-size: 1.2rem;
    }

    .post-img-container {
        height: 300px;
    }

    .page-title {
        font-size: .9rem !important;
    }

    .date {
        font-size: .8rem !important;
    }

    .post-second-img {
        width: 100%;
    }

    .post-second-img em {
        font-size: .5rem;
    }

    .pr-name {
        font-size: 3em;
    }

    .top-nav {
        width: 100%;
    }

    .top-text, .mid-text, .bottom-text {
        font-size: 1em !important;
    }
}

@media screen and (max-width: 560px) {
    .imgTxtHeading {
        font-size: 1.2rem !important;
    }

    .cta_item_content h3 {
        font-size: 20px;
    }

    .cta_item_content p {
        font-size: 16px;
    }

    .topics-header-content p {
        font-size: 1.9rem;
    }

    .topics p {
        font-size: 1.4rem;
    }

    .topics-heading a{
        font-size: 1rem;
    }

    .post-title {
        font-size: 1.2rem !important;
    }

    .pr-name {
        font-size: 2em;
    }

    .top-text, .mid-text, .bottom-text {
        font-size: .9em !important;
    }
}

@media screen and (max-width: 450px) {
    .top-nav { height: auto !important; }
    .top-text, .mid-text, .bottom-text { font-size: .8em !important; }
    .searchbtn { width: 80%; }
}

        /* ==========================================================
           UI Template-inspired overrides (non-destructive, CSS-only)
           Goal: Apply the template's visual style WITHOUT changing
                 any Blade templates, markup, routes, or content.
           All changes below override visuals only.
           ========================================================== */

        /* Theme tokens */
        :root {
          --medic-primary: #00adb5;
          --medic-primary-600: #0597a0;
          --medic-dark: #393e46;
          --medic-text: #3a424e;
          --medic-muted: #6b7280;
          --medic-bg: #f7fafc;
          --medic-border: #e5e7eb;
        }

        body {
          color: var(--medic-text);
          background-color: #fff;
        }

        /* Header/top bar area */
        .smNav {
          height: auto;
          background: #ffffff;
          color: var(--medic-dark);
          border-bottom: 1px solid #eef2f7;
        }
        .top-nav-text {
          line-height: 1.6;
        }
        .top-nav-text h6,
        .top-nav-text h4,
        .top-text,
        .mid-text,
        .bottom-text {
          color: var(--medic-dark);
        }
        .top-text,
        .mid-text,
        .bottom-text {
          font-weight: 700;
        }

        /* Main navigation */
        .mainNav ul li a {
          color: var(--medic-dark);
          font-weight: 600;
          position: relative;
          transition: color .2s ease;
          cursor: pointer;
        }
        .mainNav ul li a:hover {
          background: transparent;
          color: var(--medic-primary);
        }
        .mainNav ul li a.active,
        .mainNav ul li a:focus {
          color: var(--medic-primary);
        }
        .mainNav ul li a::after {
          content: '';
          position: absolute;
          left: 0.75em;
          right: 0.75em;
          bottom: 0;
          height: 2px;
          background: transparent;
          transition: background .2s ease;
        }
        .mainNav ul li a:hover::after,
        .mainNav ul li a.active::after {
          background: var(--medic-primary);
        }

        /* Links */
        a {
          color: var(--medic-primary);
        }
        a:hover {
          color: var(--medic-primary-600);
        }

        /* Cards/media rounding for a softer look */
        .card,
        .cardContainer img,
        .home-carousel img {
          border-radius: 8px;
        }
        .home-carousel img {
          object-fit: cover;
        }

        /* Buttons and CTAs */
        .btn,
        .cta_item_content a {
          background-color: var(--medic-primary);
          color: #fff;
          border-color: var(--medic-primary);
        }
        .btn:hover,
        .cta_item_content a:hover {
          background-color: var(--medic-primary-600);
          color: #fff;
        }

        /* Forms */
        form input[type="text"],
        form input[type="email"],
        form input[type="tel"],
        form input[type="password"],
        form select,
        form textarea {
          border: 1px solid var(--medic-border);
          border-radius: 8px;
          padding: 0.625rem 0.75rem;
        }
        form input:focus,
        form select:focus,
        form textarea:focus {
          outline: none;
          border-color: var(--medic-primary);
          box-shadow: 0 0 0 2px rgba(0, 173, 181, 0.15);
        }

        /* Headings */
        .section-title, .page-title,
        h1, h2, h3, h4, h5 {
          color: var(--medic-dark);
        }

        /* Footer */
        .footer {
          background: var(--medic-dark);
          color: #e5edf2;
        }
        .footer a {
          color: #cfe8eb;
        }
        .footer a:hover {
          color: #ffffff;
        }
        .social-links ul li a,
        .nav ul li a {
          color: #e5edf2;
        }
        .nav h2 {
          color: #ffffff;
        }

        /* Minor responsive tweaks */
        @media (max-width: 1000px) {
          .mainNav ul li a { padding: 0.5em 0.75em; }
        }
        @media (max-width: 715px) {
          .smNav { height: auto; }
        }

        /* ========================= Further refinements ========================= */
        /* Navigation spacing & hover underline */
        .mainNav {
          padding: 0.15rem 0; /* tighten menu vertical spacing */
        }
        .mainNav .nav {
          gap: 0.25rem;
        }

        /* Top logos subtle rounding */
        .top-nav-logo img {
          border-radius: 6px;
          /* Attempt to mitigate white background on logo images if present */
          mix-blend-mode: multiply;
        }

        /* Gallery thumbnails */
        .gallery-thumbnails img {
          width: 120px;
          height: 120px;
          object-fit: cover;
          border-radius: 10px;
          transition: transform 0.2s ease;
        }
        .gallery-thumbnails img:hover {
          transform: scale(1.1);
        }
        .gallery-thumbnails .magnifier {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background-color: rgba(0, 0, 0, 0.5);
          opacity: 0;
          transition: opacity 0.2s ease;
        }
        .gallery-thumbnails img:hover + .magnifier {
          opacity: 1;
        }

        /* Carousel indicators & controls */
        .carousel-indicators [data-bs-target] {
          width: 10px;
          height: 10px;
          border-radius: 50%;
          background-color: var(--medic-primary);
          opacity: .35;
        }
        .carousel-indicators .active {
          opacity: 1;
        }
        .carousel-control-prev-icon,
        .carousel-control-next-icon {
          filter: invert(100%) brightness(85%);
        }

        /* Card/media polish */
        .cardContainer img {
          box-shadow: 0 10px 30px rgba(0,0,0,.06);
        }
        .card {
          box-shadow: 0 6px 20px rgba(0,0,0,.05);
        }

        /* Section spacing akin to the template */
        .home-page-content-one,
        .home-page-content-two,
        .home-page-content-three {
          padding-top: 1.5rem; /* slightly tighter */
          padding-bottom: 1.5rem;
        }

        /* Table palette alignment */
        .members-table thead > tr > th {
          border-color: var(--medic-border);
          color: var(--medic-dark);
        }
        .members-table tbody > tr > td {
          background: #f9fbfc;
        }
        .table-hover > tbody > tr:hover > td,
        .table-hover > tbody > tr:hover > th {
          background-color: #eef8f9;
        }

        /* Footer spacing & links */
        .footer {
          padding: 3rem 1rem;
        }
        .footer .container {
          font-size: 16px;
        }
        .footer .socialIcons a { color: #cfe8eb; }
        .footer .socialIcons a:hover { color: #ffffff; }

        /* Accessibility & interactivity */
        .nav-link,
        button,
        [role="button"],
        input[type="submit"],
        .cta_item_content a { cursor: pointer; }

        /* Focus visibility */
        a:focus,
        button:focus,
        input:focus,
        select:focus,
        textarea:focus {
          outline: 2px solid rgba(0, 173, 181, 0.35);
          outline-offset: 2px;
        }

        /* ========================= Header & Footer emphasis ========================= */
        /* Top accent bar similar to template */
        .header { position: relative; }
        .header::before {
          content: '';
          position: absolute;
          inset: 0 0 auto 0;
          height: 6px;
          background: var(--medic-primary);
        }

        /* Header text hierarchy */
        .top-text { font-size: 0.9rem; color: var(--medic-muted); }
        .mid-text { font-size: 1.35rem; color: var(--medic-dark); letter-spacing: 0.2px; }
        .bottom-text { font-size: 1.15rem; color: var(--medic-dark); }

        @media (max-width: 1000px) {
          .mid-text { font-size: 1.15rem; }
          .bottom-text { font-size: 1.05rem; }
        }
        @media (max-width: 560px) {
          .mid-text { font-size: 1rem; }
          .bottom-text { font-size: 0.95rem; }
        }

        /* Footer accent and polish */
        .footer { border-top: 4px solid var(--medic-primary); }
        .footer .nav h2 {
          font-size: 1.1rem;
          letter-spacing: 0.3px;
          margin-bottom: 0.5rem;
        }
        .footer .nav ul li a {
          color: #d9e7ea;
        }
        .footer .nav ul li a:hover { color: #fff; }

/* ========================= Header/Navbar backgrounds ========================= */
/* Add clear background colors as requested */
.smNav {
  background-color: #f5fbfd; /* template-like soft medical tint */
  border-bottom: 1px solid #e6f2f4;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  padding: 0.9rem 0; /* subtle vertical rhythm */
}
/* Center the inner header content like a container */
.top-nav { width: 100%; max-width: 1200px; }

.mainNav {
  background-color: transparent; /* Remove background */
  border-bottom: none;
}
/* Reset nav links to default dark color */
.mainNav ul li a {
  color: var(--medic-dark) !important;
}
.mainNav ul li a:hover,
.mainNav ul li a.active,
.mainNav ul li a:focus {
  color: var(--medic-primary) !important;
}
/* Underline accent back to primary */
.mainNav ul li a::after { background: transparent; }
.mainNav ul li a:hover::after,
.mainNav ul li a.active::after {
  background: var(--medic-primary) !important;
}

/* Desktop dropdown opens on hover; mobile keeps tap-to-open */
@media (min-width: 992px) {
  .mainNav .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
  .mainNav .dropdown-toggle.show {
    color: var(--medic-primary) !important;
  }
  .mainNav .dropdown:hover > .nav-link {
    color: var(--medic-primary) !important;
  }
}
        .mainNav ul li a {
          color: var(--medic-dark) !important;
        }
        .mainNav ul li a:hover,
        .mainNav ul li a.active,
        .mainNav ul li a:focus {
          color: var(--medic-primary) !important;
        }
        /* Underline accent back to primary */
        .mainNav ul li a::after { background: transparent; }
        .mainNav ul li a:hover::after,
        .mainNav ul li a.active::after {
          background: var(--medic-primary) !important;
        }

/* ========================= Homepage template-aligned polish ========================= */
/* Carousel sizing and feel similar to template */
.home-carousel .carousel-item img {
  height: 520px;
  object-fit: cover;
}
@media (max-width: 992px) {
  .home-carousel .carousel-item img { height: 420px; }
}
@media (max-width: 576px) {
  .home-carousel .carousel-item img { height: 320px; }
}

/* Section spacing and subtle backgrounds */
.home-page-content-one { padding-top: 0.5rem; padding-bottom: 0; }
.home-page-content-two { padding-top: 2rem; padding-bottom: 2rem; background-color: #f9fbfc; }
.home-page-content-three { padding-top: 2rem; padding-bottom: 2rem; }

/* Cards/media rounding and shadows for homepage visuals */
.home-page-content-two .cardContainer img,
.home-page-content-three .cardContainer img {
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

/* Speech section container with embedded profiles */
.speech-card {
  background: #ffffff;
  border: 1px solid var(--medic-border);
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(0,0,0,0.08);
  padding: 1.75rem 2rem;
}

.profile-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.profile-showcase__item {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(0,173,181,0.14), rgba(0,173,181,0.04));
  border: 1px solid rgba(0,173,181,0.28);
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.profile-showcase__item:hover,
.profile-showcase__item:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(0,173,181,0.16);
  border-color: rgba(0,173,181,0.5);
}
.profile-showcase__figure {
  flex: 0 0 auto;
  width: clamp(200px, 24vw, 260px);
  height: clamp(260px, 32vw, 320px);
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.profile-showcase__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.profile-showcase__meta {
  flex: 1 1 auto;
  text-align: center;
  width: 100%;
}
.profile-showcase__name {
  font-weight: 700;
  color: var(--medic-dark);
  font-size: 1.2rem;
}
.profile-showcase__role {
  color: var(--medic-text);
  font-size: 0.95rem;
  line-height: 1.65;
}
@media (max-width: 992px) {
  .speech-card {
    padding: 1.5rem;
  }
  .profile-showcase__figure {
    width: min(260px, 90%);
  }
}
@media (max-width: 576px) {
  .speech-card {
    padding: 1.25rem 1.5rem;
  }
  .profile-showcase__item {
    padding: 1.1rem;
  }
  .profile-showcase__name {
    font-size: 1.05rem;
  }
  .profile-showcase__role {
    font-size: 0.9rem;
  }
}

    /* Homepage typography tunes */
    .home-page-content-three h5,
    .home-page-content-three h4 { color: var(--medic-dark); }
    .home-page-content-three p { color: var(--medic-text); }

    /* Badge-like borders for certificate images */
    .home-page-content-three .border-danger {
      --bs-border-opacity: 1;
      border-color: rgba(0, 173, 181, 0.5) !important; /* use theme accent instead of red */
    }

    /* ========================= Header deepen (override) ========================= */
    .smNav {
      background-color: #eaf7fa; /* slightly deeper for visibility */
      border-bottom: 1px solid #d7edf1;
    }

    /* ========================= New homepage sections (non-destructive) ========================= */
    /* Feature cards */
    .hp-features .hp-feature-card {
      background: #fff;
      border: 1px solid var(--medic-border);
      border-radius: 12px;
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
      color: inherit;
    }
    .hp-features .hp-feature-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 14px 30px rgba(0,0,0,0.08);
      border-color: rgba(0, 173, 181, 0.35);
      text-decoration: none;
    }
    .hp-features .hp-feature-card i { color: var(--medic-primary); }
    .hp-features .section-title { color: var(--medic-dark); }

    /* CTA band */
    .hp-cta .hp-cta-inner {
      background: linear-gradient(180deg, rgba(0,173,181,0.06) 0%, rgba(0,173,181,0.03) 100%);
      border: 1px solid var(--medic-border);
      border-radius: 14px;
    }
    .hp-cta .badge { border: 1px solid rgba(0,173,181,0.25); }

    /* Committee card polish */
    .comm-card {
      border: 1px solid var(--medic-border) !important;
      border-radius: 12px !important;
      background: #fff;
      box-shadow: 0 10px 24px rgba(0,0,0,0.06);
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }
    .comm-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 34px rgba(0,0,0,0.08);
      border-color: rgba(0,173,181,0.35) !important;
    }

    /* ========================= Animations (CSS-only) ========================= */
    @keyframes fadeIn {
      from { opacity: 0 }
      to { opacity: 1 }
    }
    @keyframes fadeInUp {
      from { opacity: 0; transform: translate3d(0, 18px, 0) }
      to { opacity: 1; transform: none }
    }
    @keyframes zoomIn {
      from { opacity: 0; transform: scale3d(.96, .96, .96) }
      to { opacity: 1; transform: none }
    }

    /* Apply subtle motion to existing elements without markup changes */
    .top-nav-text { animation: fadeInUp .6s ease both; }
    .home-carousel .carousel-item img { animation: zoomIn .8s ease both; }
    .cardContainer img { animation: fadeIn .8s ease both; }
    .hp-features .hp-feature-card { animation: fadeInUp .6s ease both; }
    .hp-features .col-6:nth-child(2) .hp-feature-card { animation-delay: .05s; }
    .hp-features .col-6:nth-child(3) .hp-feature-card { animation-delay: .1s; }
    .hp-features .col-6:nth-child(4) .hp-feature-card { animation-delay: .15s; }

    /* Respect reduced motion preferences */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
      }
    }

    /* ========================= Carousel spacing & controls ========================= */
    .home-page-content-one .carousel {
      max-width: 1200px;
      margin: 1rem auto 2rem; /* space around carousel */
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 18px 40px rgba(0,0,0,0.08);
    }
    .home-page-content-one .carousel .carousel-indicators {
      bottom: 12px;
      gap: 8px;
    }
    .home-page-content-one .carousel .carousel-indicators [data-bs-target] {
      width: 10px; height: 10px; border-radius: 50%; opacity: .65;
      background-color: rgba(255,255,255,0.9);
    }
    .home-page-content-one .carousel .carousel-indicators .active { opacity: 1; }

    /* Improve control visibility with circular buttons */
    .home-page-content-one .carousel .carousel-control-prev,
    .home-page-content-one .carousel .carousel-control-next {
      width: 52px; height: 52px;
      top: calc(50% - 26px);
      background: rgba(0,0,0,0.35);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      transition: background .2s ease;
    }
    .home-page-content-one .carousel .carousel-control-prev { left: 1rem; }
    .home-page-content-one .carousel .carousel-control-next { right: 1rem; }
    .home-page-content-one .carousel .carousel-control-prev:hover,
    .home-page-content-one .carousel .carousel-control-next:hover { background: rgba(0,0,0,0.5); }
    .home-page-content-one .carousel .carousel-control-prev-icon,
    .home-page-content-one .carousel .carousel-control-next-icon {
      filter: invert(100%) brightness(100%);
    }

    /* ========================= Midpage layout tighten ========================= */
    /* Reduce excessive bottom gaps under speech sections without changing content */
    .home-page-content-three .cardContainer { margin-bottom: 1.5rem !important; }
    .home-page-content-three .card-body {
      background: #fff;
      border: 1px solid var(--medic-border);
      border-radius: 12px;
      padding: 1.25rem 1.5rem;
      box-shadow: 0 12px 28px rgba(0,0,0,0.06);
    }
    .home-page-content-three .card-body p { margin-bottom: 0; line-height: 1.8; }

    /* Improve spacing in section two as well */
    .home-page-content-two .cardContainer { margin-bottom: 1.5rem; }
    .home-page-content-two .card-body { border-radius: 12px; overflow: hidden; }

/* ========================= Gallery page UI (CSS-only) ========================= */
/* Grid tightening using Bootstrap gutter variables without HTML change */
.gallery .row { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }

/* Thumbnail cards */
.gallery .imgId {
  border: 1px solid var(--medic-border) !important; /* override red border */
  border-radius: 12px !important;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.gallery .imgId:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.08);
  border-color: rgba(0,173,181,0.35) !important;
}
.gallery .imgId img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}
@media (min-width: 992px) {
  .gallery .imgId img { height: 220px; }
}

/* Heading alignment and style (non-intrusive) */
.gallery + #showImgBox, .gallery h3, .gallery .section-title { color: var(--medic-dark); }

/* Lightbox overlay (already present) – polish */
#showImgBox { backdrop-filter: blur(2px); }
#showImgBox .carousel {
  width: min(1200px, 96vw);
  height: 90vh !important; /* force tall viewport for full image */
  margin: 0 auto;
}
#showImgBox .carousel-inner,
#showImgBox .carousel-item { height: 100%; }
#showImgBox .carousel-item.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
#showImgBox .carousel .carousel-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto; /* allow natural aspect ratio */
  height: auto; /* allow natural aspect ratio */
  object-fit: contain;
}

/* Lightbox controls */
#showImgBox .carousel-control-prev,
#showImgBox .carousel-control-next {
  width: 52px; height: 52px;
  top: calc(50% - 26px);
  background: rgba(0,0,0,0.45);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
#showImgBox .carousel-control-prev { left: 1rem; }
#showImgBox .carousel-control-next { right: 1rem; }
#showImgBox .carousel-control-prev:hover,
#showImgBox .carousel-control-next:hover { background: rgba(0,0,0,0.6); }
#showImgBox .carousel-control-prev-icon,
#showImgBox .carousel-control-next-icon { filter: invert(100%) brightness(100%); }

/* Close button */
.closeImg {
  top: 12px; right: 18px; padding: 0; width: 40px; height: 40px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.closeImg:hover { background: rgba(0,0,0,0.75); }

/* ========================= Gallery refinements (polish) ========================= */
/* Give the page heading a bit more presence */
.gallery .section-title { font-size: 1.75rem; letter-spacing: .2px; }

/* Cursor and subtle zoom on thumbnails */
.gallery .imgId { cursor: pointer; }
.gallery .imgId img { transition: transform .25s ease; }
.gallery .imgId:hover img { transform: scale(1.03); }

/* Hover overlay with magnifier icon */
.gallery .imgId { position: relative; overflow: hidden; }
.gallery .imgId::after {
  content: "\f00e"; /* fa-magnifying-glass */
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; inset: auto; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55); color: #fff;
  opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.gallery .imgId:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }

/* Keyboard accessibility */
.gallery .imgId:focus-visible { outline: 3px solid rgba(0,173,181,.35); outline-offset: 3px; }
