/* =====================================
   VALERIA VILLAS BLOG STYLES
===================================== */

/* BLOG PAGE */

body {
    background: #000000;
}
.blog-hero,
.blog-controls,
.blog-grid,
.load-more-container{
    max-width:1700px;
    margin:auto;
}

/* BLOG NAVBAR */

body.blog-page .navbar{
    position:fixed;
    top:0;
    left:0;
    width:100dvw;
    z-index:9999;
    background:transparent;
    padding-top: 2rem;
    padding-right: 7%;
    transition:background .4s ease;
}

body.blog-page .logo-wrapper{
    background:#E6A250;
    transition:all .4s ease;
}

body.blog-page .nav-scroll .logo-wrapper{
    background:#E6A250 !important;
}

body.blog-page .navbar .nav-link{
    color:#ffffff;
}

body.blog-page .nav-scroll{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    width:100% !important;
    background:#E6A250 !important;
    transform:none !important;
    padding-top:0 !important;
    padding-right:72px !important;
}

body.blog-page .nav-scroll .nav-link{
    color:#ffffff;
}

/* =====================================
BLOG PAGE LEFT PANEL OVERRIDES
===================================== */

body.blog-page .left-panel{
    background:#E6A250;
    transition:all .4s ease;
}

body.blog-page .social-left{
    background:#E6A250;
    transition:all .4s ease;
}

body.blog-page .social-left li a{
    color:#ffffff;
    border:1px solid #ffffff;
}

/* AFTER SCROLL */

body.blog-page .left-panel.panel-scroll{
    background:#000000;
}

body.blog-page .left-panel.panel-scroll .social-left{
    background:#000000;
}

body.blog-page .left-panel.panel-scroll .social-left li a{
    color:#afaeae;
    border:1px solid #afaeae;
}

.hero-corner,
.hero-corner3{
    z-index:10;
}

/* =====================================
   FEATURED ARTICLE SECTION
===================================== */

.blog-hero{
    padding-top:120px;
    padding-right:5%;
    padding-bottom:2%;
    padding-left:120px;
}

.featured-article{
    display:grid;
    grid-template-columns:1.2fr 1fr;
    gap:80px;
    align-items:center;
}

.featured-article img {
    max-height: 600px;
    width: 100%;
    display: block;
    object-fit: cover;
}

.featured-content {
    padding: 20px;
    max-width:600px;
    margin-top: -40px;
}

