/*
Theme Name: Dunmore News
Version: 1.0
*/


/* ------------------------------ */
/* SINGLE POST */
/* ------------------------------ */

.single-container{
    max-width:800px;
    margin:auto;
    padding:60px 20px;
}

.single-meta{
    display:flex;
    gap:16px;
    align-items:center;
    margin-bottom:16px;
    font-size:14px;
    color:#666;
}

.single-category{
    background:#000;
    color:#fff;
    padding:3px 10px;
    border-radius:3px;
    text-transform:uppercase;
    font-size:12px;
    font-weight:600;
    letter-spacing:.5px;
}

.single-title{
    font-size:clamp(28px,4vw,44px);
    font-weight:700;
    line-height:1.2;
    margin-bottom:28px;
}

.single-thumbnail{
    margin-bottom:36px;
    border-radius:8px;
    overflow:hidden;
}

.single-thumbnail img{
    width:100%;
    height:auto;
}

.single-content{
    font-size:18px;
    line-height:1.8;
    color:#333;
}

.single-content p{
    margin-bottom:1.4em;
}

.single-content h2,
.single-content h3{
    margin:1.6em 0 .6em;
    font-weight:700;
}

.single-back{
    margin-top:48px;
    padding-top:24px;
    border-top:1px solid #ddd;
}

.single-back a{
    color:#000;
    font-weight:600;
    font-size:15px;
}


/* ------------------------------ */
/* RESET */
/* ------------------------------ */

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

body{
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    background:#f4f5f7;
    color:#222;
    line-height:1.6;
}

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

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


/* ------------------------------ */
/* CONTAINER */
/* ------------------------------ */

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


/* ---------------------------
SECTION SPACING
----------------------------*/

section{
    margin:120px 0;
}

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

.news-title span{
    display:block;
}
/* ---------------------------
SECTION SPACING
----------------------------*/

section{
    margin:80px 0;
}

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

/* ---------------------------
GRID SECTION
----------------------------*/

.news-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:40px;
    margin-top:40px;
}

/* ---------------------------
CARDS
----------------------------*/

.news-card{
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.2s ease;
}

