/* Reset and Variables */
:root {
    --bg-color: #fcf7f1;
    --primary-orange: #f69c3a;
    --secondary-orange: #e58a2d;
    --dark-blue: #2c2a4a;
    --text-dark: #333333;
    --text-light: #777777;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

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

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-orange);
    padding: 10px 0;
}

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

.icon-btn {
    background: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.icon-btn:hover {
    transform: scale(1.05);
}

.ui-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    width: 400px;
    max-width: 50vw;
}

.search-input {
    border: none;
    padding: 10px 15px;
    flex-grow: 1;
    outline: none;
    font-family: var(--font-body);
}

.search-btn {
    background: var(--white);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

.search-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--white);
    margin-top: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.logo img {
    height: 60px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-orange);
}

/* Hero Section */
.hero {
    margin-bottom: 50px;
}

.hero-slider {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #000;
}

.hero-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    opacity: 0.8;
}

.hero-content {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    padding: 40px;
    width: 450px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slider-btn {
    position: absolute;
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

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

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

.tag {
    background: var(--primary-orange);
    color: var(--white);
    font-size: 10px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--dark-blue);
    margin-bottom: 15px;
    line-height: 1.3;
}

.meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 15px;
}

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

.meta-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.meta-divider {
    color: #ccc;
}

.hero-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

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

.btn-read-more {
    background: var(--primary-orange);
    color: var(--white);
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-read-more:hover {
    background: var(--secondary-orange);
}

.author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
}

.author-avatar {
    width: 30px;
    height: 30px;
    background: #e0e0e0;
    border-radius: 50%;
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Articles */
.post-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.post-content {
    padding: 30px;
}

.post-content h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--dark-blue);
    margin: 15px 0;
}

.post-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-number, .page-next {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--text-dark);
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.page-number.active {
    background: var(--dark-blue);
    color: var(--white);
}

.page-number:hover:not(.active), .page-next:hover {
    background: var(--primary-orange);
    color: var(--white);
}