.featured-content h1 {
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.featured-content p {
    color: #afaeae;
    line-height: 1.8em;
    margin-bottom: 25px;
}

.category {
    display: inline-block;
    color: #E6A250;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    background: #01674E;
    color: #ffffff;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: #E6A250;
    color: #ffffff;
}

/* =====================================
   SEARCH & FILTERS
===================================== */

.blog-controls {
    padding-top:0;
    padding-right:5%;
    padding-bottom:4%;
    padding-left:240px;
    margin-top: 3.5%;
    position:relative;
    z-index:20;    
}

.blog-search {
    width: 100%;
    background: #111111;
    border: 1px solid #323232;
    color: #ffffff;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.blog-search:focus {
    outline: none;
    border-color: #E6A250;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-filters button {
    background: transparent;
    border: 1px solid #01674E;
    color: #01674E;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-filters button:hover {
    background: #01674E;
    color: #ffffff;
}

.blog-filters button.active {
    background: #01674E;
    color: #ffffff;
}

/* =====================================
   ARTICLE GRID
===================================== */

.blog-grid {
    padding-top:4%;
    padding-right:5%;
    padding-bottom:4%;
    padding-left:120px;
    display:grid;
    gap:30px;
}

.blog-card {
    background: #000000;
    border: 1px solid #323232;
    overflow: hidden;
    transition: all 0.4s ease;
}

.blog-card:hover {
    border-color: #E6A250;
    transform: translateY(-5px);
}

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

.blog-card-content {
    padding: 25px;
}

.blog-card-content h3 {
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.blog-card-content p {
    color: #afaeae;
    line-height: 1.7em;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding-top: 15px;
    border-top: 1px solid #323232;
    color: #afaeae;
}

.blog-card a {
    color: #01674E;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Oswald', sans-serif;
    transition: all 0.3s ease;
}

.blog-card a:hover {
    color: #E6A250;
}

/* =====================================
   LOAD MORE BUTTON
===================================== */

.load-more-container {
    text-align: center;
    padding: 4% 0 6% 0;
}

.load-more {
    background: #01674E;
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more:hover {
    background: #E6A250;
}

/* =====================================
ARTICLE PAGE
===================================== */

.reading-progress{
    position:fixed;
    top:0;
    left:0;
    width:0;
    height:4px;
    background:#E6A250;
    z-index:99999;
}

.article-hero{
    position:relative;
    width:100%;
    height:75vh;
    min-height:600px;
    overflow:hidden;
}

.article-intro{
    font-size:26px;
    line-height:1.8;
    color:#ffffff;
    margin-bottom:60px;
    font-weight:300;
}

.article-hero img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.hero-overlay{
    justify-content:flex-end;
    padding-bottom:100px;
    position:absolute;
    inset:0;
    background:linear-gradient(
    to top,
    rgba(0,0,0,0.90),
    rgba(0,0,0,0.30));
    display:flex;
}

.hero-content{
    max-width:900px;
    margin:0 auto;
    width:100%;
    padding:0 30px;
}

.hero-content .category{
    display:inline-block;
    margin-bottom:20px;
}

.hero-content .article-title{
    margin-bottom:30px;
}

.article-container{
    max-width:900px;
    margin:auto;
    padding:100px 40px;
}

.article-title{
    color:#ffffff;
    font-family:'Oswald',sans-serif;
    text-transform:uppercase;
    font-size:4rem;
    line-height:1.1;
    margin-bottom:30px;
}

.article-info{
    display:flex;
    gap:30px;
    color:#afaeae;
    margin-bottom:60px;
    flex-wrap:wrap;
}

.article-content{
    margin-top:40px;
}

.article-content p{
    color:#d7d7d7;
    font-size:18px;
    line-height:2.2;
    margin-bottom:35px;
}

.article-content h2{
    font-size:40px;
    letter-spacing:2px;
    text-transform:uppercase;
    color:#ffffff;
    margin-top:80px;
    margin-bottom:25px;
}

.article-content h3{
    color:#E6A250;
    margin-top:50px;
    margin-bottom:20px;
}

.article-quote{
    border-left:4px solid #E6A250;
    padding-left:30px;
    margin:60px 0;
    font-size:28px;
    color:#ffffff;
    font-style:italic;
}

.article-engagement{
    display:flex;
    gap:40px;
    margin-top:60px;
    padding-top:30px;
    border-top:1px solid #323232;
    color:#afaeae;
    font-size:18px;
}

.related-articles{
    padding:120px 5%;
    border-top:1px solid #323232;
}

.related-articles h2{
    color:#ffffff;
    font-family:'Oswald',sans-serif;
    margin-bottom:50px;
}

.related-articles .blog-grid{
    grid-template-columns:repeat(3,1fr);
}

.article-share{
    display:flex;
    gap:15px;
    margin-bottom:40px;
}

.article-share a{
    width:50px;
    height:50px;
    line-height:50px;
    text-align:center;
    border:1px solid #afaeae;
    border-radius:50%;
    color:#afaeae;
    font-size:18px;
    transition:.4s;
}

.article-share a:hover{
    color:#E6A250;
    border-color:#E6A250;
}

/* =====================================
COMMENTS SECTION
===================================== */

.comments-section{
    max-width:1000px;
    margin:auto;
    padding:100px 30px;
}

.comment-form{
    margin-top:60px;
}

.comment-form input,
.comment-form textarea{
    width:100%;
    background:#111111;
    border:1px solid #323232;
    color:#ffffff;
    padding:18px 20px;
    margin-bottom:20px;
    font-family:'Didact Gothic',sans-serif;
}

.comment-form textarea{
    min-height:220px;
    resize:vertical;
}

.comment-form input:focus,
.comment-form textarea:focus{
    border-color:#E6A250;
}

.comment-submit{
    background:#01674E;
    color:#ffffff;
    padding:15px 35px;
    border:none;
    cursor:pointer;
    text-transform:uppercase;
    letter-spacing:2px;
    transition:all .3s ease;
}

.comment-submit:hover{
    background:#E6A250;
}

.comments-list{
    margin-top:80px;
}

.comments-list h3{
    color:#ffffff;
    margin-bottom:40px;
}

.comment-card{
    border:1px solid #1f1f1f;
    padding:30px;
    margin-bottom:25px;
    background:#050505;
    transition:.3s;
}

.comment-card:hover{
    border-color:#E6A250;
}

.comment-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
    flex-wrap:wrap;
}

.comment-header h4{
    color:#ffffff;
    margin-bottom:0;
}

.comment-header span{
    color:#afaeae;
}

.comment-card p{
    margin-bottom:0;
}

/* =====================================
AUTHOR BOX
===================================== */

.author-box{
    max-width:1000px;
    margin:auto;
    padding:80px 30px;
}

.author-box h3{
    color:#ffffff;
    margin-bottom:30px;
}

.author-content{
    display:flex;
    gap:30px;
    align-items:center;
    background:#0a0a0a;
    border:1px solid #323232;
    padding:40px;
}

.author-avatar{
    width:100px;
    height:100px;
    border-radius:50%;
    background:#01674E;
    color:#ffffff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    font-size:32px;
}

.author-details h4{
    color:#ffffff;
    margin-bottom:10px;
}

.author-details p{
    color:#afaeae;
    margin-bottom:0;
}

/* =====================================
COMMENT REPLIES
===================================== */

.reply-button{
    margin-top:15px;
    background:none;
    border:none;
    color:#E6A250;
    cursor:pointer;
    padding:0;
}

.reply-button:hover{
    color:#01674E;
}

.comment-replies{
    margin-top:25px;
    margin-left:40px;
}

.reply-card{
    padding:25px;
    border-left:3px solid #323232;
    background:#050505;
}

.admin-reply{
    border-left:3px solid #01674E;
}

.admin-reply{
    background:#0b1412;
}

.admin-badge{
    background:#01674E;
    color:#ffffff;
    padding:4px 10px;
    border-radius:20px;
    font-size:11px;
    margin-left:10px;
}

/* =====================================
ADMIN LOGIN
===================================== */

.admin-login-wrapper{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:url('../images/login-bg.webp');
    background-size:cover;
    background-position:center;
    position:relative;
}

.admin-logo{
    width:180px;
    display:block;
    margin:0 auto 30px;
}

.admin-login-card{
    width:100%;
    max-width:500px;
    padding:60px;
    position:relative;
    z-index:2;
    background:rgba(10,10,10,.35);
    backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,.15);
    box-shadow:
    0 20px 40px rgba(0,0,0,.4);
}

.admin-login-card h2{
    color:#ffffff;
    text-align:center;
    margin-bottom:10px;
}

.admin-login-card p{
    color:#afaeae;
    text-align:center;
    margin-bottom:40px;
}

.admin-login-card input{
    width:100%;
    padding:15px;
    background:#111111;
    border:1px solid #323232;
    color:#ffffff;
    margin-bottom:20px;
}

.admin-login-card button{
    width:100%;
    padding:18px;
    background:#01674E;
    border:none;
    color:#ffffff;
    letter-spacing:3px;
    text-transform:uppercase;
    transition:.3s;
}

.admin-login-card button:hover{
    background:#E6A250;
}

/* =====================================
DASHBOARD
===================================== */

.dashboard{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:280px;
    background:#050505;
    border-right:1px solid #323232;
    padding:40px 20px;
}

.sidebar h2{
    color:#ffffff;
    margin-bottom:40px;
}

.sidebar ul{
    list-style:none;
    padding:0;
}

.sidebar li{
    color:#afaeae;
    margin-bottom:20px;
    cursor:pointer;
}

.sidebar li:hover{
    color:#E6A250;
}

.dashboard-content{
    flex:1;
    padding:50px;
}

.dashboard-content h1{
    color:#ffffff;
    margin-bottom:40px;}

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

.stat-card{
    background:#0a0a0a;
    border:1px solid #323232;
    padding:30px;
}

.stat-card h3{
    color:#E6A250;
}

.stat-card p{
    color:#afaeae;
}

.new-article-btn{
    display:inline-block;
    margin-top:40px;
    background:#01674E;
    color:#ffffff;
    padding:15px 30px;
}

.new-article-btn:hover{

    background:#E6A250;
}

/* =====================================
ARTICLE EDITOR
===================================== */

.article-editor{
    max-width:1100px;
}

.editor-group{
    margin-bottom:30px;
}

.editor-group label{
    display:block;
    color:#ffffff;
    margin-bottom:10px;
}

.editor-group input,
.editor-group select,
.editor-group textarea{
    width:100%;
    background:#111111;
    border:1px solid #323232;
    color:#ffffff;
    padding:15px;
}

.editor-group textarea{
    min-height:120px;
}

.article-content-editor{
    min-height:600px;
    background:#111111;
    border:1px solid #323232;
    padding:20px;
    color:#ffffff;
    overflow-y:auto;
}

.article-content-editor table{
    width:100%;
    border-collapse:collapse;
    margin:30px 0;
}

.article-content-editor th{
    background:#01674E;
    color:#ffffff;
    padding:12px;
    border:1px solid #323232;
}

.article-content-editor td{
    border:1px solid #323232;
    padding:12px;
    color:#ffffff;
}

.editor-actions{
    display:flex;
    gap:20px;
    margin-top:40px;
}

.draft-btn{
    background:#E6A250;
    color:#ffffff;
    border:none;
    padding:15px 30px;
    cursor:pointer;
}

.publish-btn{
    background:#01674E;
    color:#ffffff;
    border:none;
    padding:15px 30px;
    cursor:pointer;
}

.publish-btn:hover{
    background:#E6A250;
}

/* =====================================
EDITOR TOOLBAR
===================================== */

.editor-toolbar{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:15px;
}

.editor-toolbar button{
    background:#111111;
    border:1px solid #323232;
    color:#ffffff;
    padding:10px 15px;
    cursor:pointer;
    transition:.3s;
}

.editor-toolbar button:hover{
    border-color:#E6A250;
    color:#E6A250;
}

.image-preview{
    margin-top:20px;
    height:250px;
    border:1px dashed #323232;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#afaeae;
    background:#050505;
}

.seo-header{
    display:flex;
    justify-content:space-between;
    margin-bottom:10px;
}

.seo-header span{
    color:#E6A250;
}

.preview-btn{
    background:#323232;
    color:#ffffff;
    border:none;
    padding:15px 30px;
    cursor:pointer;
}

/* =====================================
ARTICLE TABLES
===================================== */

.article-content table{
    width:100%;
    border-collapse:collapse;
    margin:50px 0;
    background:#050505;
}

.article-content th{
    background:#01674E;
    color:#ffffff;
    padding:15px;
    text-align:left;
    border:1px solid #323232;
}

.article-content td{
    padding:15px;
    color:#d7d7d7;
    border:1px solid #323232;
}

.article-content tr:hover{
    background:#111111;
}

.article-content ul,
#previewContent ul{
    padding-left:30px;
    margin:30px 0;
}

