/*
Theme Name: BlogPro
Theme URI: https://example.com/blogpro
Author: BlogPro Team
Author URI: https://example.com
Description: A modern WordPress theme with user registration, post approval workflow, and dynamic frontend features.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blogpro
Tags: blog, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===========================
   CSS Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* yellow = FFBE33;
bluedark = 185397;
bluelight = 2196B9 */

:root {
    --primary-color: #2196B9;
    --primary-dark: #185397;
    --secondary-color: #2196B9;
    --text-dark: #0B2334;
    --text-light: #6b7280;
    --bg-light: #f1f1f1;
    --bg-white: #ffffff;
    --bg-dark: #0B2334;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Header Styles
   =========================== */
.site-header {
    background: #fff;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.site-branding img{
    max-height: 60px;
    width: auto;
}
.site-branding h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bg-white);
    margin: 0;
}

.site-branding a {
    color: var(--bg-white);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-left ul,
.nav-right ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-left a,
.nav-right a {
    color: var(--bg-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-left a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--bg-white);
    transition: width 0.3s ease;
}

.nav-left a:hover::after,
.nav-left a.active::after {
    width: 100%;
}

.nav-left a.active {
    color: var(--primary-color);
}

/* Category Dropdown */
.menu-item-has-children {
    position: relative;
}
.menu-item-has-children a {
    padding-right: 1.3rem;
}
.menu-item-has-children > a::before {
    position: absolute;
    content: ' ▼';
    font-size: 0.75rem;
    margin-left: 0.25rem;
    top: 10px;
    right: 0;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    display: block;
    width: 100%;
}

.sub-menu a {
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    display: block;
    transition: background-color 0.2s ease;
}

.sub-menu a:hover {
    background-color: var(--bg-light);
}

.sub-menu a::after {
    display: none;
}

/* User Dropdown */
.user-menu {
    position: relative;
}

.user-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: linear-gradient(91deg, #ffbe33, #185397);
    border-radius: 2rem;
    transition: background-color 0.3s ease;
}

.user-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.user-toggle span {
    color: var(--bg-white);
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-xl);
    border-radius: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    flex-direction: column;
    gap: 0 !important;
}

.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    color: var(--text-dark);
    padding: 0.5rem 1.5rem;
    display: block;
    transition: background-color 0.2s ease;
}

.user-dropdown a:hover,
.user-dropdown a.active {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: 600;
}
button#register-btn {
    background: #185397;
    color: #fff;
}
/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-dark);
    border: 2px solid var(--bg-dark);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===========================
   Banner Slider
   =========================== */
.banner-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 3rem 2rem;
    color: var(--bg-white);
}

.slide-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.slide-excerpt {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.slide-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-nav:hover {
    background-color: var(--bg-white);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 2rem;
}

.slider-next {
    right: 2rem;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--bg-white);
    width: 30px;
    border-radius: 6px;
}

/* ===========================
   Post Sections
   =========================== */
.post-section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all:hover {
    gap: 0.75rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background-color: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text-dark);
}

.post-title a {
    color: var(--text-dark);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
    background-color: var(--text-dark);
    color: var(--bg-light);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    color: var(--bg-white);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: var(--bg-light);
}

.footer-widget a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-light);
}

/* ===========================
   Modal Styles
   =========================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* ===========================
   Breadcrumbs
   =========================== */
.breadcrumbs {
    padding: 1rem 0;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: var(--text-light);
}

