@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Montserrat:wght@700&display=swap');

/* --- VARIABLES & GLOBAL STYLES --- */
:root {
    --primary-font: 'Montserrat', sans-serif;
    --secondary-font: 'Inter', sans-serif;
    --text-color: #333;
    --background-color: #fdfdfd;
    --accent-color: #088F8F;
    --border-color: #eaeaea;
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--secondary-font);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    width: 100%; /* Ensure main takes full width in flex column */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Ensure container takes full width up to max-width */
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--primary-font);
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}


body.no-scroll {
    overflow: hidden;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    touch-action: none; /* Prevent touch scrolling on body */
}

/* --- HEADER & NAVIGATION --- */
.main-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1001; /* Above mobile menu */
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--primary-font);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
}

/* ===========================================
   DESKTOP NAVIGATION (default styles)
   =========================================== */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav > ul > li {
    display: flex;
    align-items: center;
}

.main-nav > ul > li > a {
    display: flex;
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Dropdown Styles - Desktop */
.main-nav ul li {
    position: relative;
}

.main-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    flex-direction: column;
    min-width: 200px;
    gap: 0;
    z-index: 101;
}

.main-nav ul ul li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}

.main-nav ul ul li:last-child {
    border-bottom: none;
}

.main-nav ul ul a {
    display: block;
    padding: 12px 20px;
    text-transform: none;
    font-size: 0.95rem;
    white-space: nowrap;
}

.main-nav ul ul a:hover {
    background-color: #f9f9f9;
}

/* Desktop hover behavior */
.main-nav ul li:hover > ul {
    display: flex;
}

/* Second level dropdown - Desktop */
.main-nav ul ul ul {
    top: 0;
    left: 100%;
    margin-left: 1px;
}

/* Hamburger toggle - hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

/* Hide mobile-only elements on desktop */
.nav-toggle-checkbox,
.submenu-toggle,
.menu-item-label {
    display: none;
}

/* Show the actual link on desktop for parent items */
.main-nav > ul > li.has-children > a.menu-item-link {
    display: flex;
    align-items: center;
}

/* Ensure submenu parent links also display correctly */
.main-nav ul ul li.has-children > a.menu-item-link {
    display: block;
}


