/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #27ae60;
    --accent-color: #e74c3c;
    --text-dark: #333;
    --text-light: #777;
    --border-color: #ddd;
    --bg-light: #f8f9fa;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Skip to Content */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Social Bar */
.social-bar {
    background-color: var(--primary-color);
    padding: 8px 0;
}

.social-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.datetime-inline {
    color: white;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.datetime-inline i {
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 16px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Logo Bar Compact */
.logo-bar-compact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 12px 0;
    border-bottom: 2px solid var(--secondary-color);
}

.logo-section-compact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo-compact {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: white;
    object-fit: cover;
}

.site-title-compact h1 {
    font-size: 18px;
    color: white;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.site-title-compact p {
    font-size: 12px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Header with Slider Background */
.site-header {
    position: relative;
    height: 400px;
    border-bottom: 3px solid var(--secondary-color);
    overflow: hidden;
}

/* Header Slider (Background) */
.header-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.header-slider .slider-item {
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.header-slider .slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.header-slider .slider-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

/* Fallback Banner */
.header-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.header-fallback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
}

.header-fallback .slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Slider Content - Text & Button (Center Aligned) */
.slider-content {
    position: relative;
    z-index: 10;
    padding: 60px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.slider-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.slider-description {
    font-size: 18px;
    color: white;
    margin-bottom: 25px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    max-width: 700px;
}

.slider-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.slider-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.slider-btn i {
    margin-left: 8px;
    transition: margin-left 0.3s;
}

.slider-btn:hover i {
    margin-left: 12px;
}

/* Animation - Slide Down from Top (Triggered on slide change) */
.owl-carousel .owl-item.active .slider-title {
    animation: slideDown 0.8s ease-out;
}

.owl-carousel .owl-item.active .slider-description {
    animation: slideDown 1s ease-out;
}

.owl-carousel .owl-item.active .slider-btn {
    animation: slideDown 1.2s ease-out;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Fallback Content Position */
.header-fallback .container {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header .container {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-item .container {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Owl Carousel Navigation for Header Slider */
.header-slider .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5) !important;
    color: white !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    z-index: 5;
}

.header-slider .owl-nav .owl-prev {
    left: 20px;
}

.header-slider .owl-nav .owl-next {
    right: 20px;
}

.header-slider .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.header-slider .owl-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5) !important;
    margin: 0 5px;
    border-radius: 50%;
}

.header-slider .owl-dot.active {
    background: white !important;
}

/* Main Navigation */
.main-nav {
    background-color: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
}

.nav-menu>li {
    position: relative;
}

.nav-menu>li>a {
    display: block;
    padding: 15px 20px;
    color: white;
    font-weight: 500;
}

.nav-menu>li>a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.has-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: var(--shadow);
    display: none;
    list-style: none;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    padding-left: 25px;
}

/* Main Content */
.main-content {
    padding: 40px 0;
    background-color: #fff;
}

/* Top Tags Area */
.mg-tpt-tag-area {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
}

.mg-tpt-tag-area h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.mg-tpt-tag-area .tagline {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 25px;
}

.top-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-label {
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 10px;
}

.top-tag {
    display: inline-block;
    padding: 8px 20px;
    background-color: white;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.top-tag:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Latest News Marquee */
.mg-latest-news {
    background-color: var(--secondary-color);
    padding: 5px 0;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.bn_title {
    position: relative;
    float: left;
    padding: 5px 12px;
    background-color: var(--primary-color);
    margin-right: 10px;
    z-index: 2;
}

.bn_title .title {
    font-size: 12px;
    color: white;
    margin: 0;
    white-space: nowrap;
    font-weight: 600;
}

.bn_title .title span::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 10px solid var(--primary-color);
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
}

.mg-latest-news-slider {
    overflow: hidden;
    padding: 5px 0;
    display: flex;
}

.marquee-content {
    display: flex;
    gap: 20px;
    animation: marquee 40s linear infinite;
    white-space: nowrap;
    flex-shrink: 0;
}

.marquee-content a {
    color: white;
    font-size: 13px;
    font-weight: 400;
    padding: 0 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    flex-shrink: 0;
}

.marquee-content:first-child a:first-child {
    border-left: none;
}

.marquee-content a:hover {
    color: var(--primary-color);
}

.marquee-content a span {
    display: inline-block;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.mg-latest-news:hover .marquee-content {
    animation-play-state: paused;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.main-area {
    min-width: 0;
}

/* Latest News Section */
.mg-latest-news-sec {
    background-color: white;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--secondary-color);
}

.section-header h2 {
    font-size: 24px;
    color: var(--primary-color);
}

.tabs {
    display: flex;
    gap: 10px;
}

.tab-btn {
    padding: 8px 20px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
}

.tab-btn.active,
.tab-btn:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* News List */
.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.news-item {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s;
}

.news-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

/* Featured News Slider with Owl Carousel */
.featured-news-slider {
    grid-column: 1 / -1;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.homemain {
    width: 100%;
    max-width: 100%;
}

.homemain .item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    width: 100%;
}

.mg-blog-post.lg {
    position: relative;
    height: 500px;
    display: flex;
    align-items: flex-end;
    width: 100%;
}

.mg-blog-post.lg.back-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mg-blog-post.lg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.link-div {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.mg-blog-post article.bottom {
    position: relative;
    z-index: 3;
    padding: 30px;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

.post-form {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    margin-bottom: 10px;
}

.mg-blog-category {
    margin-bottom: 15px;
}

.newsup-categories {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 0;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    text-decoration: none;
}

.mg-blog-post h4.title {
    margin: 0 0 15px 0;
}

.mg-blog-post h4.title a {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.3s;
}

.mg-blog-post h4.title a:hover {
    color: var(--secondary-color);
}

.mg-blog-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.mg-blog-date {
    color: rgba(255, 255, 255, 0.9);
}

.mg-blog-date i {
    margin-right: 5px;
}

.mg-blog-date a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

/* Owl Carousel Custom Controls */
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5) !important;
    color: white !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    transition: all 0.3s;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
    background-color: var(--secondary-color) !important;
}

.owl-carousel .owl-nav button.owl-prev {
    left: 20px;
}

.owl-carousel .owl-nav button.owl-next {
    right: 20px;
}

.owl-carousel .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.owl-carousel .owl-dots .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5) !important;
    margin: 0 5px;
}

.owl-carousel .owl-dots .owl-dot.active {
    background-color: var(--secondary-color) !important;
}

.news-thumb {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 5px;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 13px;
}

/* Regular News Thumbnail */
.news-thumb-small {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.news-thumb-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-item:hover .news-thumb-small img {
    transform: scale(1.05);
}

/* News Body Overlay */
.news-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    color: white;
    z-index: 1;
}

.news-body h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.featured-news .news-body h3 {
    font-size: 24px;
    margin-top: 15px;
}

.news-body h3 {
    margin-bottom: 8px;
}

.news-body h3 a {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.news-body h3 a:hover {
    color: var(--secondary-color);
}

.news-item .post-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    margin-bottom: 8px;
}

.news-item .post-meta i {
    margin-right: 5px;
}

.news-item .news-body p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    margin-top: 8px;
    line-height: 1.4;
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.post-cats {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 2;
}

.post-cats a {
    background-color: var(--secondary-color);
    padding: 4px 10px;
    border-radius: 0;
    font-size: 10px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.page-num,
.page-next {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: var(--text-dark);
}

.page-num:hover,
.page-next:hover,
.page-num.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 70px;
}

.widget {
    background-color: white;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    color: var(--primary-color);
}

/* Search Widget */
.search-box {
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 3px 0 0 3px;
}

.search-box button {
    padding: 10px 15px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

.search-box button:hover {
    background-color: #229954;
}

/* Calendar Widget */
#calendar-widget {
    font-size: 13px;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
}

.calendar-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    color: var(--primary-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.calendar-grid>div {
    padding: 8px 5px;
    font-size: 12px;
}

.calendar-day {
    padding: 8px 5px;
    border-radius: 3px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day:hover {
    background-color: #e9ecef;
}

.calendar-day.today {
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
}

/* Category List */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text-dark);
    border-bottom: 1px dotted var(--border-color);
}

.category-list li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.category-list li a span {
    color: var(--text-light);
    font-size: 13px;
}

/* Recent Posts */
.recent-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.recent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 3px;
}

.recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-info {
    flex: 1;
}

.recent-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.recent-info h4 a:hover {
    color: var(--secondary-color);
}

.recent-date {
    font-size: 12px;
    color: var(--text-light);
}

/* Recent Comments */
.comments-list {
    list-style: none;
}

.comments-list li {
    padding: 8px 0;
    border-bottom: 1px dotted var(--border-color);
    font-size: 14px;
    color: var(--text-light);
}

.comments-list li a {
    color: var(--text-dark);
}

.comments-list li a:hover {
    color: var(--secondary-color);
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    margin-top: 50px;
}

.footer-top {
    padding: 40px 0;
    text-align: center;
}

.tagline h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.tagline p {
    font-size: 16px;
    color: #bbb;
}

.footer-bottom {
    background-color: #1a252f;
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
}

/* Scroll to Top */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 998;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: #229954;
}

/* Responsive */
@media (max-width: 992px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .news-thumb {
        height: 300px;
    }

    .news-list {
        grid-template-columns: 1fr;
    }

    .mg-tpt-tag-area h2 {
        font-size: 26px;
    }

    .mg-tpt-tag-area .tagline {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .has-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.1);
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar {
        order: 2;
    }

    /* Featured News Mobile */
    .featured-news-slider {
        margin-bottom: 20px;
        border-radius: 3px;
    }

    .homemain .item {
        border-radius: 3px;
    }

    .mg-blog-post.lg {
        height: 350px;
    }

    .mg-blog-post article.bottom {
        padding: 15px;
    }

    .post-form {
        font-size: 11px;
        padding: 4px 8px;
        margin-bottom: 8px;
    }

    .mg-blog-category {
        margin-bottom: 10px;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .newsup-categories {
        font-size: 10px;
        padding: 4px 8px;
        margin-right: 0;
        margin-bottom: 0;
    }

    .mg-blog-post h4.title {
        margin: 0 0 10px 0;
    }

    .mg-blog-post h4.title a {
        font-size: 16px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mg-blog-meta {
        font-size: 11px;
        gap: 10px;
    }

    .owl-carousel .owl-nav button.owl-prev,
    .owl-carousel .owl-nav button.owl-next {
        width: 35px !important;
        height: 35px !important;
        font-size: 16px !important;
        line-height: 35px !important;
    }

    .owl-carousel .owl-nav button.owl-prev {
        left: 10px !important;
    }

    .owl-carousel .owl-nav button.owl-next {
        right: 10px !important;
    }

    .owl-carousel .owl-dots {
        bottom: 10px !important;
    }

    .owl-carousel .owl-dots .owl-dot {
        width: 8px !important;
        height: 8px !important;
        margin: 0 4px !important;
    }

    .news-list {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: column;
    }

    .news-thumb-small {
        width: 100%;
        height: 350px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .site-title h1 {
        font-size: 20px;
    }

    .container {
        padding: 0 10px;
    }

    /* Featured News Extra Small Mobile */
    .mg-blog-post.lg {
        height: 300px;
    }

    .mg-blog-post article.bottom {
        padding: 12px;
    }

    .post-form {
        font-size: 10px;
        padding: 3px 6px;
    }

    .newsup-categories {
        font-size: 9px;
        padding: 3px 6px;
    }

    .mg-blog-post h4.title a {
        font-size: 14px;
        line-height: 1.3;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .mg-blog-meta {
        font-size: 10px;
    }

    .owl-carousel .owl-nav button.owl-prev,
    .owl-carousel .owl-nav button.owl-next {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
        line-height: 30px !important;
    }

    .owl-carousel .owl-nav button.owl-prev {
        left: 5px !important;
    }

    .owl-carousel .owl-nav button.owl-next {
        right: 5px !important;
    }

    .owl-carousel .owl-dots .owl-dot {
        width: 6px !important;
        height: 6px !important;
        margin: 0 3px !important;
    }

    .featured-news .news-body h3 {
        font-size: 20px;
    }

    .news-body h3 {
        font-size: 16px;
    }
}

/* Page Specific Styles */

/* Page Header */
.page-header {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 30px;
    border-left: 5px solid var(--secondary-color);
}

.page-header h1 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 32px;
}

.breadcrumb {
    color: var(--text-light);
    margin: 0;
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Page Content */
.page-content {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    line-height: 1.8;
}

.page-content h2 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.page-content h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.featured-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 5px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Info Table */
.info-table {
    margin: 20px 0;
}

.info-table table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.info-table td:first-child {
    width: 40%;
    background-color: #f5f5f5;
}

/* Styled List */
.styled-list {
    list-style: none;
    padding: 0;
}

.styled-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.styled-list li i {
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--secondary-color);
}

/* Call to Action */
.call-to-action {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-top: 40px;
}

.call-to-action h3 {
    color: white;
    margin-top: 0;
}

.btn-primary {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Contact Info */
.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    padding: 8px 0;
    color: var(--text-color);
}

.contact-info i {
    color: var(--secondary-color);
    width: 20px;
    margin-right: 10px;
}

/* Vision Mission Box */
.vision-mission-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 30px 0;
}

.vm-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.visi-card {
    border-top: 5px solid var(--secondary-color);
}

.misi-card {
    border-top: 5px solid var(--primary-color);
}

.vm-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.vm-card h2 {
    color: var(--primary-color);
    margin: 20px 0;
    border: none;
}

.vm-text {
    font-size: 18px;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.8;
}

.misi-list {
    text-align: left;
    padding-left: 20px;
}

.misi-list li {
    padding: 10px 0;
    line-height: 1.6;
}

/* Goals Grid */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.goal-item {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s;
}

.goal-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.goal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
}

.goal-item h4 {
    color: var(--primary-color);
    margin: 15px 0 10px;
}

.goal-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Values Section */
.values-section {
    margin: 30px 0;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.value-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.value-letter {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    flex-shrink: 0;
}

.value-item strong {
    color: var(--primary-color);
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.value-item p {
    margin: 0;
    color: var(--text-light);
}

/* Single Post Styles */

/* Breadcrumb Navigation */
.breadcrumb-nav {
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.breadcrumb-nav a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-nav span {
    margin: 0 8px;
    color: var(--text-light);
}

.breadcrumb-nav .current {
    color: var(--text-dark);
}

/* Single Post Article */
.single-post {
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

/* Post Meta Top */
.post-meta-top {
    margin-bottom: 15px;
}

.post-date {
    color: var(--text-light);
    font-size: 14px;
}

.post-date i {
    margin-right: 5px;
}

/* Post Categories */
.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.post-cat {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Post Title */
.post-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.3;
    font-weight: 700;
}

/* Post Featured Image */
.post-featured-image {
    margin-bottom: 30px;
    border-radius: 5px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

/* Post Content */
.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h3 {
    color: var(--primary-color);
    margin: 30px 0 15px;
    font-size: 22px;
}

/* Numbered List */
.numbered-list {
    margin: 20px 0;
    padding-left: 30px;
}

.numbered-list li {
    margin-bottom: 15px;
    line-height: 1.8;
}

.numbered-list li strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.numbered-list ul {
    margin-top: 8px;
    padding-left: 20px;
    list-style-type: disc;
}

.numbered-list ul li {
    margin-bottom: 5px;
}

/* Blockquote */
.post-quote {
    background: var(--bg-light);
    border-left: 5px solid var(--secondary-color);
    padding: 25px 30px;
    margin: 30px 0;
    font-style: italic;
    position: relative;
}

.post-quote p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.post-quote footer {
    text-align: right;
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 10px;
}

/* Read Also Box */
.read-also {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin: 25px 0;
}

.read-also p {
    margin: 0;
    font-size: 15px;
}

.read-also a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.read-also a:hover {
    color: var(--secondary-color);
}

/* Social Share */
.social-share {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.social-share h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

.share-btn.telegram {
    background-color: #0088cc;
}

/* Post Author */
.post-author {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.post-author p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.author-name {
    color: var(--primary-color);
    font-weight: 600;
}

.author-name:hover {
    color: var(--secondary-color);
}

/* Related Posts */
.related-posts {
    margin-bottom: 40px;
}

.related-posts .section-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
    text-transform: uppercase;
    font-weight: 700;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-item {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.related-thumb {
    display: block;
    overflow: hidden;
    height: 180px;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-item:hover .related-thumb img {
    transform: scale(1.1);
}

.related-content {
    padding: 20px;
}

.related-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.related-cat {
    background-color: var(--secondary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 0;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

.related-title {
    margin-bottom: 10px;
}

.related-title a {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    display: block;
}

.related-title a:hover {
    color: var(--secondary-color);
}

.related-date {
    color: var(--text-light);
    font-size: 13px;
}

/* Comments Section */
.comments-section {
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.comments-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.comments-note {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 25px;
}

.required {
    color: var(--accent-color);
}

/* Comment Form */
.comment-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

/* Captcha */
.captcha-group {
    margin-bottom: 25px;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-question {
    background: var(--bg-light);
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 16px;
}

.captcha-box input {
    width: 100px;
}

/* Submit Button */
.btn-submit {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive for Single Post */
@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .single-post {
        padding: 20px;
    }

    .post-title {
        font-size: 24px;
    }

    .post-content {
        font-size: 15px;
    }

    .share-buttons {
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Pop-up Overlay Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-content img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 90vh;
    object-fit: contain;
}

.popup-content a {
    display: block;
}

.popup-close {
    position: absolute;
    top: -50px;
    right: 0;
    background-color: white;
    color: var(--text-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.popup-close:hover {
    background-color: var(--accent-color);
    color: white;
    transform: rotate(90deg);
}

/* Responsive Pop-up */
@media (max-width: 768px) {
    .popup-content {
        max-width: 95%;
        max-height: 85vh;
        border-radius: 8px;
    }

    .popup-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
        background-color: rgba(255, 255, 255, 0.95);
    }

    .popup-content img {
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .popup-content {
        max-width: 98%;
        max-height: 80vh;
        border-radius: 5px;
    }

    .popup-close {
        width: 32px;
        height: 32px;
        font-size: 22px;
    }

    .comments-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 20px;
    }

    .post-content h3 {
        font-size: 18px;
    }

    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .breadcrumb-nav {
        font-size: 12px;
    }
}