body {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: #f7f9fc;
}

#header .modern-header-top {
    background: linear-gradient(135deg, #014063 0%, #02658d 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

#header .modern-header-top .widget ul li,
#header .modern-header-top .widget ul li a,
#header .modern-header-top .widget ul li i {
    color: #f5fbff !important;
}

#header .modern-header-top a {
    transition:
        opacity 0.2s ease,
        color 0.2s ease;
}

#header .modern-header-top a:hover {
    opacity: 0.9;
    color: #ffffff;
}

#header .modern-header-nav-wrapper {
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(1, 64, 99, 0.08);
    border-bottom: 1px solid rgba(1, 64, 99, 0.08);
}

#header .modern-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: linear-gradient(
        135deg,
        rgba(1, 64, 99, 0.08),
        rgba(1, 64, 99, 0.04)
    );
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(1, 64, 99, 0.1);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#header .modern-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(1, 64, 99, 0.14);
}

#header .modern-logo img {
    max-height: 70px;
    width: auto;
}

#header .modern-menu > li > a {
    color: #123a50;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 18px 16px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

#header .modern-menu > li > a:hover,
#header .modern-menu > li.active > a {
    color: #014063;
    background: rgba(1, 64, 99, 0.08);
}

#header .header-nav-wrapper {
    position: relative;
}

/* #header .dropdown-container {
    position: absolute;
    left: 50%;
    top: 90px;
    width: 100vw;
    max-width: 100vw;
    height: auto;
    min-width: 280px;
    border-radius: 16px;
    border: 1px solid rgba(1, 64, 99, 0.12);
    box-shadow: 0 18px 40px rgba(1, 64, 99, 0.16);
    padding: 8px 0;
    z-index: 999999999 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px);
    transition: all 0.25s ease;
} */
.menuzord-menu ul.dropdown {
    top: unset !important;
    background: #ffffff !important;
}
#header .dropdown-container.active,
#header .menuzord-menu > li:hover > .dropdown-container,
#header .menuzord-menu > li:focus-within > .dropdown-container {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 999999999 !important;
    transform: translateX(-50%) translateY(0);
}

#header .dropdown-container .dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #000000;
    font-weight: 600;
    transition: all 0.2s ease;
}

#header .dropdown-container .dropdown li a:hover {
    background: #014063;
    color: #ffffff;
    padding-left: 18px;
}

#footer {
    background: linear-gradient(to bottom, #021b29 0%, #04476c 100%) !important;
    color: #f3f9fc;
}

#footer .widget.dark h5 {
    color: #ffffff;
    font-weight: 700;
}

#footer .widget.dark a,
#footer .widget.dark p,
#footer .widget.dark li {
    color: #ffffff;
}
.widget .post-title a:hover {
    color: unset !important;
}
.widget .post-title a:hover {
    color: #aaa !important;
}

#footer .widget.dark a:hover {
    color: #ffffff;
}

#footer .footer-bottom {
    background: rgba(0, 0, 0, 0.16);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer .list-border li {
    border-color: rgba(255, 255, 255, 0.12);
}

.scrollToTop {
    background: #014063;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(1, 64, 99, 0.28);
}

.s-item {
    box-shadow: 0 8px 22px rgba(1, 64, 99, 0.16);
}

@media (max-width: 991px) {
    #header .modern-logo img {
        max-height: 56px;
    }

    #header .modern-menu > li > a {
        padding: 14px 12px;
    }
}

@media (max-width: 767px) {
    #header .modern-header-top .row {
        text-align: center;
    }

    #header .modern-header-top .text-right.sm-text-center {
        text-align: center !important;
    }

    #header .modern-logo {
        margin-bottom: 10px;
    }
}

.main-content {
    overflow: hidden;
}

.home-search-panel {
    margin-top: -40px;
    position: relative;
    z-index: 12;
    padding-bottom: 30px;
}