.news-card:hover{
    transform:translateY(-5px);
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.card-image img{
    width:100%;
    height:auto;
    display:block;
}

.card-content{
    padding:22px;
}

.card-meta{
    font-size:12px;
    color:#888;
    margin-bottom:10px;
    display:flex;
    gap:10px;
}

/* ---------------------------
EVENTS GRID
----------------------------*/

.events-row{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.event-card{
    background:#fff;
    border-radius:16px;
    padding:25px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

/* ---------------------------
QUOTE SLIDER
----------------------------*/

/* ---------------------------
QUOTES SECTION
----------------------------*/
.quotes{
    background:linear-gradient(120deg,#4338ca,#6ba3c7);
    padding:100px 40px;
    color:white;
}

.quotes-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    max-width:1200px;
    margin:0 auto 40px;
}

.quotes-controls{
    display:flex;
    gap:10px;
}

.quote-btn{
    width:44px;
    height:44px;
    border:none;
    border-radius:8px;
    background:white;
    font-size:18px;
    cursor:pointer;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
}

.quotes-slider-wrapper{
    overflow:hidden;
    max-width:1200px;
    margin:auto;
}

.quotes-slider{
    display:flex;
    gap:30px;
    transition:transform .4s ease;
}

.quote-card{
    background:white;
    color:#222;
    padding:40px;
    border-radius:16px;
    flex:0 0 calc(50% - 15px);
    box-shadow:0 10px 30px rgba(0,0,0,.12);
}

.quote-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:30px;
}

.quote-logo img{
    height:40px;
    width:auto;
}
/* ---------------------------
CUSTOMER
----------------------------*/

.customer-card{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:center;
    background:#fff;
    padding:40px;
    border-radius:20px;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
}

.customer-image img{
    width:100%;
    border-radius:12px;
}

/* ---------------------------
VIDEO
----------------------------*/

.video-card{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:center;
    background:#fff;
    padding:40px;
    border-radius:20px;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
}

.video-wrapper{
    position:relative;
    padding-bottom:56%;
    height:0;
    overflow:hidden;
    border-radius:12px;
}

.video-wrapper iframe{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}

/* ------------------------------ */
/* HERO */
/* ------------------------------ */

.news-hero{
    text-align:center;
    margin:0 auto 70px auto;
    max-width:1000px;
}

.news-kicker{
    font-size:12px;
    letter-spacing:2px;
    text-transform:uppercase;
    color:#6e84d4;
    font-weight:600;
    margin-bottom:22px;
}

.news-title{
    font-size:72px;
    font-weight:700;
    line-height:1.05;
    letter-spacing:-1.5px;
    margin-bottom:30px;
}

.news-title span{
    color:#d37a36;
}

.news-subtitle{
    max-width:650px;
    margin:auto;
    font-size:18px;
    color:#6b6b6b;
    line-height:1.7;
}


/* ------------------------------ */
/* FEATURE ARTICLE */
/* ------------------------------ */

.news-feature{
    display:grid;
    grid-template-columns:1.4fr 1fr;
    gap:30px;
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    margin-bottom:60px;
}

.feature-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    min-height:420px;
}

.feature-content{
    padding:35px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.feature-meta{
    display:flex;
    gap:12px;
    font-size:13px;
    color:#8a8a8a;
    margin-bottom:12px;
}

.feature-category{
    background:#f1f1f1;
    padding:4px 10px;
    border-radius:4px;
    font-size:12px;
}

.feature-content h2{
    font-size:30px;
    line-height:1.25;
    margin-bottom:12px;
}

.feature-subhead{
    color:#555;
    margin-bottom:18px;
    font-size:15px;
}

.feature-link{
    font-weight:600;
    font-size:14px;
}


/* ------------------------------ */
/* NEWS GRID */
/* ------------------------------ */

.news-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
}


/* ------------------------------ */
/* NEWS CARD */
/* ------------------------------ */

.news-card{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(0,0,0,.08);
    transition:.25s ease;
}

.news-card:hover{
    transform:translateY(-6px);
    box-shadow:0 14px 35px rgba(0,0,0,.12);
}

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

.card-content{
    padding:18px;
}

.card-meta{
    display:flex;
    justify-content:space-between;
    font-size:12px;
    color:#8a8a8a;
    margin-bottom:10px;
}

.card-category{
    background:#f1f1f1;
    padding:3px 8px;
    border-radius:3px;
    font-size:11px;
}

.news-card h3{
    font-size:18px;
    line-height:1.35;
    margin-bottom:8px;
}

.card-subhead{
    font-size:14px;
    color:#5f5f5f;
    margin-bottom:12px;
}

.card-link{
    font-weight:600;
    font-size:13px;
}

.news-grid-footer{
    display:flex;
    justify-content:center;
    margin-top:28px;
}

.news-grid-more,
.archive-pagination .page-numbers{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:12px 18px;
    border-radius:999px;
    background:#10253f;
    color:#fff;
    font-weight:700;
    text-decoration:none;
}

.archive-pagination{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-top:32px;
}

.archive-pagination .page-numbers.current{
    background:#dbe7f2;
    color:#10253f;
}


/* ------------------------------ */
/* EVENTS */
/* ------------------------------ */
.events-row{
    display:flex;
    gap:24px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    -ms-overflow-style:none;
}

.event-card{
    min-width:400px;
    background:white;
    border-radius:14px;
    padding:28px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    display:flex;
    flex-direction:column;
    gap:12px;
    scroll-snap-align:start;
}

.events-row::-webkit-scrollbar{
    display:none;
}

.event-meta{
    font-size:12px;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#7a7fb3;
    font-weight:600;
}

.event-name{
    font-size:18px;
    line-height:1.35;
    margin:0;
}

.event-link{
    font-size:13px;
    margin-top:8px;
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:#444;
    text-decoration:none;
}

.event-link:hover{
    color:#000;
}

.event-logo{
    margin-top:auto;
    display:flex;
    justify-content:flex-end;
}

.event-logo img{
    height:28px;
    width:auto;
    opacity:.9;
}
/* ------------------------------ */
/* QUOTES */
/* ------------------------------ */
/* ------------------------------ */
/* TESTIMONIALS SECTION */
/* ------------------------------ */

.quotes{

    background: linear-gradient(120deg,#3f3c8f,#6f9bb9);

    padding:120px 40px;

    border-radius:6px;

    position:relative;

    color:white;

    overflow:hidden;

}


/* subtle dot pattern */

.quotes::before{

    content:"";

    position:absolute;

    top:0;
    left:0;
    right:0;
    bottom:0;

    background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);

    background-size:22px 22px;

    opacity:.4;

    pointer-events:none;

}


/* title */

.quotes h2{

    font-size:48px;

    font-weight:700;

    margin-bottom:50px;

    text-align:left;

    max-width:1100px;

    margin-left:auto;
    margin-right:auto;

}


/* slider row */

.quotes-slider{

    display:flex;

    gap:30px;

    transition:transform .4s ease;

    max-width:1100px;

    margin:auto;

    padding-bottom:10px;

}


/* quote cards */

.quote-card{
    background:white;

    color:#222;

    padding:35px;

    border-radius:18px;

    flex:0 0 calc(50% - 15px);

    box-shadow:0 10px 30px rgba(0,0,0,.15);

}


/* quote text */

.quote-text{

    font-size:18px;

    line-height:1.6;

    margin-bottom:35px;

}


/* footer */

.quote-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    border-top:1px solid #eee;

    padding-top:18px;

}


.quote-author strong{

    display:block;

    font-size:15px;

}


.quote-logo{

    height:32px;

    opacity:.75;

}

/* ------------------------------ */
/* HERITAGE */
/* ------------------------------ */

.heritage{
    padding:80px 20px;
    background:#f3f6fb;
    display:flex;
    justify-content:center;
}

.heritage-card{
    background:#ffffff;
    border-radius:12px;
    padding:60px;
    max-width:1100px;
    width:100%;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    text-align:center;
}

