

/* Styles moved from header.php */
/* CSS VARIABLES MATCHING SITE BRAND THEME */
:root {
    --dm-brand-blue: #3D6FB4;
    --dm-brand-dark: #2a528a;
    --dm-brand-light: #f0f5fc;
    --dm-text-dark: #1e293b;
    --dm-border-color: #e2e8f0;
}

/* GLOBAL MODERN TYPOGRAPHY FOR ALL PUBLIC PAGES (EXCLUDING ADMIN) */
body, 
h1, h2, h3, h4, h5, h6, 
p, span:not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fal), 
a:not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fal), 
li, input, button, select, textarea, label, 
.title, .post-title, .entry-title, .widget-title, .breadcrumb, .nav-link, .main-btn, .footer-area {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.dm-header-wrapper {
    width: 100%;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
    z-index: 999;
}

.dm-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ROW 1: TOP UTILITY BAR */
.dm-topbar {
    background-color: #f8fafc;
    border-bottom: 1px solid var(--dm-border-color);
    font-size: 12px;
    color: #475569;
}
.dm-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    gap: 12px;
}
.dm-topbar-left {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.dm-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: #334155;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
}
.dm-icon-btn:hover {
    background-color: #e2e8f0;
    color: var(--dm-brand-blue);
}

.dm-topbar-center {
    flex: 1;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0 10px;
}
.dm-brand-tagline {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.3px;
}
.dm-badge-dot {
    color: var(--dm-brand-blue);
    font-size: 18px;
    vertical-align: middle;
    margin-right: 5px;
}
.dm-sep {
    color: #cbd5e1;
    margin: 0 8px;
}

