@font-face {
    font-family: "UTM Avo";
    src: url("https://db.onlinewebfonts.com/t/5b5fcc354ed196046001a2db207984fa.woff2") format("woff2"),
        url("https://db.onlinewebfonts.com/t/5b5fcc354ed196046001a2db207984fa.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "UTM Avo";
    src: url("https://db.onlinewebfonts.com/t/20bb8bc4493eb04149666c5db61ebb52.woff2") format("woff2"),
        url("https://db.onlinewebfonts.com/t/20bb8bc4493eb04149666c5db61ebb52.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* 
  Theme: Chợ Xe Travel
  Colors: Black & Orange
  Style: Luxurious, Modern, Clean
*/

:root {
    --primary-color: #FF6600;
    --primary-glow: rgba(255, 102, 0, 0.4);
    --primary-dark: #cc5200;
    --bg-main: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #151515;
    --bg-glass: rgba(25, 25, 25, 0.7);
    --text-main: #f0f0f0;
    --text-muted: #aaaaaa;
    --border-color: #333333;

    --shadow-glow: 0 0 20px rgba(255, 102, 0, 0.15);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--theme-font-family, 'Inter', sans-serif);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

/* Utilities */
.text-orange {
    color: var(--primary-color);
}

.text-gradient {
    background: linear-gradient(90deg, var(--theme-primary-color), var(--theme-highlight-color)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: #e48b07 !important;
}
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.d-block {
    display: block;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #ff8533);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-main);
}

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

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-text:hover {
    gap: 10px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.header.scrolled {
    padding: 5px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition);
}

.header.scrolled .header-container {
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo-text {
    margin-left: 10px;
}

.logo-img {
    max-height: 50px;
    border-radius: 5px;
    mix-blend-mode: screen;
    /* Giúp logo jpg hòa trộn với nền đen tốt hơn nếu nền đen */
}

.footer-logo-img {
    max-height: 100px;
    border-radius: 8px;
    mix-blend-mode: screen;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.btn-book-nav {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
}

.btn-book-nav::after {
    display: none;
}

.btn-book-nav:hover {
    color: #fff;
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding-top: 80px;
}

.hero-title {
    font-size: 3.0rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    color: #ffffff !important;
    /* Force white text for readability on dark background */
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7) !important;
    /* Force light text for readability on dark background */
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions .btn-outline {
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.hero-actions .btn-outline:hover {
    background-color: #ffffff !important;
    color: #0a0a0a !important;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-actions .btn {
    min-width: 220px;
    text-align: center;
}

/* Policy Section */
.policy {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding: 0 0 80px 0;
}

.policy-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.policy-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.policy-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 102, 0, 0.3);
}

.policy-item.highlight {
    background: linear-gradient(145deg, var(--bg-card), rgba(255, 102, 0, 0.1));
    border-color: rgba(255, 102, 0, 0.2);
}

.policy-icon {
    font-size: 2.5rem;
    margin: 0 20px;
    width: 50px;
    float: left;
}

.policy-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.policy-item p {
    color: var(--text-muted);
}

.policy-item.highlight strong {
    color: var(--primary-color);
}

/* Section Header */
.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Services */
.service-slider {
    padding-bottom: 50px;
}

.service-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 102, 0, 0.2);
    border-color: rgba(255, 102, 0, 0.3);
}

.service-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-card), transparent);
}

.service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Vehicles */
.grid-vehicles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.vehicle-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    group: hover;
    cursor: pointer;
}

.v-img {
    height: 280px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.vehicle-card:hover .v-img {
    transform: scale(1.05);
}

.v-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(0);
}

.v-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Quality */
.quality-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.quality-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.quality-list li {
    display: flex;
    gap: 20px;
}

.q-icon {
    font-size: 2rem;
    background: rgba(255, 102, 0, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.1);
}

.q-text h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.q-text p {
    color: var(--text-muted);
}

.quality-image .img-placeholder {
    width: 100%;
    height: 600px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-glow);
    position: relative;
}

.quality-image .img-placeholder::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 2px dashed rgba(255, 102, 0, 0.3);
    border-radius: 30px;
    z-index: -1;
}

/* Destinations */
.destination-slider {
    padding-bottom: 60px;
}

.dest-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.dest-card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dest-card:hover img {
    transform: scale(1.05);
}

.dest-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.dest-info h3 {
    font-size: 1.2rem;
    margin: 0;
}