.heritage-stats{
    display:flex;
    justify-content:center;
    gap:60px;
    margin-top:40px;
}

.stat h3{
    font-size:46px;
    font-weight:700;
    color:#0057ff;
    margin-bottom:5px;
}

.stat p{
    font-size:14px;
    color:#666;
}

/* ------------------------------ */
/* FEATURED CUSTOMER */
/* ------------------------------ */
.featured-customer{
    padding:60px 0;
}

.customer-card{
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(320px, 460px);
    gap:40px;
    background:linear-gradient(135deg,#ffffff 0%,#f2f6fb 100%);
    border:1px solid rgba(12,39,77,0.08);
    border-radius:24px;
    padding:48px;
    align-items:center;
    box-shadow:0 18px 40px rgba(12,39,77,0.08);
}

.customer-media img{
    width:100%;
    border-radius:18px;
    display:block;
    box-shadow:0 20px 40px rgba(12,39,77,0.14);
}

.customer-video{
    position:relative;
    padding-top:56.25%;
}

.customer-video iframe{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    border-radius:12px;
}

.customer-keypoint{
    display:inline-flex;
    align-items:center;
    padding:8px 14px;
    border-radius:999px;
    background:#e8f0fb;
    font-size:12px;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#23466f;
    margin-bottom:16px;
    font-weight:700;
}

.customer-title{
    font-size:40px;
    line-height:1.1;
    margin-bottom:16px;
    color:#10253f;
}

.customer-desc{
    color:#506174;
    font-size:17px;
    line-height:1.7;
    margin-bottom:24px;
    max-width:52ch;
}

.customer-cta{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:14px 22px;
    border-radius:999px;
    background:#10253f;
    color:#fff;
    font-weight:700;
    text-decoration:none;
    box-shadow:0 14px 24px rgba(16,37,63,0.18);
}

/* ------------------------------ */
/* FEATURED VIDEO */
/* ------------------------------ */
.featured-video{
    padding:28px 0;
}

.video-card{
    display:grid;
    grid-template-columns:420px minmax(0, 1fr);
    gap:22px;
    background:linear-gradient(135deg,#0f223b 0%,#16365f 100%);
    border-radius:24px;
    padding:20px 22px;
    align-items:center;
    box-shadow:0 20px 42px rgba(7,20,36,0.18);
}

/* DATE / META */
.video-meta{
    display:inline-flex;
    align-items:center;
    width:max-content;
    padding:6px 12px;
    border-radius:999px;
    background:rgba(255,255,255,0.12);
    font-size:12px;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#d5e6f7;
    font-weight:700;
    margin-bottom:18px;
}

/* TEXT SIDE */
.video-text{
    color:#fff;
    justify-self:end;
    width:100%;
    max-width:520px;
}

.video-text h2{
    font-size:28px;
    line-height:1.12;
    margin-bottom:10px;
}

.video-desc{
    color:#d8e4ef;
    font-size:15px;
    line-height:1.5;
    margin:0 0 12px;
    max-width:44ch;
}

.video-cta{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:12px 18px;
    border-radius:999px;
    background:#fff;
    color:#10253f;
    font-weight:700;
    text-decoration:none;
    box-shadow:0 14px 24px rgba(7,20,36,0.18);
}

/* VIDEO */
.video-media img{
    width:100%;
    display:block;
    border-radius:14px;
    box-shadow:0 22px 40px rgba(7,20,36,0.26);
    height:auto;
    object-fit:contain;
}

.video-media{
    width:100%;
    max-width:420px;
    align-self:center;
}

.video-player{
    position:relative;
    padding-top:56.25%;
}

.video-player iframe{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    border-radius:12px;
}
/* ------------------------------ */
/* FOOTER */
/* ------------------------------ */

footer{
    margin-top:80px;
    text-align:center;
    color:#777;
    font-size:14px;
    padding:30px 0;
}




.preview-wrapper{
    max-width:1200px;
    margin:auto;
    padding:40px 0;
}

.section-preview{
    max-width:1200px;
    margin:auto;
    padding:40px 0;
}

.preview-section{
    max-width:1200px;
    margin:auto;
    padding:40px 0;
}

#dunmorePreviewLoading::after{
    content:"";
    display:block;
    width:28px;
    height:28px;
    margin:20px auto 0;
    border:3px solid #ccc;
    border-top-color:#2271b1;
    border-radius:50%;
    animation:spin 0.7s linear infinite;
}

@keyframes spin{
    to{ transform:rotate(360deg); }
}
/* ------------------------------ */
/* RESPONSIVE */
/* ------------------------------ */

@media(max-width:1000px){

    .news-feature{
        grid-template-columns:1fr;
    }

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

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

    .customer-card,
    .video-card{
        grid-template-columns:1fr;
    }

    .news-title{
        font-size:48px;
    }

}

@media(max-width:640px){

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

    .events-row{
        grid-template-columns:1fr;
    }

    .news-title{
        font-size:38px;
    }

    .news-container{
        padding:60px 16px;
    }

}