.breadcrumbs .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-dark);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .main-navigation.active {
        display: flex;
    }
    
    .nav-left ul,
    .nav-right ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-left li,
    .nav-right li {
        width: 100%;
    }
    
    .nav-left a,
    .nav-right a {
        display: block;
        padding: 1rem 1.5rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .banner-slider {
        height: 350px;
    }
    
    .slide-title {
        font-size: 1.75rem;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .slider-prev {
        left: 1rem;
    }
    
    .slider-next {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 1.5rem;
    }
    
    .slide-excerpt {
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}

/* Scrollable Category Dropdown */
.main-navigation .menu-item-has-children .sub-menu {
    max-height: 400px; /* Approx 10 items */
    overflow-y: auto;
    /* Custom Scrollbar Styling */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
    flex-direction: column;
    gap: 0;
    align-items: start;
}

.main-navigation .menu-item-has-children .sub-menu::-webkit-scrollbar {
    width: 6px;
}

.main-navigation .menu-item-has-children .sub-menu::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.main-navigation .menu-item-has-children .sub-menu::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* ===========================
   New Footer Styles
   =========================== */
.footer-logo {
    color: var(--bg-white);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* ===========================
   Archive & Category Styles
   =========================== */
.archive-header {
    background: var(--bg-white);
    padding: 3rem;
    margin: 2rem 0;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.archive-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.archive-description {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto;
}

.no-posts-message {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-white);
    border-radius: 1rem;
    font-size: 1.125rem;
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
}

.section-margin-bottom {
    margin-bottom: 4rem;
}

/* Pagination Styles */
.pagination, .blogpro-pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .nav-links, .blogpro-pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination a, .pagination span,
.blogpro-pagination a, .blogpro-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    background: var(--bg-white);
    border-radius: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    min-width: 45px;
}

.pagination a:hover,
.blogpro-pagination a:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination .current,
.blogpro-pagination .current {
    background: var(--primary-color);
    color: var(--bg-white);
    cursor: default;
}

.nav-prev-text, .nav-next-text {
    display: inline-block;
}

/* ===========================
   Single Post Styles
   =========================== */
.single-post-container {
    background: var(--bg-white);
    padding: 4rem;
    margin: 3rem 0;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.entry-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.entry-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem 0;
    color: var(--text-dark);
    line-height: 1.2;
}

.entry-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    color: var(--primary-color);
}

.post-featured-image-wrapper {
    margin: 0 -4rem 3rem;
}

.single-featured-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}

.entry-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2, 
.entry-content h3, 
.entry-content h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.entry-content h2 { font-size: 2rem; }
.entry-content h3 { font-size: 1.75rem; }
.entry-content h4 { font-size: 1.5rem; }

.entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.entry-content a:hover {
    color: var(--primary-dark);
}

.entry-content blockquote {
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    background: var(--bg-light);
    border-radius: 0 1rem 1rem 0;
}