.article-content li,
#previewContent li{
    color:#d7d7d7;
    margin-bottom:12px;
    line-height:1.8;
}

.article-content-editor h2{
    color:#ffffff;
    margin:40px 0 20px;
    font-size:36px;
}

.article-content-editor h3{
    color:#E6A250;
    margin:30px 0 15px;
}

.article-content-editor ul{
    padding-left:25px;
}

.article-content-editor li{
    margin-bottom:10px;
    color:#ffffff;
}

.article-content-editor .article-quote{
    border-left:4px solid #E6A250;
    padding-left:25px;
    margin:30px 0;
    color:#ffffff;
    font-style:italic;
}

/* =====================================
EDITOR MODALS
===================================== */

.editor-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.8);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:99999;
}

.editor-modal-content{
    background:#050505;
    border:1px solid #323232;
    padding:40px;
    width:400px;
}

.editor-modal-content h3{
    color:#ffffff;
    margin-bottom:20px;
}

.editor-modal-content label{
    color:#ffffff;
    display:block;
    margin-bottom:10px;
}

.editor-modal-content input{
    width:100%;
    background:#111111;
    border:1px solid #323232;
    color:#ffffff;
    padding:12px;
    margin-bottom:20px;
}

.editor-modal-content button{
    background:#01674E;
    color:#ffffff;
    border:none;
    padding:12px 25px;
}