.search-panel-card {
    background: linear-gradient(135deg, #ffffff 0%, #f4faff 100%);
    border: 1px solid rgba(1, 64, 99, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(1, 64, 99, 0.14);
    padding: 28px;
}

.search-panel-copy {
    margin-bottom: 18px;
}

.search-panel-copy h3 {
    margin: 8px 0 6px;
    color: #014063;
    font-size: 24px;
    font-weight: 700;
}

.search-panel-copy p {
    color: #5f7280;
    margin: 0;
}

.section-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(1, 64, 99, 0.08);
    color: #014063;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.about-home-section,
.categories-section,
.brochures-section {
    padding: 20px 0;
}

.about-home-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 15px 35px rgba(1, 64, 99, 0.08);
    border: 1px solid rgba(1, 64, 99, 0.08);
}

.about-home-card h2 {
    color: #014063;
    font-weight: 800;
    margin-bottom: 16px;
}

.about-home-card p {
    color: #5f7280;
    line-height: 1.9;
    margin: 0;
}

.about-home-stats {
    display: grid;
    gap: 12px;
}

.about-home-stats .stat-item {
    background: linear-gradient(135deg, #014063 0%, #02658d 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 14px 32px rgba(1, 64, 99, 0.18);
}

.about-home-stats .stat-item strong {
    display: block;
    font-size: 24px;
    margin-bottom: 4px;
}

.about-home-stats .stat-item span {
    font-size: 13px;
    opacity: 0.9;
}

.section-heading {
    margin-bottom: 28px;
    text-align: center;
}

.section-heading h3 {
    color: #014063;
    font-weight: 800;
    margin: 10px 0 8px;
}

.section-heading p {
    color: #5f7280;
    margin: 0;
}

.category-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(1, 64, 99, 0.08);
    box-shadow: 0 14px 30px rgba(1, 64, 99, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(1, 64, 99, 0.14);
}

.category-card .thumb {
    position: relative;
    overflow: hidden;
}

.category-card .thumb img {
    height: 180px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.25s ease;
}

.category-card:hover .thumb img {
    transform: scale(1.05);
}

.category-card .overlay {
    background: linear-gradient(
        180deg,
        rgba(1, 64, 99, 0) 0%,
        rgba(1, 64, 99, 0.2) 100%
    );
}

.category-card .schedule-details {
    padding: 18px 16px 18px;
}

.category-card .title a {
    color: #014063;
    font-weight: 700;
}

.brochure-card {
    display: block;
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(1, 64, 99, 0.08);
    border: 1px solid rgba(1, 64, 99, 0.08);
    margin: 8px 0;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.brochure-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(1, 64, 99, 0.14);
}

.brochure-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
}

.brochure-card span {
    display: inline-block;
    color: #014063;
    font-weight: 700;
    font-size: 13px;
}

@media (max-width: 991px) {
    .home-search-panel {
        margin-top: -20px;
    }

    .search-panel-card {
        padding: 22px;
    }
}

@media (max-width: 767px) {
    .about-home-section,
    .categories-section,
    .brochures-section {
        padding: 30px 0;
    }

    .search-panel-card {
        padding: 18px;
    }

    .about-home-card {
        padding: 24px;
    }
}
/* ============================================================
   CATEGORIES SECTION — Classic Card Style
   ============================================================ */

.categories-section {
    background: #f9fbfd;
    padding: 40px 0;
}

.categories-section .section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.categories-section .section-pill {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #014063;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    position: relative;
}

.categories-section .section-pill::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #014063;
    margin: 10px auto 0;
    border-radius: 4px;
}

.categories-section .section-heading p {
    color: #5a6f7e;
    font-size: 1rem;
    margin-top: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Card Grid (flex for equal height) ---------- */
.categories-section .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.categories-section [class*="col-"] {
    display: flex;
    padding: 0 4px;
    margin-bottom: 30px;
}

/* ---------- Card ---------- */
.category-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(1, 64, 99, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(1, 64, 99, 0.06);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(1, 64, 99, 0.1);
    border-color: rgba(1, 64, 99, 0.12);
}

/* ---------- Image ---------- */
.category-card .thumb {
    position: relative;
    overflow: hidden;
    background: #eef3f7;
    padding-top: 75%; /* 4:3 aspect ratio */
    height: 0;
}

.category-card .thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .thumb img {
    transform: scale(1.04);
}

.category-card .thumb .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(1, 64, 99, 0) 60%,
        rgba(1, 64, 99, 0.12) 100%
    );
    pointer-events: none;
}

/* ---------- Details ---------- */
.category-card .schedule-details {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-card .schedule-details .title {
    font-size: 1rem;
    font-weight: 700;
    color: #123a50;
    margin: 0 0 6px 0;
    line-height: 1.3;
    min-height: 2.6em; /* two lines max */
}

.category-card .schedule-details .title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-card .schedule-details .title a:hover {
    color: #014063;
}

/* ---------- Button ---------- */
.category-card .btn {
    align-self: flex-start;
    background: #014063;
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 20px;
    border-radius: 30px;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    text-transform: capitalize;
    margin-top: 10px;
}

.category-card .btn:hover {
    background: #02658d;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(1, 64, 99, 0.25);
    color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .categories-section .section-pill {
        font-size: 1.5rem;
    }
    .category-card .schedule-details .title {
        font-size: 0.95rem;
        min-height: 2.4em;
    }
}

@media (max-width: 767px) {
    .categories-section {
        padding: 30px 0;
    }
    .categories-section .section-heading {
        margin-bottom: 24px;
    }
    .categories-section .section-pill {
        font-size: 1.3rem;
    }
    .category-card .thumb {
        padding-top: 65%; /* slightly shorter on mobile */
    }
    .category-card .schedule-details {
        padding: 14px 16px 16px;
    }
    .category-card .schedule-details .title {
        font-size: 0.9rem;
        min-height: auto;
    }
    .category-card .btn {
        font-size: 0.75rem;
        padding: 5px 16px;
    }
}

@media (max-width: 480px) {
    .category-card .thumb {
        padding-top: 56%; /* landscape on very small */
    }
}
