/* ===========================
   News/Article and Topic Page Styles
   =========================== */

/* Topic/Category Specific Styles */
.topic-intro {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.topic-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.topic-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #374151;
}

.topic-description p {
    margin-bottom: 1.5rem;
}

/* Article List Styles */
.article-list {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    padding: 2rem;
}

.article-list-item {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.article-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.article-list-content {
    display: flex;
    gap: 1.5rem;
}

.article-list-image {
    flex-shrink: 0;
    width: 200px;
}

.article-list-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    display: block;
}

.article-list-text {
    flex: 1;
}

.article-list-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-list-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

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

.article-list-excerpt {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-list-meta {
    display: flex;
    gap: 1.5rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.pagination-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.pagination-item {
    display: flex;
}

.pagination-link,
.pagination-current {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: var(--transition);
}

.pagination-link {
    background: white;
    color: var(--text-dark);
    border: 1px solid #e5e7eb;
}

.pagination-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-current {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* No Articles Message */
.no-articles {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

/* Tour List Styles */
.tour-list {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    padding: 2rem;
}

.tour-list-item {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.tour-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.tour-list-content {
    display: flex;
    gap: 1.5rem;
}

.tour-list-image {
    flex-shrink: 0;
    width: 200px;
}

.tour-list-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    display: block;
}

.tour-list-text {
    flex: 1;
}

.tour-list-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.tour-list-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

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

.tour-list-destinations {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tour-list-destinations strong {
    color: var(--text-dark);
}

.tour-list-meta {
    display: flex;
    gap: 1.5rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* No Tours Message */
.no-tours {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

/* Related News Widget */
.related-news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-news-item {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.related-news-item:hover {
    background: #f9fafb;
}

.related-news-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 0.25rem;
    object-fit: cover;
}

.related-news-content {
    flex: 1;
}

.related-news-title {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Tailor-made Section */
.tailor-made-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 0.5rem;
    padding: 2rem 1rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.tailor-made-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tailor-made-image {
    flex: 0 0 auto;
    max-width: 250px;
}

.tailor-made-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.tailor-made-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tailor-made-text h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-align: center;
}

.tailor-made-text p {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.4;
}

.tailor-made-cta {
    text-align: center;
}

.tailor-made-cta .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Ensure dropdown menus display on top in news pages */
.nav-dropdown {
    position: relative;
    z-index: 9999 !important;
}

.dropdown-menu {
    z-index: 99999 !important;
}

.nav-dropdown:hover>.dropdown-menu {
    z-index: 99999 !important;
}

/* Article Header */
.article-header {
    margin-bottom: 2rem;
}

.article-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-gray);
    font-size: 0.95rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-icon {
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Article Featured Image */
.article-featured-image {
    margin: 2rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.image-caption {
    background: var(--bg-light);
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    font-style: italic;
}

/* Article Table of Contents */
.table-of-contents {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.table-of-contents h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.25rem;
}

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

.toc-list li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.toc-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.toc-list a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    background-color: rgba(243, 244, 246, 0.5);
}

.toc-list a:hover {
    color: var(--primary-color);
    background-color: rgba(220, 38, 38, 0.1);
    padding-left: 1.25rem;
}

/* Article Page Content */
.page-content {
    padding: 2rem 0;
}

.page-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
    overflow-x: hidden;
}

.updated-date-box {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    padding: 0.35rem 2rem;
    margin-bottom: 2rem;
}

.updated-date-text {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.article-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 100%;
    overflow-x: hidden;
}

.article-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    padding: 2rem;
}

.article-tags-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.article-tags-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #6b7280;
}

.article-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.article-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.article-tag:hover {
    background: #dc2626;
    color: white;
}

.social-share-section {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.social-share-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-share-button-facebook {
    background: #1877f2;
    color: white;
}

.social-share-button-twitter {
    background: #1da1f2;
    color: white;
}

.social-share-button-pinterest {
    background: #e60023;
    color: white;
}

.social-share-button-linkedin {
    background: #0a66c2;
    color: white;
}

.social-share-button:hover {
    transform: translateY(-2px);
}

.social-share-icon {
    width: 20px;
    height: 20px;
}

.related-articles-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.related-articles-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.related-articles-grid {
    display: grid;
    gap: 1.5rem;
}

.related-article-link {
    display: block;
    padding: 1.25rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
}

.related-article-link:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transform: translateY(-2px);
}

.related-article-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-article-excerpt {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
}

.banner-ad-link {
    display: block;
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: transform 0.3s;
}

.banner-ad-link:hover {
    transform: scale(1.02);
}

.banner-ad-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content Base Styles */
.article-content {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #374151;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.875rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #1f2937;
    line-height: 1.4;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.article-content blockquote {
    border-left: 4px solid #dc2626;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #f9fafb;
    font-style: italic;
}

.article-content blockquote p {
    margin-bottom: 0;
}

.article-content a {
    color: #dc2626;
    text-decoration: underline;
}

.article-content a:hover {
    color: #b91c1c;
}

/* Article Table Styles */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
    border-radius: 0.5rem;
    overflow: hidden;
}

.article-content th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}

.article-content td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.article-content tbody tr:hover {
    background: var(--bg-light);
}

/* Key Takeaways Box */
.key-takeaways {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 2rem;
    border-radius: 0.5rem;
    margin: 2.5rem 0;
}

.key-takeaways h3 {
    margin-top: 0;
    color: var(--text-dark);
}

.key-takeaways ul {
    margin-bottom: 0;
}

/* Author Box */
.author-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 0.5rem;
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.author-title {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.author-bio {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Article Tags */
.article-tags {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.article-tags h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Social Share Buttons */
.social-share {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
}

.social-share h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

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

.share-btn.pinterest {
    background: #e60023;
    color: white;
}

.share-btn.linkedin {
    background: #0a66c2;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.related-articles h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.related-card-content {
    padding: 1.5rem;
}

.related-card-category {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.related-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.related-card-excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.related-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Article Sidebar */
.article-sidebar {
    position: relative;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.sidebar-widget h4 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Popular Posts Widget */
.popular-post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
}

.popular-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 0.375rem;
    object-fit: cover;
}

.popular-post-content {
    flex: 1;
}

.popular-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.popular-post-date {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Related Links Widget */
.related-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-link-item {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.related-link-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    transition: var(--transition);
    padding: 0.25rem 0;
}

.related-link:hover {
    color: var(--primary-color);
    padding-left: 0.25rem;
}

/* Sidebar Links */
.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 0.25rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-links li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    transition: var(--transition);
    padding: 0.25rem 0;
}

.sidebar-links a:hover {
    color: var(--primary-color);
    padding-left: 0.25rem;
}

/* Category Count Styles */
.category-count {
    color: var(--text-gray);
    font-size: 0.875rem;
    /* Equivalent to text-sm */
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
}

.cta-title {
    color: white;
    margin-bottom: 1rem;
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.cta-button {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* Banner Advertisement */
.banner-ad {
    margin-top: 3rem;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
}

.newsletter-widget h4 {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
}

.newsletter-form button {
    width: 100%;
    background: white;
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .article-sidebar {
        position: static;
        margin-top: 3rem;
    }

    /* Topic specific adjustments */
    .topic-title {
        font-size: 2rem;
    }

    .topic-description {
        font-size: 1rem;
    }

    .article-list-content {
        flex-direction: column;
    }

    .article-list-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 1rem auto;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.75rem;
        margin-top: 2rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

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

    /* Main grid to single column */
    .page-content>div>div {
        grid-template-columns: 1fr !important;
    }

    /* Topic specific mobile adjustments */
    .topic-intro {
        padding: 1.5rem;
    }

    .topic-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .article-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .article-list,
    .tour-list {
        padding: 1.5rem;
    }

    .article-list-item,
    .tour-list-item {
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .article-list-content,
    .tour-list-content {
        gap: 1rem;
    }

    .article-list-title,
    .tour-list-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .article-list-excerpt,
    .tour-list-destinations {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .tour-list-content {
        flex-direction: column;
    }

    .tour-list-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 1rem auto;
    }

    /* Tailor-made section mobile */
    .tailor-made-section {
        padding: 1.5rem 1rem;
        margin: 2rem auto;
    }

    .tailor-made-text h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .tailor-made-text p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .tailor-made-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .tailor-made-text {
        align-items: center;
        width: 100%;
    }

    .tailor-made-image {
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    .tailor-made-image img {
        max-width: 200px;
        height: auto;
    }

    .tailor-made-cta .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    /* Reduce padding on mobile */
    .page-content {
        padding: 1rem 0 !important;
    }

    .page-content .container {
        padding: 0 0.75rem !important;
    }

    /* Related news mobile */
    .related-news-item {
        padding: 0.5rem;
    }

    .related-news-image {
        width: 50px;
        height: 50px;
    }

    .related-news-title {
        font-size: 0.9rem;
    }

    /* Updated date box */
    .page-content>div>div:first-child {
        padding: 0.5rem 1rem !important;
        margin-bottom: 1rem !important;
    }

    /* Article card */
    .page-content article {
        padding: 1rem !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* Table of contents */
    .table-of-contents {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .table-of-contents h3 {
        font-size: 1.1rem !important;
    }

    /* Article content */
    .article-content {
        font-size: 1rem !important;
    }

    .article-content h2 {
        font-size: 1.5rem !important;
        margin-top: 2rem !important;
    }

    .article-content h3 {
        font-size: 1.25rem !important;
        margin-top: 1.5rem !important;
    }

    .article-content img {
        margin: 1.5rem 0 !important;
    }

    /* Tags section */
    .article-tags {
        margin-top: 2rem !important;
        padding-top: 1rem !important;
    }

    .article-tags h4 {
        font-size: 0.9rem !important;
    }

    /* Social share buttons */
    .social-share {
        padding: 1rem !important;
        margin-top: 2rem !important;
    }

    .social-share h4 {
        font-size: 1rem !important;
    }

    .social-share>div {
        flex-direction: column !important;
    }

    .social-share a {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.75rem 1rem !important;
    }

    /* Related articles */
    .related-articles {
        margin-top: 2rem !important;
        padding-top: 1.5rem !important;
    }

    .related-articles h3 {
        font-size: 1.25rem !important;
    }

    .related-articles a {
        padding: 1rem !important;
    }

    .related-articles a>div:first-child {
        font-size: 1rem !important;
    }

    .related-articles a>div:last-child {
        font-size: 0.875rem !important;
    }

    /* Sidebar */
    aside {
        margin-top: 2rem !important;
    }

    .sidebar-widget {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .sidebar-widget h4 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }

    /* Popular posts */
    .popular-post-item {
        margin-bottom: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .popular-post-item img {
        width: 70px !important;
        height: 70px !important;
    }

    .popular-post-item div div {
        font-size: 0.875rem !important;
    }

    /* Banner ad */
    .page-content>div>div:last-child {
        margin-top: 2rem !important;
    }
}

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

    .article-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }

    .popular-post-image {
        width: 60px;
        height: 60px;
    }

    /* Extra small screens */
    .page-content .container {
        padding: 0 0.5rem !important;
    }

    .page-content article {
        padding: 0.75rem !important;
    }

    .article-content {
        font-size: 0.95rem !important;
    }

    .article-content h2 {
        font-size: 1.35rem !important;
    }

    .article-content h3 {
        font-size: 1.15rem !important;
    }

    .popular-post-item img {
        width: 60px !important;
        height: 60px !important;
    }

    /* Topic specific extra small screen adjustments */
    .topic-intro {
        padding: 1rem;
    }

    .topic-title {
        font-size: 1.5rem;
    }

    .topic-description {
        font-size: 0.95rem;
    }

    .article-list {
        padding: 1rem;
    }

    .article-list-item {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .article-list-image {
        max-width: 100%;
    }

    .article-list-title {
        font-size: 1.1rem;
    }

    .article-list-excerpt {
        font-size: 0.9rem;
    }

    /* Tailor-made section extra small screens */
    .tailor-made-content {
        gap: 1rem;
    }

    .tailor-made-text h2 {
        font-size: 1.5rem;
    }

    .tailor-made-text p {
        font-size: 1.125rem;
    }

    .tailor-made-cta .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* ===========================================
   Tour Itinerary Overrides (common.css conflicts)
   =========================================== */

footer {
    color: #ffffff;
}

footer h3,
footer h4 {
    color: #ffffff;
}

footer p,
footer li,
footer .footer-section a,
footer .destinations-links a {
    color: rgba(255, 255, 255, 0.85);
}

footer .footer-section a:hover,
footer .destinations-links a:hover {
    color: #F5A623;
}

/* Prevent common.css mobile menu layout from breaking the drawer menu */
.mobile-drawer .mobile-menu {
    position: static;
    width: auto;
    height: auto;
    transform: none;
    box-shadow: none;
    background: transparent;
    overflow: visible;
    padding: 0;
    margin: 0;
}

/* Keep anchor targets from hiding behind the floating nav */
#tour-overview,
#highlights,
#itinerary,
#inclusions-exclusions,
#important-info {
    scroll-margin-top: 90px;
}

@media (max-width: 768px) {

    /* Allow floating anchor nav on mobile and make it scrollable */
    .floating-tour-navigation {
        display: block !important;
        top: 0;
    }

    .floating-tour-nav-menu,
    .tour-nav-menu {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .floating-tour-nav-menu::-webkit-scrollbar,
    .tour-nav-menu::-webkit-scrollbar {
        display: none;
    }

    .floating-tour-nav-menu a,
    .tour-nav-menu a {
        white-space: nowrap;
        font-size: 0.82rem;
        padding: 0.35rem 0.6rem;
    }
}