/* --- HOMEPAGE: HERO & SLIDER --- */
.hero-section {
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.main-slider {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 5px;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    position: relative;
    color: #fff;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.slide .post-content {
    position: absolute;
    bottom: 60px;
    left: 20px;
    padding: 0;
    max-width: 80%;
    background: transparent;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.slide .post-title a {
    color: #fff;
    text-decoration: none;
}

.slide .post-title a:hover {
    color: var(--accent-color);
}

.slide .post-title {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    display: inline-block;
    font-size: 1.5rem;
    margin: 5px 0 0 0;
    text-shadow: none;
    border-radius: 4px;
    line-height: 1.4;
}

.slide .post-excerpt {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 0;
}

.slide .post-category {
    background-color: var(--accent-color);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 5px;
    color: #fff;
    z-index: 2;
    position: relative;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--accent-color);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

.section-title {
    font-size: 2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card .post-content {
    padding: 20px;
    flex-grow: 1;
}

.post-category {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: bold;
    text-transform: uppercase;
}

.post-card .post-title {
    font-size: 1.4rem;
    margin: 10px 0;
    line-height: 1.3;
}

.post-excerpt {
    font-size: 0.95rem;
    color: #666;
}


/* --- SINGLE POST PAGE --- */
.full-post {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border: 1px solid var(--border-color);
}

.full-post .post-header {
    text-align: center;
    margin-bottom: 30px;
}

.full-post .post-title {
    font-size: 2.8rem;
    margin: 10px 0;
}

.post-meta {
    font-size: 0.9rem;
    color: #777;
}

.featured-image {
    width: 100%;
    margin-bottom: 30px;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.6;
}

.post-body p {
    margin-bottom: 0.8em;
    margin-top: 0;
}

.post-body h2 {
    font-size: 1.8rem;
}

.post-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
}

.post-footer {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.post-tags a {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 5px;
    font-size: 0.9rem;
}

.post-tags a:hover {
    background: var(--accent-color);
    color: #fff;
}


/* --- FOOTER --- */
.main-footer {
    background: #333;
    color: #fff;
    padding: 40px 0;
    margin-top: 40px;
    border-top: 5px solid var(--accent-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align content to the top */
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #ccc;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    line-height: 1; /* Normalize height for alignment */
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.footer-socials a {
    color: #ccc;
    font-size: 1.3rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: none; /* Removed background */
}

.footer-socials a:hover {
    color: var(--accent-color); /* Just change color on hover */
    transform: none; /* Removed hover jump */
}

.footer-right p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
    line-height: 1; /* Align with links */
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center; /* Center flex items */
        gap: 30px;
    }
    
    .footer-left {
        align-items: center; /* Center links and socials column */
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-socials {
        justify-content: center;
        margin-top: 10px;
    }

    .footer-right {
        width: 100%;
    }
    
    .hero-wrapper {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    .hero-wrapper > .main-slider,
    .hero-wrapper > .trending-sidebar {
        width: 100%;
    }
    .main-slider {
        flex: none;
        height: auto;
    }
    .slider-wrapper {
        height: auto;
    }
    .slide {
        height: auto;
    }
    .slide img {
        height: auto;
        width: 100%;
        object-fit: cover;
    }
    .slide .post-content {
        bottom: 50px;
    }
    .trending-sidebar {
        flex: none;
        height: auto;
        overflow: visible;
        margin-top: 0;
    }
    /* ===========================================
       MOBILE NAVIGATION (CSS-only with checkboxes)
       =========================================== */

    /* Hide checkbox inputs */
    .nav-toggle-checkbox,
    .submenu-toggle {
        display: none;
    }

    /* Show hamburger button on mobile */
    .nav-toggle {
        display: block;
        z-index: 1002;
        position: relative;
        cursor: pointer;
        padding: 10px;
    }

    .hamburger {
        display: block;
        position: relative;
        width: 25px;
        height: 2px;
        background: var(--text-color);
        transition: background 0.3s ease;
    }
    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 2px;
        background: var(--text-color);
        transition: transform 0.3s ease;
    }
    .hamburger::before { top: -8px; }
    .hamburger::after { top: 8px; }

    /* Hamburger animation when menu is open */
    #nav-toggle:checked ~ .nav-toggle .hamburger { background: transparent; }
    #nav-toggle:checked ~ .nav-toggle .hamburger::before { transform: rotate(45deg) translate(5px, 6px); }
    #nav-toggle:checked ~ .nav-toggle .hamburger::after { transform: rotate(-45deg) translate(5px, -6px); }

    /* Mobile menu container - hidden by default */
    .main-nav > ul {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: #fff;
        flex-direction: column;
        gap: 0;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: 80px;
        z-index: 1000;
    }

    /* Show menu when checkbox is checked */
    #nav-toggle:checked ~ ul {
        display: flex;
    }

    /* Disable desktop hover behavior on mobile */
    .main-nav ul li:hover > ul {
        display: none;
    }

    /* All menu items - consistent styling */
    .main-nav li {
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        position: relative;
        flex-shrink: 0;
    }

    .main-nav > ul > li {
        display: block;
    }

    /* Regular links (items without children) */
    .main-nav > ul > li > a {
        display: flex;
        align-items: center;
        height: 55px;
        padding: 0 20px;
        text-align: left;
        box-sizing: border-box;
    }

    /* Parent items: hide the direct link on mobile, show label instead */
    .main-nav > ul > li.has-children > a.menu-item-link {
        display: none;
    }

    /* Label for parent items (clickable to toggle submenu) */
    .main-nav > ul > li.has-children > .menu-item-label {
        display: flex;
        align-items: center;
        height: 55px;
        padding: 0 60px 0 20px;
        text-align: left;
        cursor: pointer;
        font-weight: 500;
        text-transform: uppercase;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
        box-sizing: border-box;
        margin: 0;
    }

    /* + / - indicator for parent items */
    .main-nav > ul > li.has-children > .menu-item-label::after {
        content: '+';
        position: absolute;
        right: 20px;
        top: 0;
        height: 55px;
        line-height: 55px;
        width: 30px;
        text-align: center;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--accent-color);
    }

    /* Change + to - when submenu is open */
    .main-nav > ul > li.has-children > .submenu-toggle:checked ~ .menu-item-label::after {
        content: '−';
    }

    /* Submenus - hidden by default */
    .main-nav ul ul {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid #f0f0f0;
        min-width: 0;
        width: 100%;
        background-color: #f9f9f9;
    }

    /* Show submenu when checkbox is checked */
    .main-nav li.has-children > .submenu-toggle:checked ~ ul {
        display: block;
    }

    /* Submenu items */
    .main-nav ul ul li {
        border-bottom: 1px solid #eee;
    }

    .main-nav ul ul li:last-child {
        border-bottom: none;
    }

    /* Submenu links */
    .main-nav ul ul > li > a {
        display: flex;
        align-items: center;
        height: 50px;
        padding: 0 20px 0 40px;
        font-size: 0.9rem;
        text-transform: none;
        box-sizing: border-box;
    }

    /* Nested submenu parent labels */
    .main-nav ul ul > li.has-children > .menu-item-label {
        display: flex;
        align-items: center;
        height: 50px;
        padding: 0 60px 0 40px;
        font-size: 0.9rem;
        text-transform: none;
        box-sizing: border-box;
        margin: 0;
    }

    .main-nav ul ul > li.has-children > .menu-item-label::after {
        height: 50px;
        line-height: 50px;
    }

    /* Third level submenu links */
    .main-nav ul ul ul > li > a {
        padding-left: 60px;
    }

    .main-nav ul ul ul > li.has-children > .menu-item-label {
        padding-left: 60px;
    }


    .featured-post .post-content {
        max-width: 100%;
        padding: 20px;
    }
    .featured-post .post-title { font-size: 1.8rem; }
    .post-grid { grid-template-columns: 1fr; }
    .full-post { padding: 20px; }
    .full-post .post-title { font-size: 2rem; }
    
    /* Adjust footer for mobile if needed */
    .main-footer .container small {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- UPDATED HERO LAYOUT --- */
.hero-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.main-slider {
    flex: 2; /* Takes up 2/3 of the space */
    height: 500px; /* Slightly taller for more impact */
}

/* --- TRENDING SIDEBAR STYLES --- */
.trending-sidebar {
    flex: 1; /* Takes up 1/3 of the space */
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 20px;
    height: 500px; /* Matches slider height */
    overflow-y: auto; /* Scroll if list is long */
}

.sidebar-title {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

.trending-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.trending-item:last-child {
    border-bottom: none;
}

.trending-thumb {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.trending-link {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
}

.trending-views, .trending-likes {
    font-size: 0.75rem;
    color: #888;
    display: inline-flex;
    align-items: center;
}

.trending-views i, .trending-likes i {
    font-size: 0.8rem;
    margin-right: 4px;
}

/* --- ENGAGEMENT BAR --- */
.engagement-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.share-actions, .metrics-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.2s, opacity 0.3s;
}

.share-icon:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.share-icon.facebook { background-color: #3b5998; }
.share-icon.twitter { background-color: #000; }
.share-icon.whatsapp { background-color: #25D366; }
.share-icon.telegram { background-color: #0088cc; }

.metric-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 4px;
    background: #f5f5f5;
    border: none;
    cursor: default;
}

.metric-item i {
    font-size: 1rem;
}

.like-btn {
    cursor: pointer;
    transition: color 0.3s, background-color 0.3s;
}

.like-btn:hover {
    background-color: #e0e0e0;
}

.like-btn.liked {
    color: var(--accent-color);
    background-color: rgba(8, 143, 143, 0.1);
}

.like-btn.liked i {
    animation: like-bounce 0.4s;
}

@keyframes like-bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* --- POST NAVIGATION --- */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    gap: 20px;
}

.prev-post, .next-post {
    flex: 1;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    max-width: 48%;
}

.prev-post:hover, .next-post:hover {
    background-color: #f9f9f9;
}

.nav-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.prev-post .nav-label::before {
    content: '← ';
}

.next-post .nav-label {
    text-align: right;
}

.next-post .nav-label::after {
    content: ' →';
}

.nav-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

.next-post .nav-title {
    text-align: right;
}

.prev-post.empty, .next-post.empty {
    border: none;
    pointer-events: none;
}

@media (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
    }
    .prev-post, .next-post {
        max-width: 100%;
    }
    .next-post .nav-label, .next-post .nav-title {
        text-align: left;
    }
}

@media (max-width: 992px) {
    .hero-wrapper {
        flex-direction: column !important;
        gap: 15px;
        align-items: stretch;
    }
    .hero-wrapper > .main-slider,
    .hero-wrapper > .trending-sidebar {
        width: 100%;
    }
    .main-slider {
        flex: none;
        height: auto;
    }
    .slider-wrapper {
        height: auto;
    }
    .slide {
        height: auto;
    }
    .slide img {
        height: auto;
        width: 100%;
        object-fit: cover;
    }
    .trending-sidebar {
        flex: none;
        height: auto;
        overflow: visible;
        margin-top: 0;
    }
}

/* =========================================
   ADDITIONS FOR CONTACT PAGE / FORMS / UI
   (Ported & Adapted from Admin CSS)
   ========================================= */

/* --- GRID & UTILITIES --- */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}
.col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding-right: 15px;
    padding-left: 15px;
}
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.p-4 { padding: 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: #6c757d; }
.text-primary { color: var(--accent-color); }
.text-danger { color: #dc3545; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 1rem; }
.shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important; }
.bg-white { background-color: #fff!important; }
.text-decoration-none { text-decoration: none!important; }

/* --- FORMS --- */
.form-group { margin-bottom: 1rem; }

label { 
    display: block; 
    margin-bottom: 0.5rem; 
    font-weight: 600; 
    color: #333;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(8, 143, 143, 0.25);
}

.input-group { 
    position: relative; 
    display: flex; 
    flex-wrap: wrap; 
    align-items: stretch; 
    width: 100%; 
}

.input-group-prepend { 
    display: flex; 
    margin-right: -1px; 
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.375rem 0 0 0.375rem;
}

.input-group > .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    margin-bottom: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.form-row { 
    display: flex; 
    flex-wrap: wrap; 
    margin-right: -5px; 
    margin-left: -5px; 
}

.form-row > .col, 
.form-row > [class*="col-"] { 
    padding-right: 5px; 
    padding-left: 5px; 
}

.col-md-6 { 
    flex: 0 0 50%; 
    max-width: 50%; 
}

/* --- CARDS --- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.25rem;
}

.card-header {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    background-color: rgba(0,0,0,.03);
    border-bottom: 1px solid rgba(0,0,0,.125);
}

.card-body { 
    flex: 1 1 auto; 
    padding: 1.25rem; 
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    font-family: inherit;
}

.btn-primary {
    color: #fff;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #066666; /* Darker accent */
    border-color: #066666;
    opacity: 0.9;
}

.btn-block { 
    display: block; 
    width: 100%; 
}

.btn-lg { 
    padding: 0.5rem 1rem; 
    font-size: 1.25rem; 
    line-height: 1.5; 
    border-radius: 0.3rem; 
}

/* --- ALERTS --- */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

/* --- RESPONSIVE ADJUSTMENTS FOR NEW CLASSES --- */
@media (max-width: 768px) {
    .col-lg-8, 
    .col-md-6 { 
        flex: 0 0 100%; 
        max-width: 100%; 
    }
}