/* DateTime Portal - Lightweight CSS */
/* Uses CSS variables from design config for easy customization */

/* Base Reset & Typography */
*,*::before,*::after{box-sizing:border-box}
html{
    /*overflow-x:hidden;*/
    max-width:100vw;
    width:100%;
    position:relative;
    left:0;
    margin:0;
    padding:0
}
body{
    font-family:var(--font-main, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    background:var(--bg-body);
    color:var(--text-main);
    margin:0;
    padding:0;
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
    font-size:16px;
    /*overflow-x:hidden;*/
    max-width:100vw;
    width:100%;
    position:relative;
    left:0
}
a{text-decoration:none;color:inherit;transition:color .2s}
img{max-width:100%;height:auto;display:block}
h1,h2,h3,h4,h5,h6{font-family:var(--font-heading, var(--font-main));margin:0;font-weight:700}
.container{
    max-width:1200px;
    margin:0 auto;
    padding:0 1.5rem;
    box-sizing:border-box;
    width:100%;
    position:relative;
    left:0
}
.page-container{
    width:100%;
    max-width:100%;
    margin:0 auto;
    padding:2rem 1.5rem 4rem;
    box-sizing:border-box;
    /*overflow-x:hidden;*/
    position:relative;
    left:0
}


/* Header */
.site-header{
    background:rgba(255,255,255,.95);
    backdrop-filter:blur(12px);
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:1000;
    height:72px
}
.header-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    height:100%
}
.logo{
    font-weight:700;
    font-size:1.5rem;
    color:var(--text-main);
    display:flex;
    align-items:center;
    gap:10px;
    letter-spacing:-.5px
}
.logo-img{
    width:28px;
    height:28px;
    object-fit:contain;
    flex-shrink:0;
    filter: grayscale(100%) brightness(40%) sepia(100%) hue-rotate(230deg) saturate(300%);

}
.logo span{color:var(--primary)}
.nav-links{
    display:flex;
    gap:2rem
}
.nav-links a{
    font-weight:500;
    color:var(--text-muted);
    font-size:.95rem;
    transition:color .2s
}
.nav-links a:hover,.nav-links a.active{color:var(--primary)}
.mobile-toggle{
    display:none;
    background:none;
    border:none;
    cursor:pointer;
    color:var(--text-main);
    padding:.5rem
}
.mobile-menu{
    display:none;
    background:var(--surface);
    padding:1rem;
    border-bottom:1px solid var(--border);
    flex-direction:column;
    gap:1rem
}
.mobile-menu.open{display:flex}

/* Main Content */
.main-content{
    min-height:calc(100vh - 200px);
    width:100%;
    max-width:100vw;
    /*overflow-x:hidden;*/
    box-sizing:border-box;
    margin:0;
    padding:0;
    position:relative;
    left:0
}

/* Hero Section */
.hero-dash{
    background:linear-gradient(135deg,var(--primary) 0%,var(--accent) 100%);
    color:#fff;
    text-align:center;
    padding:6rem 1rem 10rem;
    position:relative;
    overflow:hidden
}
.hero-dash::before,.hero-dash::after{
    content:'';
    position:absolute;
    background:rgba(255,255,255,.1);
    border-radius:50%;
    filter:blur(50px)
}
.hero-dash::before{
    top:-50px;
    left:-50px;
    width:300px;
    height:300px
}
.hero-dash::after{
    bottom:50px;
    right:-50px;
    width:200px;
    height:200px;
    filter:blur(40px)
}
.hero-content{position:relative;z-index:2}
.hero-label{
    text-transform:uppercase;
    letter-spacing:2px;
    font-size:.85rem;
    font-weight:600;
    opacity:.8;
    margin-bottom:1rem;
    display:block
}
.hero-time{
    font-size:6rem;
    font-weight:700;
    line-height:1;
    text-shadow:0 10px 30px rgba(0,0,0,.2);
    letter-spacing:-3px;
    font-variant-numeric:tabular-nums
}
.hero-date{
    font-size:1.5rem;
    font-weight:300;
    opacity:.9;
    margin-top:.5rem
}