/* =====================================
LIVE PREVIEW
===================================== */

.editor-layout{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:start;
}

.live-preview{
    background:#050505;
    border:1px solid #323232;
    padding:40px;
    min-height:800px;
    position:sticky;
    top:30px;
}

.preview-category{
    color:#E6A250;
    text-transform:uppercase;
    letter-spacing:2px;
}

#previewTitle{
    color:#ffffff;
    font-family:'Oswald',sans-serif;
    margin:25px 0;
    font-size:42px;
    line-height:1.2;
}

#previewContent{
    color:#d7d7d7;
    line-height:2;
}

#previewContent h2{
    color:#ffffff;
    margin-top:50px;
    margin-bottom:20px;
}

#previewContent h3{
    color:#E6A250;
    margin-top:40px;
}

#previewContent table{
    width:100%;
    border-collapse:collapse;
    margin:30px 0;
}

#previewContent th{
    background:#01674E;
    color:#ffffff;
    padding:12px;
}

#previewContent td{
    border:1px solid #323232;
    padding:12px;
}

/* =====================================
ALL ARTICLES PAGE
===================================== */

.articles-hero{
    padding:120px 5% 60px;
    text-align:center;
}

.articles-hero h1{
    color:#ffffff;
    font-size:4rem;
    margin-top:20px;
}

