/* VARIABLES */
:root {
    --primary-color: #0033ff;
    --primary-hover: #0022cc;
    --bg-color: #f3f4f6;
    --white: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --footer-bg: #111111;
    --border-color: #e5e7eb;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

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

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

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

/* HEADER */
.site-header {
    background-color: var(--white);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: #000;
    letter-spacing: -0.5px;
    -webkit-text-stroke: 1px #000;
    color: transparent;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background-color: var(--primary-hover);
}

.action-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.main-nav {
    background-color: var(--primary-color);
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-list li a {
    display: block;
    color: var(--white);
    padding: 15px 10px;
    font-weight: 600;
    font-size: 15px;
}

.nav-list li a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* HERO SLIDER */
.hero-section {
    margin-top: 30px;
    margin-bottom: 40px;
}

.hero-slider {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    max-width: 800px;
}

.category-tag {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    font-weight: 600;
}

.post-meta.dark {
    color: var(--text-muted);
    justify-content: flex-start;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item img {
    width: 16px;
    height: 16px;
}

.meta-item .avatar {
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.hero-content .meta-item img {
    filter: brightness(0) invert(1);
}

.hero-content .meta-item .avatar {
    filter: none;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: rgba(0,0,0,0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-nav:hover {
    background: var(--primary-color);
}

.slider-nav img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

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

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

/* MAIN LAYOUT */
.main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* BLOG CARD */
.blog-card-horizontal {
    background: var(--white);
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.card-image {
    width: 45%;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    padding: 25px;
}

.card-info .tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.card-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 15px;
}

/* SIDEBAR */
.widget {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-form input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    outline: none;
}

.search-form input:focus {
    border-color: var(--primary-color);
}

.search-form button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--primary-hover);
}

/* YOU MISSED SECTION */
.missed-section {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.section-header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.section-title {
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: -2px;
    font-size: 20px;
}

.grid-4-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: block;
}

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

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

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 15px 15px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
    color: var(--white);
}

.grid-title {
    font-size: 15px;
    margin-top: 10px;
}

/* TRUST SECTION */
.trust-section {
    margin-bottom: 40px;
}

.trust-box {
    background: var(--white);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.trust-title {
    font-size: 24px;
    margin-bottom: 15px;
    display: inline-block;
    border-bottom: 2px solid #88ccff;
    padding-bottom: 5px;
}

.trust-img {
    height: 40px;
    margin: 20px auto;
}

.trust-text {
    font-size: 15px;
    color: var(--text-muted);
}

.trust-text a {
    color: #00bcd4;
    font-weight: 600;
}

/* WELCOME TEXT */
.welcome-section {
    margin-bottom: 40px;
    text-align: center;
}

.welcome-content {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.welcome-content h2 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.welcome-content p {
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* FOOTER */
.site-footer {
    background-color: var(--footer-bg);
    color: #aaaaaa;
    padding-top: 50px;
}

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

.disclaimer-text {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.disclaimer-text strong {
    color: var(--white);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    height: 30px;
    width: 30px;
}

.footer-logo span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    color: var(--white);
}

.footer-title {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: underline;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    background-color: #0a0a0a;
    padding: 20px 0;
    font-size: 13px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.legal-links a:hover {
    color: var(--white);
}

/* COOKIE MODAL */
.cookie-modal {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    border-left: 5px solid var(--primary-color);
    animation: slideInRight 0.5s ease forwards;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.cookie-content {
    padding: 20px;
}

.cookie-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.cookie-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.cookie-link {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .grid-4-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .blog-card-horizontal {
        flex-direction: column;
    }
    
    .card-image {
        width: 100%;
        height: 250px;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
    }
}

@media (max-width: 576px) {
    .grid-4-cols {
        grid-template-columns: 1fr;
    }
    
    .cookie-modal {
        width: calc(100% - 40px);
    }
}

/* Inner page styles */

/* INTERNAL PAGE STYLES */
.article-container {
    max-width: 900px;
    margin: 40px auto;
    background: var(--white);
    padding: 50px 60px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.single-article h1 {
    font-size: 40px;
    margin-bottom: 25px;
    color: var(--text-main);
    margin-top: 15px;
}

.single-article h2 {
    font-size: 30px;
    margin: 40px 0 20px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.single-article h3 {
    font-size: 24px;
    margin: 35px 0 15px;
    color: var(--text-main);
}

.single-article h4, 
.single-article h5, 
.single-article h6 {
    margin: 25px 0 15px;
    color: var(--text-main);
    font-size: 20px;
}

.single-article p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
}

.single-article span {
    color: var(--primary-color);
    font-weight: 700;
}

/* ARTICLE IMAGES */
.article-main-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 40px;
    object-fit: cover;
    max-height: 550px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-inline-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* TABLE OF CONTENTS */
.toc {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 5px solid var(--primary-color);
}

.toc h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: none;
}

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

.toc ul li {
    margin-bottom: 12px;
}

.toc ul li a {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.toc ul li a::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.toc ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* LISTS STYLES */
.single-article ul,
.single-article ol {
    margin-bottom: 30px;
    padding-left: 25px;
    color: var(--text-muted);
}

.single-article ul li,
.single-article ol li {
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 16px;
}

.single-article ul {
    list-style-type: square;
}

.single-article ol {
    list-style-type: decimal;
}

.single-article ul li::marker {
    color: var(--primary-color);
}

.single-article ol li::marker {
    color: var(--primary-color);
    font-weight: 700;
    font-family: var(--font-heading);
}

/* TABLE STYLES */
.single-article table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.single-article th, 
.single-article td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.single-article th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.single-article td {
    color: var(--text-muted);
    font-size: 15px;
}

.single-article tr:nth-child(even) td {
    background-color: var(--bg-color);
}

.single-article tr:last-child td {
    border-bottom: none;
}

/* CONTACT FORM IN ARTICLE */
.article-contact-form {
    background: var(--bg-color);
    padding: 40px;
    border-radius: 10px;
    margin: 50px 0;
    border: 1px solid var(--border-color);
}

.article-contact-form h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.article-contact-form p {
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    background-color: var(--white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 255, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

/* COMMENTS FORM */
.comments-section {
    margin-top: 60px;
    border-top: 2px dashed var(--border-color);
    padding-top: 50px;
}

.comments-title {
    font-size: 28px;
    margin-bottom: 30px;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comment-form .full-width {
    grid-column: span 2;
}

.btn-submit {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    font-family: var(--font-heading);
    display: inline-block;
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 51, 255, 0.3);
}

/* RESPONSIVE INTERNAL PAGE */
@media (max-width: 768px) {
    .article-container {
        padding: 30px 20px;
        margin: 20px auto;
        border-radius: 0;
    }
    
    .single-article h1 {
        font-size: 32px;
    }
    
    .single-article h2 {
        font-size: 26px;
    }

    .comment-form {
        grid-template-columns: 1fr;
    }
    
    .comment-form .full-width {
        grid-column: span 1;
    }

    .article-main-img {
        max-height: 350px;
    }

    .single-article table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