/* Tools Grid */
.tools-overlap{
    margin-top:-6rem;
    position:relative;
    z-index:10;
    padding-bottom:4rem
}
.grid-tools{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:2rem
}
.card-tool{
    background:var(--surface);
    padding:2.5rem 2rem;
    border-radius:20px;
    box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);
    border:1px solid var(--border);
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    transition:transform .3s cubic-bezier(.4,0,.2,1)
}
.card-tool:hover{transform:translateY(-10px)}
.icon-box{
    width:60px;
    height:60px;
    background:#eff6ff;
    color:var(--primary);
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:1.5rem;
    transition:background .3s
}
.card-tool:hover .icon-box{background:var(--primary);color:#fff}
.card-tool:nth-child(2) .icon-box{background:#fdf2f8;color:#db2777}
.card-tool:nth-child(2):hover .icon-box{background:#db2777;color:#fff}
.card-tool:nth-child(3) .icon-box{background:#fff7ed;color:#ea580c}
.card-tool:nth-child(3):hover .icon-box{background:#ea580c;color:#fff}
.tool-title{
    font-size:1.5rem;
    font-weight:700;
    margin:0 0 .5rem;
    color:var(--text-main)
}
.tool-desc{
    color:var(--text-muted);
    font-size:1rem;
    line-height:1.5;
    margin:0
}

/* Sections */
.section-header-flex{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    margin-bottom:2rem;
    padding-bottom:1rem;
    border-bottom:2px solid var(--border)
}
.section-heading{
    font-size:2rem;
    font-weight:700;
    margin:0;
    letter-spacing:-.5px
}
.btn-link{
    color:var(--primary);
    font-weight:600;
    display:flex;
    align-items:center;
    gap:5px;
    transition:gap .2s
}
.btn-link:hover{gap:10px}

/* Festival Cards */
.list-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
    gap:2rem
}
.fest-card{
    background:var(--surface);
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);
    border:1px solid var(--border);
    transition:all .3s
}
.fest-card:hover{
    transform:translateY(-5px);
    box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1)
}
.fest-img-wrap{
    position:relative;
    height:220px;
    overflow:hidden
}
.fest-img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .5s
}
.fest-card:hover .fest-img{transform:scale(1.05)}
.fest-date-badge{
    position:absolute;
    top:15px;
    left:15px;
    background:rgba(255,255,255,.95);
    padding:5px 12px;
    border-radius:8px;
    font-weight:700;
    font-size:.8rem;
    color:var(--text-main);
    box-shadow:0 1px 2px 0 rgba(0,0,0,.05)
}
.fest-body{padding:1.5rem}
.fest-title{
    font-size:1.35rem;
    font-weight:700;
    margin:0 0 .5rem;
    color:var(--text-main)
}
.fest-snippet{
    color:var(--text-muted);
    margin-bottom:1.5rem;
    line-height:1.6
}
.read-more{
    font-weight:600;
    color:var(--primary);
    font-size:.9rem;
    letter-spacing:.5px;
    text-transform:uppercase
}

/* View Page Styles */
.view-hero-card{
    background:var(--surface);
    border-radius:16px;
    box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06);
    padding:3rem 1rem;
    text-align:center;
    margin-bottom:2rem;
    border:1px solid var(--border);
    border-top:5px solid var(--primary);
        max-width: 1200px;
    margin: 35px auto;
}
.date-pill{
    background-color:#fce7f3;
    color:#be185d;
    font-weight:700;
    font-size:.9rem;
    padding:6px 16px;
    border-radius:50px;
    display:inline-block;
    margin-bottom:1rem
}
.hero-title-dark{
    font-size:3rem;
    font-weight:800;
    color:var(--text-main);
    margin:.5rem 0 2rem;
    letter-spacing:-1px
}
.timer-container{
    display:flex;
    justify-content:center;
    gap:1.5rem;
    flex-wrap:wrap
}
.timer-block{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:12px;
    padding:1rem;
    min-width:100px;
    box-shadow:0 2px 4px rgba(0,0,0,.05);
    display:flex;
    flex-direction:column;
    align-items:center
}
.timer-val{
    font-size:2.2rem;
    font-weight:700;
    color:var(--primary-dark);
    line-height:1
}
.timer-label{
    font-size:.75rem;
    text-transform:uppercase;
    color:var(--text-muted);
    margin-top:5px;
    font-weight:600;
    letter-spacing:.5px
}
.view-layout{
    display:grid;
    grid-template-columns: 220px minmax(0, 1fr) 260px;
    grid-template-areas: "left main right";
    gap:2rem;
    align-items:start;
    justify-content:center;
    max-width:100%;
    box-sizing:border-box;
    /*overflow-x:hidden;*/
    width:100%;
    margin:0;
    padding:0;
    position:relative;
    left:0
}

.sidebar-left{grid-area:left; display:flex; flex-direction:column; gap:1rem; position:sticky; top:5rem}
.sidebar-right{grid-area:right; display:flex; flex-direction:column; gap:1rem; position: sticky; top: 90px;}
.sidebar-inner{position:sticky; top:5rem}

/* Left sidebar: Ads only (subtle background to separate visually) */
.sidebar-left{background:linear-gradient(180deg, var(--bg-body), transparent); padding:1rem; border-radius:12px; border:1px solid var(--border)}
.sidebar-left .sidebar-card{background:transparent; box-shadow:none; border:none; padding:0}