.dm-topbar-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.dm-social-pills {
    display: flex;
    align-items: center;
    gap: 6px;
}
.dm-soc-pill {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #ffffff !important;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}
.dm-soc-pill:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.dm-soc-fb { background-color: #1877f2; }
.dm-soc-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.dm-soc-x  { background-color: #000000; }
.dm-soc-yt { background-color: #ff0000; }
.dm-soc-wa { background-color: #25d366; }
.dm-soc-tg { background-color: #0088cc; }

/* SEARCH BAR OVERLAY */
.dm-search-bar {
    display: none;
    background: #ffffff;
    border-bottom: 2px solid var(--dm-brand-blue);
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    z-index: 100;
}
.dm-search-bar.show {
    display: block;
    animation: dmFadeSlide 0.25s ease-out;
}
@keyframes dmFadeSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.dm-search-form {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}
.dm-search-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 15px;
}
.dm-search-form input {
    width: 100%;
    padding: 10px 105px 10px 40px;
    border: 2px solid var(--dm-border-color);
    border-radius: 50px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.dm-search-form input:focus {
    border-color: var(--dm-brand-blue);
}
.dm-search-form button[type="submit"] {
    position: absolute;
    right: 36px;
    background: var(--dm-brand-blue);
    color: #fff;
    border: none;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.dm-search-form button[type="submit"]:hover {
    background: var(--dm-brand-dark);
}
.dm-search-close {
    position: absolute;
    right: 4px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
}

/* ROW 2: MAIN BRANDING BAR */
.dm-mainbar {
    background: #ffffff;
    padding: 14px 0;
    border-bottom: 1px solid var(--dm-border-color);
}
.dm-mainbar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
}
.dm-main-left {
    display: flex;
    align-items: center;
}
.dm-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background-color: #f8fafc;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--dm-border-color);
}
.dm-date-badge i {
    color: var(--dm-brand-blue);
    font-size: 14px;
}

.dm-main-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.dm-logo-wrap {
    display: inline-block;
    text-decoration: none;
}
.dm-header-logo {
    max-height: 56px;
    width: auto;
    object-fit: contain;
    display: block;
}

.dm-main-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.dm-weather-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background-color: #f8fafc;
    border: 1px solid var(--dm-border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
}
.dm-weather-badge:hover {
    border-color: var(--dm-brand-blue);
    background-color: var(--dm-brand-light);
    box-shadow: 0 2px 6px rgba(61, 111, 180, 0.12);
}
.dm-weather-icon-wrap {
    font-size: 22px;
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
}
.dm-weather-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.25;
}
.dm-weather-top {
    display: flex;
    align-items: center;
    gap: 6px;
}
.dm-weather-city {
    font-size: 12px;
    font-weight: 700;
    color: var(--dm-brand-blue);
}
.dm-weather-temp {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}
.dm-weather-condition {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

/* ROW 3: NAVIGATION MENU BAR */
.dm-navbar {
    background: #ffffff;
    border-bottom: 2px solid #e2e8f0;
}
.dm-nav-list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.dm-nav-list::-webkit-scrollbar {
    display: none;
}
.dm-nav-item {
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}
.dm-nav-item > a {
    display: inline-block;
    padding: 12px 11px;
    color: #1e293b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}
.dm-nav-item:hover > a,
.dm-nav-item.active > a,
.dm-nav-item > a.active {
    color: var(--dm-brand-blue);
    border-bottom-color: var(--dm-brand-blue);
}

/* ROW 4: NEWS TICKER BAR (BLUE BG #3D6FB4) */
.dm-ticker-wrapper {
    background-color: var(--dm-brand-blue);
    display: flex;
    align-items: center;
    height: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.dm-ticker-badge {
    background-color: var(--dm-brand-dark);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    z-index: 10;
    flex-shrink: 0;
    letter-spacing: 0.3px;
    box-shadow: 2px 0 6px rgba(0,0,0,0.15);
}
.dm-ticker-track-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.dm-ticker-track {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: dmTickerMarquee 65s linear infinite;
}
.dm-ticker-track-container:hover .dm-ticker-track {
    animation-play-state: paused;
}
@keyframes dmTickerMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.dm-ticker-group {
    display: inline-flex;
    align-items: center;
}
.dm-ticker-link {
    display: inline-flex;
    align-items: center;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-right: 28px;
    transition: color 0.15s;
}
.dm-ticker-link:hover {
    color: #2A528A !important;
}
.dm-bullet {
    color: #ffffff;
    font-size: 15px;
    margin-right: 8px;
    line-height: 1;
}


/* MOBILE SLIDE-OUT DRAWER */
.dm-drawer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}
.dm-drawer-backdrop.active {
    display: block;
}
.dm-mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    scrollbar-width: thin;
}
.dm-mobile-drawer.active {
    left: 0;
}
.dm-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--dm-border-color);
}
.dm-drawer-logo img {
    height: 38px;
    width: auto;
}
.dm-drawer-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
}
.dm-drawer-body {
    padding: 16px;
    flex: 1;
}
.dm-drawer-date {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--dm-border-color);
}
.dm-drawer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dm-drawer-menu li a {
    display: block;
    padding: 10px 12px;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.dm-drawer-menu li a:hover {
    background: var(--dm-brand-light);
    color: var(--dm-brand-blue);
}
.dm-drawer-social {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--dm-border-color);
}
.dm-drawer-social p {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 8px;
}
.dm-drawer-soc-icons {
    display: flex;
    gap: 8px;
}
.dm-drawer-soc-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .dm-topbar-center {
        display: none;
    }
    .dm-mainbar-inner {
        display: flex;
        justify-content: space-between;
    }
    .dm-main-left {
        display: none;
    }
    .dm-header-logo {
        max-height: 48px;
    }
    .dm-weather-badge {
        padding: 4px 8px;
        gap: 6px;
    }
    .dm-weather-condition {
        display: none;
    }
    .dm-weather-icon-wrap {
        font-size: 18px;
    }
    .dm-weather-city {
        font-size: 11px;
    }
    .dm-weather-temp {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .dm-ticker-badge {
        padding: 0 12px;
        font-size: 12px;
    }
    .dm-ticker-link {
        font-size: 12px;
        margin-right: 18px;
    }
}

/* Styles moved from index.php */
.dm-page-home .badge-new {
        display: inline-block;
        background: #e53935;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 50px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        vertical-align: middle;
        margin-right: 8px;
        animation: pulseNew 1.5s infinite;
        line-height: 1.4;
    }

    @keyframes pulseNew {
        0%   { box-shadow: 0 0 0 0 rgba(229,57,53,0.6); }
        70%  { box-shadow: 0 0 0 8px rgba(229,57,53,0); }
        100% { box-shadow: 0 0 0 0 rgba(229,57,53,0); }
    }

    /* Smaller badge for sidebar/gallery lists */
    .dm-page-home .badge-new-sm {
        font-size: 9px;
        padding: 1px 6px;
        margin-right: 5px;
        animation: none;
    }

/* Styles moved from news/index.php */
.dm-page-article .badge-new {
        display: inline-block;
        background: #e53935;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 50px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        vertical-align: middle;
        margin-right: 8px;
        animation: pulseNew 1.5s infinite;
        line-height: 1.4;
    }

    @keyframes pulseNew {
        0%   { box-shadow: 0 0 0 0 rgba(229,57,53,0.6); }
        70%  { box-shadow: 0 0 0 8px rgba(229,57,53,0); }
        100% { box-shadow: 0 0 0 0 rgba(229,57,53,0); }
    }

    /* Smaller badge for sidebar */
    .dm-page-article .badge-new-sm {
        font-size: 9px;
        padding: 1px 6px;
        margin-right: 5px;
    }

/* Styles moved from category/index.php */
.dm-page-category .badge-new {
        display: inline-block;
        background: #e53935;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 3px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        vertical-align: middle;
        margin-right: 8px;
        animation: pulseNew 1.5s infinite;
        line-height: 1.4;
    }

    @keyframes pulseNew {
        0%   { box-shadow: 0 0 0 0 rgba(229,57,53,0.6); }
        70%  { box-shadow: 0 0 0 8px rgba(229,57,53,0); }
        100% { box-shadow: 0 0 0 0 rgba(229,57,53,0); }
    }

    .dm-page-category .badge-new-sm {
        font-size: 9px;
        padding: 1px 6px;
        margin-right: 5px;
        animation: none;
    }

/* Styles moved from about-us/index.php */
.dm-page-about .section-title .title {
            color: #3D6FB4;
        }
        .dm-page-about .about-content h2 {
            color: #3D6FB4;
        }
        .dm-page-about .about-content strong {
            color: #3D6FB4;
        }
        .dm-page-about .contact-info-item h3.title {
            color: #3D6FB4;
        }
        .dm-page-about .contact-info-item h3.title i {
            color: #3D6FB4 !important;
        }
        .dm-page-about .contact-info-item ul li i {
            color: #3D6FB4;
        }
        .dm-page-about .team-icon {
            color: #3D6FB4 !important;
        }
        .dm-page-about .border-color {
            border-color: #3D6FB4 !important;
        }
        .dm-page-about .bg-light-custom {
            background: #f0f5fc;
            padding: 30px;
            border-radius: 10px;
            border-left: 4px solid #3D6FB4;
        }
        .dm-page-about .team-box {
            background: #f0f5fc;
            padding: 25px;
            border-radius: 10px;
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid #e8eef5;
        }
        .dm-page-about .team-box:hover {
            box-shadow: 0 5px 20px rgba(61, 111, 180, 0.15);
            transform: translateY(-5px);
        }
        .dm-page-about .team-box i {
            font-size: 50px;
            color: #3D6FB4;
        }
        .dm-page-about .team-box h3 {
            color: #3D6FB4;
            margin-top: 15px;
        }
        .dm-page-about .vision-box {
            background: #f0f5fc;
            padding: 30px;
            border-radius: 10px;
            border-left: 4px solid #3D6FB4;
            height: 100%;
        }
        .dm-page-about .vision-box h2 {
            color: #3D6FB4;
        }
        .dm-page-about .vision-box ul li {
            padding: 5px 0;
            list-style: none;
        }
        .dm-page-about .vision-box ul li::before {
            content: "✓ ";
            color: #3D6FB4;
            font-weight: bold;
        }

/* Styles moved from videos/index.php */
/* Dedicated Video Grid Styling */
    .dm-video-grid-card {
        background: #ffffff;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #e2e8f0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
  
    .dm-video-grid-thumb {
        position: relative;
        height: 220px;
        background: #0f172a;
        overflow: hidden;
    }
    .dm-video-grid-thumb iframe {
        display: block;
        width: 100%;
        height: 100%;
    }
    .dm-video-grid-content {
        padding: 14px 16px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .dm-video-grid-content .title {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.45;
        margin: 0;
    }
    .dm-video-grid-content .title a {
        color: #1e293b;
        text-decoration: none;
        transition: color 0.2s ease;
    }
    .dm-video-grid-content .title a:hover {
        color: var(--dm-brand-blue, #3D6FB4);
    }

/* Shared layout helpers for public templates */
.dm-image-cover { width: 100%; object-fit: cover; }
.dm-image-cover-70 { height: 70px; }
.dm-image-cover-80 { height: 80px; }
.dm-image-cover-150 { height: 150px; }
.dm-image-cover-180 { height: 180px; }
.dm-image-cover-200 { height: 200px; }
.dm-image-fluid { width: 100%; height: auto; }
.dm-footer-logo { width: 60%; height: auto; }
.dm-map-frame { border: 0; }
.dm-brand-color { color: #3D6FB4 !important; }
.dm-about-subtitle { margin-bottom: 15px; }
.dm-about-intro { background: #f0f5fc; padding: 40px; border-radius: 10px; border-left: 4px solid #3D6FB4; }
.dm-seo-heading { font-size: 24px; font-weight: 600; line-height: 1.3; }
.archive-btn .dm-seo-heading { color: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; margin: 0; }