.articles-controls{
    padding:0 5% 60px;
}

.articles-topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
}

.view-toggle{
    display:flex;
    gap:10px;
}

.view-toggle button{
    background:#111111;
    border:1px solid #323232;
    color:#ffffff;
    padding:10px 20px;
    cursor:pointer;
}

.view-toggle button.active{
    border-color:#E6A250;
    color:#E6A250;
}

.pagination{
    display:flex;
    justify-content:center;
    gap:10px;
    padding:80px 0;
}

.pagination button{
    background:#111111;
    border:1px solid #323232;
    color:#ffffff;
    padding:12px 18px;
    cursor:pointer;
}

.pagination button.active{
    background:#01674E;
}

/* =====================================
   DESKTOP
   1200px+
===================================== */

@media (min-width: 1200px) {
    .blog-hero{
        padding-left:120px;
    }

    .blog-controls{
        padding-left:120px;
    }

    .blog-grid{
        padding-left:120px;
    }

    .featured-article{
        display:grid;
        grid-template-columns:1.2fr 1fr;
        gap:80px;
        align-items:center;
    }

    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .featured-content h1 {
        font-size: 3.2rem;
        letter-spacing: 3px;
    }

    .featured-article img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    }

}

/* =====================================
   TABLET
   600px - 1200px
===================================== */

@media (min-width: 600px) and (max-width: 1200px) {
    .blog-hero,
    .blog-controls,
    .blog-grid{
        padding-left:40px;
        padding-right:40px;
    }

    .featured-article{
    display:flex;
    flex-direction:column;
    gap:50px;
    }

    .left-panel{
        display:none;
    }

    

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-content h1 {
        font-size: 38px;
        letter-spacing: 2px;
    }

    .article-content table{
    display:block;
    overflow-x:auto;
    }

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

    .articles-topbar{
        flex-direction:column;
        align-items:flex-start;
    }

}

/* =====================================
   MOBILE
   BELOW 600px
===================================== */

@media (max-width: 600px) {
    .blog-hero,
    .blog-controls,
    .blog-grid{
        padding-left:20px;
        padding-right:20px;
    }

    .featured-article{
    display:flex;
    flex-direction:column;
    gap:25px;
    }

    .left-panel{
        display:none;
    }

    .featured-content{
        max-width:100%;
    }


    .featured-content h1 {
        font-size: 30px;
        line-height: 1.3em;
        letter-spacing: 1px;
    }

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

    .blog-filters button {
        width: calc(50% - 5px);
    }

    .blog-card img {
        height: 220px;
    }

    .article-hero{
        height:50vh;
        min-height:350px;
    }

    .article-container{
        padding:60px 20px;
    }

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

    .article-content p{
        font-size:18px;
    }

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

    .hero-content{
    padding:0 20px;
    }

    .comments-section{
        padding:60px 20px;
    }

    .comment-card{
        padding:20px;
    }

    .comment-header{
        gap:10px;
    }

    .comment-replies{
    margin-left:15px;
    }

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

    .article-content table{
    display:block;
    overflow-x:auto;
    white-space:nowrap;
    width:100%;
    }

    .article-engagement{
    flex-direction:column;
    gap:20px;
    align-items:flex-start;
    }

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

    .dashboard{
        flex-direction:column;
    }

    .sidebar{
        width:100%;
    }

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

    .live-preview{
        position:relative;
        top:auto;
        min-height:auto;
    }

    .articles-hero h1{
        font-size:2.5rem;
    }

    .view-toggle{
        width:100%;
    }

    .view-toggle button{
        flex:1;
    }


}