/* Global Styles & Resets */
/* ======================================== */
:root {
    --primary: #1a237e;
    --secondary: #ff5722;
    --dark: #121212;
    --light: #f5f5f5;
    --gray: #757575;
    --light-gray: #e0e0e0;
    --white: #ffffff;
    --black: #000000;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navigation */
/* ======================================== */
.header {
    background-color: var(--dark);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary);
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 9999;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

/* Navigation Menu */
.nav ul {
    display: flex;
    gap: 25px;
}

.nav ul li a {
    font-weight: 500;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav ul li a:hover::after,
.nav ul li.active a::after {
    width: 100%;
}

.nav ul li.active a {
    color: var(--secondary);
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 5px 10px;
    transition: var(--transition);
}

.search-box:hover {
    background: rgba(255, 255, 255, 0.15);
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 5px 10px;
    width: 180px;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box button {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    color: var(--secondary);
}

/* Main Content Generic Styles */
/* ======================================== */
.main-content {
    padding: 30px 0;
    min-height: calc(100vh - 300px);
}

/* Home Page Specific Styles */
/* ======================================== */
/* Hero Section */
.hero-section {
    margin-bottom: 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.hero-main .article-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hero-main .article-card .article-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 15px;
}

.hero-main .article-card .article-content {
    padding: 0 10px;
}

.hero-main .article-tag {
    background: var(--secondary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 10px;
}

.hero-main .article-card h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-main .article-card p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.secondary.article-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.secondary.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.secondary .article-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.secondary .article-content {
    padding: 15px;
}

.secondary .article-tag {
    background: var(--primary);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    display: inline-block;
    margin-bottom: 8px;
}

.secondary h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
}

.secondary .article-meta {
    color: var(--gray);
    font-size: 0.8rem;
}

/* Category Navigation */
.category-nav {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 15px;
}

.category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
}

.category-scroll::-webkit-scrollbar {
    height: 5px;
}

.category-scroll::-webkit-scrollbar-thumb {
    background: var(--light-gray);
    border-radius: 5px;
}

.cat-btn {
    background: var(--white);
    border: 1px solid var(--light-gray);
    color: var(--dark);
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-weight: 500;
}

.cat-btn:hover,
.cat-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* News Grid Section */
.news-grid .grid-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Basic News Card Styles */
.article-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.article-card .article-image {
    height: 210px;
    background-size: cover;
    background-position: center;
}

.article-card .article-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card .article-tag {
    background: var(--primary);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 8px;
}

.article-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
}

.article-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.article-meta {
    display: flex;
    gap: 12px;
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: auto;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.trending-widget,
.newsletter-widget,
.ad-widget,
.tags-widget {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.trending-widget h3,
.newsletter-widget h3,
.tags-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
    color: var(--primary);
}

.trending-widget ul li {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.trending-widget ul li:last-child {
    border-bottom: none;
}

.trending-widget ul li span {
    background: var(--primary);
    color: var(--white);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-right: 10px;
}

.trending-widget ul li a {
    font-weight: 500;
    transition: var(--transition);
    flex: 1;
}

.trending-widget ul li a:hover {
    color: var(--secondary);
}

.newsletter-widget p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.newsletter-widget form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-widget input {
    padding: 10px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-family: inherit;
}

.newsletter-widget button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-widget button:hover {
    background: #0d1a6b;
}

.ad-placeholder {
    height: 250px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-weight: 600;
    border: 2px dashed var(--light-gray);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f0f0f0;
    color: var(--dark);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: var(--white);
}

/* Category Page Styles */
/* ======================================== */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.category-title h1 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.category-title p {
    color: var(--gray);
    font-size: 1.1rem;
}

.category-filter select {
    padding: 8px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    background: var(--white);
    font-family: inherit;
    cursor: pointer;
}
.category-news {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}
.category-news .news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.category-article {
    display: flex;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.category-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-thumb {
    flex: 0 0 250px;
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-article:hover .article-thumb img {
    transform: scale(1.05);
}

.article-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-info .article-tag {
    align-self: flex-start;
    margin-bottom: 10px;
}

.article-info h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.article-info h2 a:hover {
    color: var(--secondary);
}

.article-info p {
    color: var(--gray);
    margin-bottom: 15px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.page-btn.prev,
.page-btn.next {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.page-btn.prev:hover,
.page-btn.next:hover {
    background: #0d1a6b;
}

/* Detail Page Styles */
/* ======================================== */
.breadcrumb {
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.article-detail .article-header {
    margin-bottom: 25px;
}

.article-detail .article-tag {
    background: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
}

.article-detail h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 700;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--gray);
    font-size: 0.9rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-image {
    border-radius: 10px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
    padding: 10px;
    font-style: italic;
}

.article-content {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 1.6rem;
    margin: 30px 0 15px;
    color: var(--primary);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 8px;
}

.article-content ul {
    margin: 15px 0 25px 30px;
    list-style: disc;
}

.article-content ul li {
    margin-bottom: 8px;
}

.quote-block {
    background: #f8f9fa;
    border-left: 4px solid var(--secondary);
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.quote-author {
    margin-top: 10px;
    font-weight: 600;
    font-style: normal;
    color: var(--primary);
}

.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.article-tags span {
    font-weight: 600;
    margin-right: 10px;
}

.article-tags a {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-right: 5px;
    display: inline-block;
    margin-bottom: 5px;
}

.article-tags a:hover {
    background: var(--primary);
    color: var(--white);
}

.article-footer {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.share-buttons {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.share-buttons h4 {
    margin-bottom: 15px;
    color: var(--dark);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.facebook {
    background: #3b5998;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.link {
    background: #f0f0f0;
    color: var(--dark);
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.author-box {
    display: flex;
    gap: 20px;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.author-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.author-social a {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    text-align: center;
    line-height: 30px;
    margin-right: 8px;
    transition: var(--transition);
}

.author-social a:hover {
    background: var(--secondary);
}

.related-articles {
    margin-bottom: 40px;
}

.related-articles h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
    color: var(--primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-image {
    height: 140px;
    background-size: cover;
    background-position: center;
}

.related-content {
    padding: 15px;
}

.related-content h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.related-content span {
    color: var(--gray);
    font-size: 0.8rem;
}

/* Comments Section */
.comments-section {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.comments-section h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.comment-form {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--light-gray);
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 15px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-submit:hover {
    background: #0d1a6b;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment {
    display: flex;
    gap: 15px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
}

.comment-date {
    color: var(--gray);
    font-size: 0.85rem;
}

.comment p {
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-actions button {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.comment-actions button:hover {
    color: var(--primary);
}

/* Legal Pages Generic Styles */
/* ======================================== */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.legal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-gray);
}

.legal-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.last-updated {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.privacy-notice {
    background: #f8f9ff;
    border-left: 4px solid var(--primary);
    padding: 15px;
    border-radius: 0 5px 5px 0;
    margin: 20px 0;
}

.legal-content {
    line-height: 1.7;
}

.legal-content h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.legal-content h3:first-of-type {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 15px;
    color: #444;
}

.legal-content ul {
    margin: 15px 0 25px 30px;
    list-style: disc;
}

.legal-content ul li {
    margin-bottom: 10px;
}

.legal-content strong {
    color: var(--dark);
    font-weight: 600;
}

.toc-container {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid var(--light-gray);
}

.toc-container h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary);
}

.toc-container p {
    margin: 8px 0;
    text-align: center;
}

.toc-container a {
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.toc-container a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.title {
    margin: 30px 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
}

.title::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.anchor-link {
    float: left;
    margin-left: -20px;
    margin-top: 5px;
    color: var(--gray);
    opacity: 0;
    transition: var(--transition);
    text-decoration: none;
}

.anchor-link:hover {
    color: var(--secondary);
    text-decoration: none;
}

.title:hover .anchor-link {
    opacity: 1;
}

.highlight {
    background: #fff9e6;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 500;
}

/* Enhanced Legal Page Styles */
.legal-content b {
    color: var(--primary);
    font-weight: 600;
}

.legal-content strong {
    color: var(--dark);
    font-weight: 700;
}

.legal-content em {
    font-style: italic;
    color: #555;
}

.legal-content a {
    color: var(--secondary);
    text-decoration: underline;
    transition: var(--transition);
}

.legal-content a:hover {
    color: var(--primary);
    text-decoration: none;
}

.mm {
    color: var(--secondary);
    font-weight: 600;
}

/* Footer */
/* ======================================== */
.footer {
    background: var(--dark);
    color: var(--light);
    padding:10px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--white);
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.footer-col p {
    color: #bbb;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bbb;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.app-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    transition: var(--transition);
}

.app-btn:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.app-btn i {
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    color: #bbb;
    font-size: 0.9rem;
}

/* Responsive Design */
/* ======================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .news-grid .grid-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Navigation Adjustments */
    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        padding: 0 20px;
        gap: 0;
    }

    .nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav ul li a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
    }

    .search-box {
        margin: 15px 20px;
        width: calc(100% - 40px);
    }

    .search-box input {
        width: 100%;
    }

    /* Content Area Adjustments */
    .articles-container {
        grid-template-columns: 1fr;
    }

    .category-article {
        flex-direction: column;
    }

    .article-thumb {
        flex: 0 0 200px;
        width: 100%;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .comment {
        flex-direction: column;
    }

    /* Mobile Margin Optimization */
    .header .container,
    .main-content .container,
    .footer .container {
        padding: 0 5px;
    }

    .article-detail .article-header,
    .article-content,
    .article-footer,
    .comments-section,
    .legal-page {
        padding: 20px;
    }

    .hero-main .article-card .article-image {
        height: 250px;
    }

    .hero-main .article-card h2 {
        font-size: 1.6rem;
    }

    .article-detail h1 {
        font-size: 1.8rem;
    }

    .category-title h1 {
        font-size: 1.8rem;
    }
    .category-news {
        grid-template-columns: 1fr;
    }
    
    .legal-container {
        padding: 25px;
        margin: 20px 10px;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .toc-container {
        padding: 15px;
    }
    
    .title {
        padding: 15px 0;
        position: relative;
    }
    
    .title::before {
        left: -8px;
        width: 3px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }

    .hero-side {
        gap: 15px;
    }

    .secondary .article-image {
        height: 180px;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .share-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .share-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        margin-right: 5px;
    }

    .share-btn span {
        display: none;
    }
    
    .anchor-link {
        margin-left: -18px;
        font-size: 0.9rem;
    }

    .pagination {
        gap: 5px;
    }

    .page-btn {
        min-width: 35px;
        height: 35px;
        padding: 0 10px;
        font-size: 0.9rem;
    }
}

/* Animations & Interactive Effects */
/* ======================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Loading Animation */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Button Hover Effects */
.btn-hover {
    position: relative;
    overflow: hidden;
}

.btn-hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hover:hover::after {
    width: 300px;
    height: 300px;
}

@media screen and (max-width:768px) {
    .hero-grid,.articles-container,.sidebar,.category-news .news-list{
        gap: 10px !important;
    }
    .main-content{
        padding: 10px 0 !important;
    }
    p{
        margin-bottom: 0 !important;
    }
}