/* Booking */
.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 30px;
    overflow: hidden;
}

.booking-form-box {
    background: var(--bg-card);
    padding: 60px;
    position: relative;
}

.booking-form-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.form-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.form-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.hotline-box {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.hotline-text {
    font-size: 2rem;
    font-weight: 800;
    display: inline-block;
}

.map-box {
    min-height: 400px;
}

/* Footer */
.footer {
    background: #000;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-col p {
    color: var(--text-muted);
    max-width: 400px;
}

.contact-info li {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.contact-info strong {
    color: var(--text-main);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Custom Swiper Controls */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color) !important;
    background: rgba(10, 10, 10, 0.8);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px !important;
}

.swiper-pagination-bullet {
    background: var(--text-muted) !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Responsive */
@media (max-width: 992px) {

    .policy-wrapper,
    .quality-wrapper,
    .booking-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    .nav-list {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
        border-bottom: none;
    }

    .nav-list.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        border-bottom: 1px solid var(--primary-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        padding-top: 40px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .quality-image {
        display: none;
    }

    .booking-form-box {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
        /* Hide arrows on mobile to save space */
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .policy-item {
        padding: 25px 20px;
    }

    .logo-img {
        max-height: 40px;
    }
}

/* ---- Form Alert ---- */
.form-alert {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-alert--success {
    background: rgba(0, 200, 100, 0.15);
    border: 1px solid rgba(0, 200, 100, 0.4);
    color: #00c864;
}

.form-alert--error {
    background: rgba(255, 60, 60, 0.15);
    border: 1px solid rgba(255, 60, 60, 0.4);
    color: #ff4444;
}

/* ---- Date Input Styling ---- */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.6);
    cursor: pointer;
}

/* ---- Scroll Reveal Animation ---- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Menu Toggle Active Animation ---- */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ---- Submit button disabled state ---- */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   NEWS & ARTICLES STYLING
   ========================================================================== */

/* Page Headers */
.news-header,
.article-header {
    position: relative;
    padding: 120px 0 80px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.news-header {
    background-image: url('/images/choxetravel (12).jpg');
}

.article-header {
    background-image: url('/images/choxetravel (19).jpg');
    text-align: left;
    padding: 140px 0 80px 0;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0.95) 100%);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.article-meta-top {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
}

/* News Meta Badge */
.news-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: inline-block;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

/* 1. Grid Layout (Default & Layout 3) */
.news-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.15);
    border-color: rgba(255, 107, 0, 0.3);
}

.news-card-img {
    height: 230px;
    background-size: cover;
    background-position: center;
    display: block;
    position: relative;
    transition: transform 0.6s ease;
}

.news-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 50%, rgba(10, 10, 10, 0.5) 100%);
}

.news-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.news-card-title a:hover {
    color: var(--primary-color);
}

.news-card-sapo {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* 2. List Layout (Row formats) */
.news-list-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.news-row-item {
    display: flex;
    gap: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    align-items: center;
}

.news-row-item:hover {
    border-color: rgba(255, 107, 0, 0.25);
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.08);
}

.news-row-img {
    width: 150px;
    height: 110px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: block;
}

.news-row-content {
    flex-grow: 1;
}

.news-row-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.news-row-title a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.news-row-title a:hover {
    color: var(--primary-color);
}

.news-row-sapo {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.news-row-item.text-only {
    align-items: flex-start;
}

/* 3. Featured Split Layout */
.news-featured-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-glow);
}

.featured-img {
    height: 350px;
    background-size: cover;
    background-position: center;
    display: block;
}

.featured-content {
    padding: 35px;
}

.featured-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.featured-title a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.featured-title a:hover {
    color: var(--primary-color);
}

.featured-sapo {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
}

.featured-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-item {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 15px;
    transition: border-color 0.3s ease;
}

.side-item:hover {
    border-color: rgba(255, 107, 0, 0.2);
}

.side-img {
    width: 100px;
    height: 80px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: block;
}

.side-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.side-title {
    font-size: 1.05rem;
    line-height: 1.4;
    margin: 0;
}

.side-title a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.side-title a:hover {
    color: var(--primary-color);
}

/* Detail page grid layout */
.article-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.article-main-content {
    background: transparent;
}

/* Sapo lead paragraph block */
.article-sapo-box {
    background: rgba(255, 107, 0, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 15px 15px 0;
    padding: 25px 30px;
    margin-bottom: 35px;
    border-top: 1px solid rgba(255, 107, 0, 0.1);
    border-bottom: 1px solid rgba(255, 107, 0, 0.1);
    border-right: 1px solid rgba(255, 107, 0, 0.1);
}

.article-sapo-box p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
}