/* Sidebar */
.widget {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.widget h3 {
    font-family: var(--font-heading);
    color: var(--dark-blue);
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.sidebar-search {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-search input {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: var(--bg-color);
    font-family: var(--font-body);
}

.btn-dark {
    background: var(--dark-blue);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-dark:hover {
    background: #1a1930;
}

.recent-posts-widget h3 {
    background: var(--bg-color);
    padding: 20px;
    margin: -30px -30px 20px -30px;
    border-radius: 8px 8px 0 0;
}

.recent-list {
    list-style: none;
}

.recent-list li {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.recent-list li:last-child {
    border-bottom: none;
}

.recent-list a {
    font-size: 14px;
    color: var(--text-light);
    transition: color 0.3s;
}

.recent-list a:hover {
    color: var(--primary-orange);
}

/* Partners Section */
.partners {
    text-align: center;
    margin-bottom: 60px;
}

.partners h2 {
    font-family: var(--font-heading);
    color: var(--dark-blue);
    margin-bottom: 30px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.partner-img {
    height: 60px;
    object-fit: contain;
}

.partners-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 14px;
    color: var(--text-light);
}

/* Welcome Section */
.welcome-section {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.welcome-content h2 {
    font-family: var(--font-heading);
    color: var(--dark-blue);
    margin-bottom: 15px;
}

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

/* Footer */
.site-footer {
    background-color: var(--primary-orange);
    color: var(--white);
    padding-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-col ul a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    opacity: 0.8;
}

.disclaimer {
    margin-top: 10px;
    font-size: 11px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Cookie Modal (Right Side) */
.cookie-modal {
    position: fixed;
    bottom: 30px;
    right: -400px;
    width: 320px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 25px;
    z-index: 9999;
    transition: right 0.5s ease-in-out;
    border-left: 5px solid var(--primary-orange);
}

.cookie-modal.show {
    right: 30px;
}

.cookie-content h4 {
    font-family: var(--font-heading);
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.cookie-content p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.cookie-content .btn-dark {
    width: 100%;
    padding: 10px;
    font-size: 13px;
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-orange);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 9000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-orange);
    transform: translateY(-3px);
}

.scroll-top .ui-icon {
    filter: brightness(0) invert(1);
}

/* Responsive */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .hero-content {
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        text-align: center;
    }
    .hero-content .meta {
        justify-content: center;
    }
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 20px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .search-container {
        width: 200px;
    }
    .cookie-modal.show {
        right: 50%;
        transform: translateX(50%);
        bottom: 20px;
        width: 90%;
    }
}
/* Inner page styles */
/* -----------------------------------
   NEW STYLES FOR INNER ARTICLE PAGE
------------------------------------ */

/* Post Header Elements */
.single-post {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 40px;
}

.post-header {
    margin-bottom: 25px;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--dark-blue);
    line-height: 1.2;
    margin: 15px 0;
}

/* Post Images */
.post-main-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.post-inline-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 30px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Typography (h1-h6, p, span) */
.post-content h1, 
.post-content h2, 
.post-content h3, 
.post-content h4, 
.post-content h5, 
.post-content h6 {
    font-family: var(--font-heading);
    color: var(--dark-blue);
    margin-top: 35px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-content h1 { font-size: 28px; }
.post-content h2 { font-size: 24px; border-bottom: 2px solid var(--primary-orange); padding-bottom: 10px; display: inline-block; }
.post-content h3 { font-size: 22px; }
.post-content h4 { font-size: 20px; }
.post-content h5 { font-size: 18px; }
.post-content h6 { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-orange); }

.post-content p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
}

.post-content span.text-highlight {
    background-color: var(--primary-orange);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Table of Contents */
.post-toc {
    background-color: var(--bg-color);
    border-left: 4px solid var(--primary-orange);
    padding: 25px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 35px;
}

.toc-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.post-toc ol {
    margin-left: 20px;
    padding: 0;
}

.post-toc li {
    margin-bottom: 10px;
}

.post-toc a {
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

.post-toc a:hover {
    color: var(--primary-orange);
    text-decoration: underline;
}

/* Lists (ul, ol) styles */
.post-content ul, 
.post-content ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.post-content ul li, 
.post-content ol li {
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.7;
}

.post-content ul {
    list-style-type: none;
}

.post-content ul li::before {
    content: "\2022";
    color: var(--primary-orange);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    font-size: 1.2em;
}

.post-content ol {
    counter-reset: custom-counter;
    list-style: none;
}

.post-content ol li {
    position: relative;
}

.post-content ol li::before {
    counter-increment: custom-counter;
    content: counter(custom-counter) ".";
    color: var(--primary-orange);
    font-weight: 700;
    font-family: var(--font-heading);
    position: absolute;
    left: -25px;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    margin: 30px 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.post-content th, 
.post-content td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.post-content th {
    background-color: var(--dark-blue);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
}

.post-content tr:nth-child(even) {
    background-color: var(--bg-color);
}

.post-content tr:hover td {
    background-color: rgba(246, 156, 58, 0.1);
}

/* Interlinking / Related Articles */
.related-articles-section {
    margin-bottom: 50px;
}

.related-articles-section h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--dark-blue);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-orange);
    padding-left: 15px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

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

.related-info {
    padding: 15px;
}

.related-info h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--dark-blue);
    margin: 0;
    line-height: 1.4;
}

/* Forms Generic Styles (Contact & Comments) */
.contact-form-section, .comments-section {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 40px;
}

.contact-form-section h3, .comments-section h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.contact-form-section p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 15px;
}

.styled-form .form-row {
    display: flex;
    gap: 20px;
}

.styled-form .form-group {
    margin-bottom: 20px;
    position: relative;
    width: 100%;
}

.styled-form .half {
    flex: 1;
}

.styled-form input[type="text"], 
.styled-form input[type="email"], 
.styled-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 15px;
    background-color: var(--bg-color);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.styled-form .input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.5;
}

.styled-form .input-icon + input {
    padding-left: 45px;
}

.styled-form input:focus, 
.styled-form textarea:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(246, 156, 58, 0.1);
}

.styled-form textarea {
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.form-checkbox label {
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
}

.btn-submit {
    background-color: var(--primary-orange);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-submit:hover {
    background-color: var(--secondary-orange);
    transform: translateY(-2px);
}

/* Responsive Adjustments for Inner Page */
@media (max-width: 768px) {
    .post-title {
        font-size: 24px;
    }
    .post-content h1 { font-size: 24px; }
    .post-content h2 { font-size: 20px; }
    .single-post {
        padding: 20px;
    }
    .styled-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    .post-toc {
        padding: 15px;
    }
}
.hero-slider {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.hero-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 600px;
    object-fit: cover;
    display: block;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.28) 45%,
            rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: min(450px, calc(100% - 160px));
    background: #fff;
    padding: 44px 40px;
    border-radius: 4px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.hero-content h1,
.hero-content h1 a {
    color: #151c3a;
    text-decoration: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.slider-btn:hover {
    transform: translateY(-50%) scale(1.06);
    background: #f4f4f4;
}

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

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

.slider-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .hero-slider {
        min-height: 520px;
    }

    .hero-image {
        min-height: 520px;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        top: auto;
        bottom: 24px;
        transform: none;
        width: auto;
        padding: 28px 24px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }
}