/* Header & Menu Styles */
.header-area .navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    position: relative;
    z-index: 2;
}


/* New Search Form Styles */
.header-search-form {
    background: transparent;
    padding: 0;
    display: none;
    /* Hidden by default */
}

.header-search-form .form-control {
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}



.navbar .navbar-nav .nav-link {
    font-family: 'Merriweather', serif !important;
    font-weight: 700;
    font-size: 17px;
    color: #000;
}

.navbar .dropdown-item {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 16px;
    /* Slightly smaller for hierarchy */
    color: #000;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .dropdown-item:hover {
    color: #c62828 !important;
}

.search-icon a {
    color: #000 !important;
}

.header-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

body {
    padding-top: 90px;
    /* Adjust based on header height */
    transition: padding-top 0.3s ease-in-out;
}

.header-area.header-scrolled .breaking-news-ticker {
    transform: translateY(-100%);
    opacity: 0;
}

.breaking-news-ticker {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform: translateY(0);
    opacity: 1;
    position: relative;
    z-index: 1;
}

.main-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu ul li {
    display: inline-block;
    margin-left: 30px;
}

.main-menu ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 10px 0;
}

.search-icon a {
    color: #333;
    font-size: 18px;
}

/* Post Grid Styles */
.main-content-area {
    padding: 40px 0;
}