/* Right sidebar: Tools/navigation with stronger card styling */
.sidebar-right .sidebar-card{background:var(--surface); border-radius:12px; padding:1rem; box-shadow:0 2px 6px rgba(15,23,42,0.06); border:1px solid var(--border)}
.sidebar-right .sidebar-title{padding-bottom:.5rem; border-bottom:1px solid var(--border)}

/* Keep main content visually centered and constrained */
.content-area {
    width: 100%;
    max-width: 800px; /* Default max width */
    min-width: 320px;
    margin: 0 auto; /* Center the content */
}

@media (min-width: 576px) {
    .content-area { max-width: 540px; }
}

@media (min-width: 769px) {
    .content-area { max-width: 720px; }
}

@media (min-width: 992px) {
    .content-area { max-width: 960px; }
}

@media (min-width: 1200px) {
    .content-area { max-width: 1140px; }
}
.content-area{
    background:transparent;
    word-wrap:break-word;
    overflow-wrap:break-word;
    max-width:100%;
    box-sizing:border-box;
    padding:0;
    margin:0;
    position:relative;
    left:0;
    width:100%
}
.content-area *{
    max-width:100%;
    box-sizing:border-box
}
.content-area p,
.content-area div,
.content-area span,
.content-area h1,
.content-area h2,
.content-area h3,
.content-area h4,
.content-area h5,
.content-area h6,
.content-area blockquote,
.content-area ul,
.content-area ol,
.content-area li{
    word-wrap:break-word;
    overflow-wrap:break-word;
    position:relative;
    left:0
}
.breadcrumb{
    font-size:.9rem;
    color:var(--text-muted);
    margin-bottom:1.5rem;
    margin-left:0;
    padding-left:0;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    position:relative;
    left:0;
    word-wrap:break-word;
    overflow-wrap:break-word
}
.breadcrumb a{color:var(--text-muted)}
.breadcrumb span{color:var(--primary);font-weight:600}
.section-head{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:1.5rem;
    font-weight:800;
    color:var(--primary-dark);
    margin-top:2.5rem;
    margin-bottom:1rem;
    margin-left:0;
    border-bottom:2px solid var(--border);
    padding-bottom:.5rem;
    padding-left:0;
    word-wrap:break-word;
    overflow-wrap:break-word;
    max-width:100%;
    box-sizing:border-box;
    width:100%;
    position:relative;
    left:0
}
.text-body{
    font-size:1.05rem;
    line-height:1.8;
    color:var(--text-main);
    margin-bottom:1.5rem;
    word-wrap:break-word;
    overflow-wrap:break-word;
    hyphens:auto;
    max-width:100%;
    box-sizing:border-box;
    width:100%;
    margin-left:0;
    padding-left:0;
    position:relative;
    left:0
}
.sidebar-card{
    background:var(--surface);
    border-radius:12px;
    padding:1.5rem;
    box-shadow:0 2px 4px rgba(0,0,0,.05);
    border:1px solid var(--border)
}
.sidebar-title{
    font-size:1.1rem;
    font-weight:700;
    color:var(--text-main);
    margin-bottom:1rem;
    padding-bottom:.5rem;
    border-bottom:1px solid var(--border)
}
.recent-link{
    display:block;
    padding:.8rem 0;
    color:var(--text-muted);
    font-weight:500;
    border-bottom:1px solid var(--border);
    transition:all .2s
}
.recent-link:hover{
    color:var(--primary);
    padding-left:5px
}

/* Footer */
.site-footer{
    background:var(--surface);
    margin-top:5rem;
    padding:3rem 0;
    border-top:1px solid var(--border)
}
.footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:2rem;
    margin-bottom:2rem
}
.footer-col h3{
    color:var(--text-main);
    margin-top:0;
    margin-bottom:1rem
}
.footer-col p{
    color:var(--text-muted);
    font-size:.9rem;
    line-height:1.6
}
.footer-col ul{
    list-style:none;
    padding:0;
    margin:0
}
.footer-col ul li{margin-bottom:.5rem}
.footer-col a{
    color:var(--text-muted);
    transition:color .2s
}
.footer-col a:hover{color:var(--primary)}
.copyright{
    text-align:center;
    border-top:1px solid var(--border);
    padding-top:1.5rem;
    font-size:.9rem;
    color:var(--text-muted)
}

/* Ad Containers */
/*.ad-container{*/
/*    margin:2rem 0;*/
/*    min-height:100px;*/
/*    display:flex;*/
/*    align-items:center;*/
/*    justify-content:center*/
/*}*/
.ad-horizontal{width:100%}
.ad-sidebar{width:100%}
.ad-topbar{width:100%;margin-top:1rem}
.top-bar-ad {
    text-align: center;
}
.bottom-ads {
    margin: 1rem 0;
}