/* Body HTML tags styling */
/* Override and sanitize inline styles from copy-pasting external websites */
.html-content * {
    background: transparent !important;
    background-color: transparent !important;
    font-family: inherit !important;
    max-width: 100%;
}

.html-content p,
.html-content span,
.html-content div,
.html-content strong,
.html-content em,
.html-content i,
.html-content b {
    color: var(--text-color, #e2e8f0) !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
}

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

.html-content h1,
.html-content h2,
.html-content h3,
.html-content h4,
.html-content h5,
.html-content h6 {
    color: #ffffff !important;
    font-family: var(--theme-font-family, var(--font-display, 'Outfit', sans-serif)) !important;
    margin: 35px 0 15px 0;
    font-weight: 600;
}

.html-content h1 {
    font-size: 1.8rem;
}

.html-content h2 {
    font-size: 1.6rem;
}

.html-content h3 {
    font-size: 1.35rem;
}

.html-content img {
    height: auto !important;
    max-width: 100% !important;
    border-radius: 10px;
    margin: 15px 0;
}

.html-content ul,
.html-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.html-content li {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 8px;
    color: var(--text-muted);
}

/* Sidebar styling */
.sidebar-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

.sidebar-item-img {
    width: 75px;
    height: 60px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: block;
}

.sidebar-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-item-title {
    font-size: 0.95rem;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-item-title a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.sidebar-item-title a:hover {
    color: var(--primary-color);
}

/* ---- Responsive Styles for News layouts ---- */
@media (max-width: 991px) {
    .news-featured-layout {
        grid-template-columns: 1fr;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-box {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 576px) {
    .news-row-item {
        flex-direction: column;
        align-items: stretch;
    }

    .news-row-img {
        width: 100%;
        height: 180px;
    }
}

/* ==========================================================================
   DYNAMIC DROPDOWN MENU STYLING
   ========================================================================== */

/* Default Submenu styles (applied globally, optimized for Desktop hover dropdown) */
.nav-list .submenu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    min-width: 220px !important;
    background: #111111 !important;
    border: 1px solid var(--theme-border-color) !important;
    border-radius: 12px !important;
    padding: 12px 0 !important;
    margin-top: 5px !important;
    list-style: none !important;
    z-index: 9999 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), var(--shadow-glow) !important;
}

/* Hover show on Desktop */
@media (min-width: 769px) {
    .nav-list .nav-item-has-children {
        position: relative !important;
    }

    .nav-list .nav-item-has-children:hover>.submenu {
        display: block !important;
    }

    /* Small arrow on top of dropdown */
    .nav-list .submenu::before {
        content: '' !important;
        position: absolute !important;
        bottom: 100% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        border-width: 8px !important;
        border-style: solid !important;
        border-color: transparent transparent #111111 transparent !important;
    }
}

.menu-arrow {
    display: inline-block;
    font-size: 8px;
    margin-left: 5px;
    vertical-align: middle;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.nav-item-has-children:hover .menu-arrow {
    transform: rotate(180deg);
}

.submenu li {
    padding: 0 !important;
    margin: 0 !important;
}

.submenu-link {
    display: block !important;
    padding: 10px 20px !important;
    color: var(--theme-text-color) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border-left: 3px solid transparent !important;
    text-align: left !important;
}

.submenu-link:hover {
    background: rgba(255, 102, 0, 0.08) !important;
    color: var(--theme-primary-color) !important;
    border-left-color: var(--theme-primary-color) !important;
    padding-left: 24px !important;
}

/* Submenu layout on Mobile */
@media (max-width: 768px) {
    .nav-list .nav-item-has-children {
        width: 100% !important;
        text-align: center !important;
    }

    .nav-list .submenu {
        position: static !important;
        display: none !important;
        transform: none !important;
        box-shadow: none !important;
        background: rgba(0, 0, 0, 0.3) !important;
        margin: 5px 0 10px 0 !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        border-radius: 8px !important;
        width: 100% !important;
        min-width: 100% !important;
        padding: 5px 0 !important;
    }

    .nav-list .submenu.active {
        display: block !important;
    }

    .submenu-link {
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
        text-align: center !important;
    }

    .nav-item-has-children>.nav-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
    }
}