.entry-content ul, .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-footer {
    max-width: 800px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.tags-label {
    font-weight: 700;
    color: var(--text-dark);
    margin-right: 0.5rem;
}

.post-tag {
    background: var(--bg-light);
    color: var(--text-light);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.post-tag:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts-section {
    margin: 5rem 0 3rem;
}

@media (max-width: 768px) {
    .archive-header {
        padding: 2rem;
        margin: 1rem 0;
    }
    
    .archive-title {
        font-size: 2rem;
    }

    .single-post-container {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .post-featured-image-wrapper {
        margin: 0 -1.5rem 2rem;
    }

    .entry-title {
        font-size: 2rem;
    }

    .entry-content {
        font-size: 1.1rem;
    }

    .entry-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ===========================
   Tabbed Masonry Layout
   =========================== */
.tabbed-section {
    margin-bottom: 4rem;
}

.tab-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 2rem;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--text-dark);
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Masonry Grid */
.masonry-grid {
    column-count: 3;
    column-gap: 2rem;
}

.masonry-grid .post-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 2rem;
    break-inside: avoid; /* Prevent card from breaking across columns */
}

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* ===========================
   Multi-Item Slider
   =========================== */
.multi-slider-wrapper {
    position: relative;
    padding: 0 40px;
}

.multi-slider-container {
    overflow: hidden;
    margin: 0 -15px; /* Offset padding of slides */
}

.multi-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.multi-slide {
    flex: 0 0 33.333%; /* 3 items per view */
    max-width: 33.333%;
    padding: 0 15px;
}

.multi-slide .post-card {
    height: 100%;
}

.multi-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.multi-slider-nav:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.multi-prev {
    left: 0;
}

.multi-next {
    right: 0;
}

@media (max-width: 992px) {
    .multi-slide {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 600px) {
    .multi-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ===========================
   Page Specific Styles
   =========================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* About Page */
.about-section {
    margin-bottom: 6rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.125rem;
}

.about-image img {
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

.center-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.center-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.team-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--bg-light);
}

.team-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.team-role {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.team-social a {
    color: var(--text-light);
    font-size: 1.25rem;
}

.team-social a:hover {
    color: var(--primary-color);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.info-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-details h4 {
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.info-details p, .info-details a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.map-card {
    padding: 0;
    overflow: hidden;
    margin: 0;
}

.contact-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-form-wrapper {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h3 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

@media (max-width: 768px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
}

/* ===========================
   Brand Colors
   =========================== */
:root {
    --brand-yellow: #FFBE33;
    --brand-blue-dark: #185397;
    --brand-blue-light: #2196B9;
}

/* ===========================
   Single Post Styles
   =========================== */
.single-post {
    background: var(--bg-white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.entry-header {
    margin-bottom: 2.5rem;
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
}

.post-category-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.post-category {
    background-color: rgba(33, 150, 185, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.post-category:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.entry-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.entry-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.meta-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.meta-item > div {
    display: flex;
    flex-direction: column;
}
.meta-content{
    align-items: start;
}
.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.post-featured-image {
    margin: -3rem -3rem 3rem -3rem; /* Break out of container */
    overflow: hidden;
    max-height: 600px;
}

.single-post .post-featured-image {
    margin: 3rem 0;
    border-radius: 1rem;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.post-featured-image:hover .featured-img {
    transform: scale(1.02);
}
.post-title{
text-overflow: ellipsis;
overflow: hidden;
display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
min-height: 60px;
}
.post-excerpt{
text-overflow: ellipsis;
overflow: hidden;
display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;  
min-height: 70px;
}
.entry-content {
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.entry-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-tags {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.tags-label {
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-link {
    background-color: var(--bg-light);
    color: var(--text-light);
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.author-bio {
    background-color: #f8fafc;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--bg-white);
    box-shadow: var(--shadow-md);
}

.author-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.author-desc {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.author-link {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Related Posts Section */
.related-posts {
    margin-top: 4rem;
}
.related-posts .section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Button Overrides */
#register-btn {
    background-color: var(--brand-blue-dark);
    color: #fff !important;
    border: 1px solid var(--brand-blue-dark);
}

#register-btn:hover {
    background-color: transparent !important;
    color: var(--brand-blue-dark) !important;
}

#login-btn {
    color: var(--brand-blue-dark) !important;
    border-color: var(--brand-blue-dark) !important;
}

#login-btn:hover {
    background-color: var(--brand-yellow) !important;
    border-color: var(--brand-yellow) !important;
    color: var(--brand-blue-dark) !important;
}

.btn-primary {
    background-color: var(--brand-yellow);
    color: var(--brand-blue-dark);
}

.btn-primary:hover {
    background-color: var(--brand-blue-dark);
    color: var(--bg-white);
}

.status-publish.post-card{
    background-color: #fff !important;
}
.slide-title a{
    color: #FFBE33;
}

/* ===========================
   Comments Area
   =========================== */
.comments-area {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list li {
    margin-bottom: 2.5rem;
}

.comment-body {
    display: flex;
    gap: 1.5rem;
    background: #fcfcfc;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.comment-author-avatar img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--bg-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comment-content {
    flex: 1;
}

.comment-meta {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.comment-meta .fn {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.comment-meta .fn a {
    color: var(--text-dark);
}

.comment-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.comment-text {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1rem;
}

.comment-text p {
    margin-bottom: 1rem;
}

.reply {
    margin-top: 1rem;
    text-align: right;
}

/* Comment Form (Leave a Comment) */
.comment-respond {
    margin-top: 4rem;
    background-color: #f8fafc;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.comment-reply-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    display: block;
}

.comment-notes,
.logged-in-as {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.comment-form-comment label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.comment-form-comment textarea {
    width: 100%;
    border: 1px solid #e1e4e8;
    border-radius: 1rem;
    padding: 1.25rem;
    font-family: inherit;
    font-size: 1rem;
    min-height: 200px;
    resize: vertical;
    transition: all 0.3s ease;
    background-color: #fff;
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: var(--brand-blue-light);
    box-shadow: 0 0 0 4px rgba(33, 150, 185, 0.1);
}

.form-submit {
    margin-top: 1.5rem;
    text-align: right;
}

.form-submit .submit {
    background-color: var(--brand-blue-dark);
    color: #fff;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(24, 83, 151, 0.2);
}

.form-submit .submit:hover {
    background-color: var(--brand-yellow);
    color: var(--brand-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 190, 51, 0.3);
}

/* Login Prompt */
.comment-login-prompt {
    background-color: #f8fafc;
    padding: 3rem;
    border-radius: 1.5rem;
    text-align: center;
    margin-top: 4rem;
    border: 2px dashed var(--border-color);
}

.comment-login-prompt h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.comment-login-prompt .auth-buttons {
    justify-content: center;
    margin-top: 1.5rem;
}
.footer-logo img {
    max-height: 100px;
    width: auto;
    margin-bottom: 1.5rem;
}