/* Utility Classes */
.page-title{
    font-size:2.5rem;
    font-weight:800;
    text-align:center;
    margin:2rem 0;
    color:var(--text-main)
}
.clock-face{
    font-size:3rem;
    font-weight:700;
    color:var(--primary);
    font-variant-numeric:tabular-nums
}

/* Festival Meta Info */
.festival-meta-info{
    display:flex;
    flex-direction:column;
    gap:0.75rem;
    margin-bottom:1.5rem;
    color:var(--text-muted);
    padding:1rem;
    background:var(--bg-body);
    border-radius:8px;
    border:1px solid var(--border)
}
.meta-item{
    display:flex;
    flex-wrap:wrap;
    align-items:flex-start;
    gap:0.5rem;
    word-wrap:break-word;
    overflow-wrap:break-word
}
.meta-label{
    color:var(--primary);
    font-weight:600;
    flex-shrink:0
}
.meta-value{
    flex:1;
    min-width:0;
    word-wrap:break-word;
    overflow-wrap:break-word
}
.festival-featured-image{
    width:100%;
    max-width:100%;
    height:auto;
    border-radius:12px;
    margin-bottom:2rem;
    display:block;
    box-sizing:border-box
}

/* Responsive */
@media (max-width:900px){
    .view-layout{
        grid-template-columns:1fr;
        grid-template-areas: "main" "right" "left";
        gap:1.5rem
    }
    .hero-title-dark{font-size:2.2rem}
    .timer-block{min-width:70px;padding:.8rem}
    .timer-val{font-size:1.5rem}
    .page-container{padding:0 1rem}
    .content-area{
        max-width:100%;
        padding:0
    }
    /*.sidebar-left,.sidebar-right{*/
    /*    position:relative;*/
    /*    top:auto*/
    /*}*/
    
        .sidebar-right, .sidebar-left { position: static; top: auto; }

    /*.sidebar-inner{position:relative;top:auto}*/
}
@media (max-width:768px){
    .hero-time{font-size:3.5rem}
    .nav-links{display:none}
    .mobile-toggle{display:block}
    .tools-overlap{margin-top:-3rem}
    .card-tool{padding:1.5rem}
    .hero-dash{padding:4rem 1rem 8rem}
    .page-container{
        padding:1.5rem 1rem 3rem;
        margin:0;
        left:0;
        width:100%;
        max-width:100%
    }
    .container{
        padding:0 1rem;
        margin:0 auto;
        left:0
    }
    .view-hero-card{
        padding:2rem 1rem;
        margin:20px auto;
        max-width:100%;
        box-sizing:border-box
    }
    .section-head{
        font-size:1.25rem;
        margin-top:2rem;
        flex-wrap:wrap;
        margin-left:0;
        padding-left:0;
        left:0
    }
    .text-body{
        font-size:1rem;
        line-height:1.7;
        margin-left:0;
        padding-left:0;
        left:0;
        width:100%;
        max-width:100%
    }
    .breadcrumb{
        font-size:0.85rem;
        word-wrap:break-word;
        overflow-wrap:break-word;
        margin-left:0;
        padding-left:0;
        left:0
    }
    .festival-meta-info{
        padding:0.75rem;
        gap:0.5rem;
        margin-left:0;
        left:0;
        width:100%;
        max-width:100%;
        box-sizing:border-box
    }
    .meta-item{
        flex-direction:column;
        gap:0.25rem;
        margin-left:0;
        padding-left:0
    }
    .meta-label,.meta-value{
        width:100%;
        margin-left:0;
        padding-left:0
    }
    .text-body[style*="padding"]{
        padding:1rem !important;
        margin-left:0 !important;
        left:0 !important
    }
    blockquote[style*="padding"]{
        padding-left:0.75rem !important;
        margin:1rem 0 !important;
        margin-left:0 !important;
        left:0 !important
    }
    .content-area{
        padding-left:0;
        margin-left:0;
        left:0;
        width:100%
    }
    .view-layout{
        padding-left:0;
        margin-left:0;
        left:0;
        width:100%
    }
}
@media (max-width:480px){
    .page-container{
        padding:1rem 0.75rem 2rem;
        margin:0;
        left:0;
        width:100%;
        max-width:100%
    }
    .container{
        padding:0 0.75rem;
        margin:0 auto;
        left:0
    }
    .view-hero-card{
        padding:1.5rem 0.75rem;
        margin:15px auto;
        max-width:100%;
        box-sizing:border-box
    }
    .hero-title-dark{font-size:1.75rem}
    .timer-container{gap:0.75rem}
    .timer-block{
        min-width:60px;
        padding:0.6rem
    }
    .timer-val{font-size:1.25rem}
    .timer-label{font-size:0.7rem}
    .content-area,.view-layout,.text-body,.section-head,.breadcrumb{
        
        padding: 0.5rem;
    }
}