.featured-post {
    position: relative;
    height: 400px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.featured-post .post-content {
    position: relative;
    z-index: 2;
}

.featured-post::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.post-tag {
    background: #c62828;
    color: #fff !important;
    padding: 5px 10px;
    font-size: 12px;
    font-family: sans-serif;
    font-weight: 700;
    text-decoration: none;
    border-radius: 3px;
}

.post-title a {
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
}

.post-title a:hover,
.post-title-small a:hover {
    color: #c62828 !important;
}

.post-meta span {
    margin-right: 15px;
    font-size: 14px;
}

.side-post .post-thumb img {
    width: 100%;
}

.post-title-small a {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.post-meta-small span {
    font-size: 12px;
    color: #777;
}

/* Sidebar & Widgets */
.widget-title {
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid #c62828;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 10px;
    border-radius: 5px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, filter 0.2s ease-in-out;
}

.social-links li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    filter: brightness(1.15);
}

.social-links li a i {
    font-size: 20px;
    margin-right: 15px;
    width: 25px;
    text-align: center;
}

.social-links .social-name {
    font-weight: 600;
}

.social-links .facebook {
    background: #1877F2;
}

.social-links .twitter {
    background: #1DA1F2;
}

.social-links .instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-links .youtube {
    background: #FF0000;
}

.ad-widget img {
    max-width: 100%;
}

/* Grid Post Styles */
.grid-post {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.grid-post .post-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-post:hover .post-thumb img {
    transform: scale(1.05);
}

.grid-post .post-content {
    padding: 20px;
}

.grid-post .post-tag {
    font-size: 11px;
}

.grid-post .post-title-small a {
    font-size: 18px;
    line-height: 1.4;
}

.grid-post .post-meta-small span {
    margin-right: 10px;
}

/* Site Title */
.site-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #000;
    transition: font-size 0.3s ease-in-out;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .site-title {
        font-size: 18px !important;
        letter-spacing: 1px !important;
    }

    .navbar-nav {
        margin-top: 15px;
        text-align: left;
    }

    .navbar-nav .nav-item {
        margin-left: 0;
    }

    .featured-post {
        height: 300px;
    }

    .post-title a {
        font-size: 22px;
    }

    .sidebar {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {

    /* Header adjustments for smaller screens */
    .header-area .navbar {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .navbar-brand img {
        height: 35px !important;
        /* Override inline style */
    }

    .site-title {
        font-size: 16px !important;
        letter-spacing: 0.5px !important;
    }

    body {
        padding-top: 70px;
        /* Adjust for smaller header */
    }

    /* Content adjustments */
    .main-content-area {
        padding: 20px 15px;
    }

    .post-title a {
        font-size: 18px;
    }

    .featured-post {
        padding: 20px;
        height: 250px;
    }

    .post-detail-title {
        font-size: 24px;
    }

    .registration-form .form-section-header h2 {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .navbar-brand {
        flex-shrink: 0;
        /* Prevent the brand from shrinking */
    }

    .site-title {
        font-size: 14px !important;
        letter-spacing: 0.2px !important;
    }
}

/* Breaking News Ticker */
.breaking-news-ticker {
    background-color: #c62828 !important;
    padding: 4px 0;
}

.breaking-news-ticker .badge {
    background-color: rgba(0, 0, 0, 0.2);
    font-weight: bold;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 2px;
    text-transform: uppercase;
    border: none;
    color: #fff;
    animation: live-pulse 1.5s infinite;
}

.breaking-news-ticker marquee span {
    color: #fff;
    margin-right: 30px;
}

.breaking-news-ticker marquee span::before {
    content: '•';
    margin-right: 30px;
    color: rgba(255, 255, 255, 0.5);
}

.breaking-news-ticker marquee span:first-child::before {
    content: '';
    margin-right: 0;
}

/* General styles */
body {
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

img {
    max-width: 100%;
    height: auto;
}

.breaking-news-ticker marquee {
    display: inline-block;
    width: 100%;
}


/* Custom Alert Styles */
.alert.alert-success {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    background: rgba(255, 255, 255, 0.25) !important;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #1a1a1a !important;
    /* Dark text for better contrast */
}


/* Post Detail Styles */
.post-header-container {
    border: 1px dashed #ccc;
    padding: 20px;
    margin-bottom: 30px !important;
}

.post-detail-title {
    font-family: 'Merriweather', serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
}

.post-meta-detail {
    font-size: 14px;
    color: #555;
}

.post-meta-detail strong {
    color: #000;
}

.post-share-buttons a {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    margin-left: 8px;
    transition: background 0.3s, color 0.3s;
}

.post-share-buttons a:hover {
    background: #c62828;
    color: #fff;
}


@media (max-width: 991px) {
    .post-detail-title {
        font-size: 28px;
    }

    .col-lg-4.text-lg-end {
        text-align: left !important;
        margin-top: 20px;
    }
}

/* Comments Section Styles */
.comments-section h4,
.mt-4 h4 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
}

.comment {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background-color: #c62828;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.comment-author {
    font-weight: 700;
    margin-bottom: 0;
}

.comment-text {
    color: #555;
}


/* Footer Styles */
.footer-area {
    background: #1a1a1a;
    color: #a9a9a9;
    padding: 60px 0;
}

.footer-widget .widget-title {
    color: #fff;
    border-bottom: 2px solid #c62828;
}

.footer-widget p {
    font-size: 14px;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #a9a9a9;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-widget ul li a:hover {
    color: #fff;
}

.social-links-footer a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: #333;
    color: #fff;
    margin-right: 10px;
    transition: background 0.3s;
}

.social-links-footer a:hover {
    background: #c62828;
}

.copyright-text {
    border-top: 1px solid #333;
    padding-top: 30px;
    margin-top: 30px;
}

.copyright-text p {
    margin: 0;
    font-size: 14px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Post View Count Styles */
.post-view-count {
    display: inline-flex;
    align-items: center;
    background-color: #f0f0f0;
    color: #555;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.post-view-count i {
    margin-right: 5px;
}


/* Latest Posts Widget Styles */
.latest-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-posts-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.latest-posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.post-thumb-small a {
    display: block;
    width: 80px;
    height: 80px;
    margin-right: 15px;
}

.post-thumb-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.post-title-very-small a {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
}

.post-title-very-small a:hover {
    color: #c62828;
}


/* Category Page Title Styles */
.category-title-container {
    border: 2px dashed #ddd;
    padding: 15px 25px;
    margin-bottom: 30px;
    display: inline-block;
    border-radius: 8px;
}

.category-page-title {
    font-family: 'Merriweather', serif;
    font-size: 28px;
    font-weight: 700;
    color: #c62828;
    margin-bottom: 0;
}

.category-page-title i {
    margin-right: 10px;
}


/* Search Page Title Styles */
.search-title-container {
    border: 2px dashed #ddd;
    padding: 15px 25px;
    margin-bottom: 30px;
    display: inline-block;
    border-radius: 8px;
}

.search-page-title {
    font-family: 'Merriweather', serif;
    font-size: 28px;
    font-weight: 700;
    color: #c62828;
    margin-bottom: 0;
}

.search-page-title i {
    margin-right: 10px;
}


/* Search Page Title Styles */
.search-title-container {
    border: 2px dashed #ddd;
    padding: 15px 25px;
    margin-bottom: 30px;
    display: inline-block;
    border-radius: 8px;
}

.search-page-title {
    font-family: 'Merriweather', serif;
    font-size: 28px;
    font-weight: 700;
    color: #c62828;
    margin-bottom: 0;
}

.search-page-title i {
    margin-right: 10px;
}


/* Read More Button Styles */
.btn-load-more {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 30px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.btn-load-more:hover {
    background-color: #c62828;
    color: #fff;
}


/* Home Page Section Styles */
.home-section .sect.site-title {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 20px;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #000;
    transition: font-size 0.3s ease-in-out;
}

.home-section .section-title {
    font-family: 'Merriweather', serif;
    font-size: 22px;
    font-weight: 700;
    color: #c62828;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.home-section .section-title i {
    font-size: 16px;
    vertical-align: middle;
}

.home-section .grid-post .post-title-small a {
    color: #333;
    font-weight: 700;
}

.home-section .grid-post .post-title-small a:hover {
    color: #c62828;
}


.home-section .section-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.home-section .section-title a:hover {
    color: #a02020;
}

/* Offline Indicator Styles */
#offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.offline-content {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.offline-image {
    max-width: 150px;
    margin-bottom: 30px;
}

.offline-content h2 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.offline-content p {
    color: #777;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.btn-reload {
    background-color: #ff6b6b;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-reload:hover {
    background-color: #ff4757;
    transform: translateY(-3px);
}


/* No Results Found Styles */
.no-results-container {
    border: 2px dashed #e0e0e0;
    padding: 40px;
    border-radius: 10px;
    margin-top: 20px;
}

.no-results-icon {
    font-size: 50px;
    color: #c62828;
    margin-bottom: 20px;
}

.no-results-title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.no-results-text {
    color: #777;
    font-size: 16px;
    line-height: 1.6;
}


/* Custom Toast Notification */
.custom-toast {
    visibility: hidden;
    min-width: 280px;
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px 20px;
    position: fixed;
    z-index: 2000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.custom-toast i {
    color: #2ecc71;
    margin-right: 12px;
    font-size: 20px;
}

.custom-toast.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

/* All News Button */
.btn-all-news {
    display: inline-block;
    background-color: #c62828;
    color: #fff;
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Merriweather', serif;
    transition: background-color 0.3s ease;
}

.btn-all-news:hover {
    background-color: #a92222;
    color: #fff;
}

/* Responsive Toast for Mobile */
@media screen and (max-width: 768px) {
    .custom-toast {
        left: 50%;
        bottom: 30px;
        top: auto;
        transform: translateX(-50%);
        width: 90%;
        text-align: center;
    }
}

/* Nested Dropdown Styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
    /* Hidden by default */
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
    /* Show on hover */
}

.dropdown-submenu>.dropdown-item.dropdown-toggle::after {
    display: inline-block;
    content: '▶';
    margin-left: 0.5em;
    vertical-align: .255em;
    border: none;
    font-size: 0.8em;
    transform: rotate(0deg);
}

@keyframes live-pulse {
    0% {
        background-color: #d32f2f;
        box-shadow: 0 0 3px #d32f2f;
    }

    50% {
        background-color: #ff5252;
        box-shadow: 0 0 10px #ff5252, 0 0 5px #ff5252;
    }

    100% {
        background-color: #d32f2f;
        box-shadow: 0 0 3px #d32f2f;
    }
}

/* Responsive images in post content */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Contact Page - Office Info Styles */
.contact-info-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-section h4 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
}

.contact-info-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid transparent;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-info-card.email-card {
    border-left-color: #1877F2;
}

.contact-info-card.address-card {
    border-left-color: #EA4335;
}

.contact-info-card h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.contact-info-card h6 i {
    font-size: 22px;
    margin-right: 12px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.contact-info-card.email-card h6 i {
    color: #1877F2;
    background: rgba(24, 119, 242, 0.1);
}

.contact-info-card.address-card h6 i {
    color: #EA4335;
    background: rgba(234, 67, 53, 0.1);
}

.contact-info-card p {
    margin: 0;
    padding-left: 47px;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

.contact-info-card a {
    color: #1877F2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: #0d5dbf;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .contact-info-section {
        padding: 25px 20px;
    }

    .contact-info-section h4 {
        font-size: 22px;
    }

    .contact-info-card {
        padding: 20px;
    }
}