/* =====================================================
   OFFSHIELD SECURITY NEWS
   Main Stylesheet
   Version: 1.0
====================================================== */

/* ==============================
   GOOGLE FONT
============================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ==============================
   ROOT VARIABLES
============================== */

:root{

    /* Brand Colours
       Change these later to match OffShield exactly */

    --primary:#0B6CFB;
    --primary-dark:#0956C7;
    --secondary:#00AEEF;

    --success:#00C853;
    --danger:#E53935;
    --warning:#F9A825;

    --black:#111827;
    --dark:#1F2937;
    --gray:#6B7280;
    --light:#F4F7FA;
    --white:#FFFFFF;

    --border:#E5E7EB;

    --radius:12px;

    --shadow:0 8px 25px rgba(0,0,0,.08);

    --transition:.3s ease;

}

/* ==============================
   RESET
============================== */

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

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Inter',sans-serif;

    background:var(--light);

    color:var(--black);

    line-height:1.7;

}

img{

    width:100%;

    display:block;

}

a{

    text-decoration:none;

    color:inherit;

}

ul{

    list-style:none;

}

button{

    cursor:pointer;

    font-family:inherit;

}

.container{

    width:min(1280px,92%);

    margin:auto;

}

/* ==============================
   HEADER
============================== */

header{

    position:sticky;

    top:0;

    z-index:999;

    background:white;

    box-shadow:0 2px 20px rgba(0,0,0,.05);

}

.nav{

    display:flex;

    justify-content:space-between;

    align-items:center;

    height:80px;

}

.logo img{

    height:42px;

    width:auto;

}

nav ul{

    display:flex;

    gap:35px;

}

nav a{

    font-weight:600;

    transition:.3s;

}

nav a:hover{

    color:var(--primary);

}

.nav-actions{

    display:flex;

    gap:15px;

}

.nav-actions button{

    border:none;

    background:none;

    font-size:18px;

}

/* ==============================
   BREAKING NEWS
============================== */

.breaking{

    background:var(--primary);

    color:white;

    padding:12px 0;

}

.breaking .container{

    display:flex;

    align-items:center;

    gap:20px;

}

.breaking-label{

    background:#fff;

    color:var(--primary);

    padding:6px 14px;

    border-radius:50px;

    font-size:13px;

    font-weight:700;

}

.ticker{

    overflow:hidden;

    white-space:nowrap;

}

#tickerText{

    display:inline-block;

    animation:ticker 25s linear infinite;

}

@keyframes ticker{

    from{

        transform:translateX(100%);

    }

    to{

        transform:translateX(-100%);

    }

}

/* ==============================
   HERO
============================== */

.hero{

    padding:60px 0;

}

.hero-grid{

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:40px;

}

.hero-main{

    background:white;

    border-radius:var(--radius);

    overflow:hidden;

    box-shadow:var(--shadow);

}

.hero-main img{

    height:430px;

    object-fit:cover;

}

.hero-content{

    padding:30px;

}

.category{

    display:inline-block;

    background:var(--primary);

    color:white;

    padding:6px 14px;

    border-radius:40px;

    font-size:13px;

    font-weight:600;

    margin-bottom:15px;

}

.hero-content h1{

    font-size:42px;

    line-height:1.2;

    margin-bottom:20px;

}

.hero-content p{

    color:var(--gray);

    margin-bottom:25px;

}

.read-btn{

    display:inline-block;

    background:var(--primary);

    color:white;

    padding:14px 30px;

    border-radius:8px;

    transition:.3s;

}

.read-btn:hover{

    background:var(--primary-dark);

}

.hero-sidebar{

    background:white;

    padding:25px;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

}



/* =====================================================
   NEWS CARDS
===================================================== */

.news-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
    margin-top:30px;
}

.news-card{

    background:#fff;

    border-radius:16px;

    overflow:hidden;

    transition:.35s ease;

    box-shadow:0 8px 24px rgba(0,0,0,.05);

    border:1px solid #ECECEC;

}

.news-card:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 40px rgba(0,0,0,.12);

}

.news-card img{

    width:100%;

    height:220px;

    object-fit:cover;

    transition:.4s ease;

}

.news-card:hover img{

    transform:scale(1.05);

}

.card-content{

    padding:24px;

}

.card-content h3{

    font-size:24px;

    line-height:1.35;

    margin:15px 0;

    transition:.3s;

}

.card-content h3:hover{

    color:var(--primary);

}

.card-content p{

    color:#666;

    font-size:15px;

    margin-bottom:18px;

}

.meta{

    display:flex;

    justify-content:space-between;

    align-items:center;

    color:#777;

    font-size:14px;

    border-top:1px solid #eee;

    padding-top:18px;

}

/* =====================================================
   SECTION TITLES
===================================================== */

.section{

    padding:70px 0;

}

.section-title{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.section-title h2{

    font-size:34px;

    font-weight:800;

}

.section-title a{

    color:var(--primary);

    font-weight:700;

}

.section-title a:hover{

    text-decoration:underline;

}

/* =====================================================
   TRENDING SIDEBAR
===================================================== */

.hero-sidebar h3{

    margin-bottom:25px;

    font-size:26px;

}

.trend-item{

    padding:18px 0;

    border-bottom:1px solid #ECECEC;

}

.trend-item:last-child{

    border-bottom:none;

}

.trend-item span{

    display:inline-block;

    background:#eef5ff;

    color:var(--primary);

    font-size:12px;

    font-weight:700;

    padding:6px 12px;

    border-radius:999px;

    margin-bottom:10px;

}

.trend-item a{

    display:block;

    font-weight:700;

    line-height:1.5;

    transition:.3s;

}

.trend-item a:hover{

    color:var(--primary);

}

/* =====================================================
   NEWSLETTER
===================================================== */

.newsletter{

    background:linear-gradient(135deg,var(--primary),var(--primary-dark));

    color:#fff;

    text-align:center;

    padding:90px 20px;

}

.newsletter h2{

    font-size:42px;

    margin-bottom:15px;

}

.newsletter p{

    max-width:700px;

    margin:0 auto 35px;

    opacity:.95;

}

.newsletter form{

    display:flex;

    justify-content:center;

    gap:15px;

    flex-wrap:wrap;

}

.newsletter input{

    width:420px;

    max-width:100%;

    padding:18px;

    border:none;

    border-radius:10px;

    font-size:16px;

}

.newsletter button{

    padding:18px 40px;

    background:#111;

    color:#fff;

    border:none;

    border-radius:10px;

    font-weight:700;

    transition:.3s;

}

.newsletter button:hover{

    background:#000;

}

/* =====================================================
   FOOTER
===================================================== */

footer{

    background:#111827;

    color:#fff;

    margin-top:80px;

}

.footer-top{

    padding:60px 0 30px;

    text-align:center;

}

.footer-top img{

    height:45px;

    width:auto;

    margin:auto;

}

.footer-top p{

    margin-top:20px;

    color:#c8c8c8;

}

.footer-bottom{

    text-align:center;

    border-top:1px solid rgba(255,255,255,.08);

    padding:25px;

    color:#aaa;

}

/* =====================================================
   RESPONSIVE
===================================================== */

@media(max-width:1000px){

.hero-grid{

grid-template-columns:1fr;

}

nav{

display:none;

}

.hero-content h1{

font-size:32px;

}

.newsletter h2{

font-size:32px;

}

}

@media(max-width:768px){

.news-grid{

grid-template-columns:1fr;

}

.hero-main img{

height:250px;

}

.section-title h2{

font-size:28px;

}

.newsletter input{

width:100%;

}

.newsletter button{

width:100%;

}

}



/* ==========================
SEARCH
========================== */

.search-box{

    position:relative;

    width:320px;

}

.search-box input{

    width:100%;

    padding:14px 45px 14px 18px;

    border:1px solid #ddd;

    border-radius:30px;

    outline:none;

    transition:.3s;

    font-size:15px;

}

.search-box input:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(11,108,251,.12);

}

.search-box i{

    position:absolute;

    right:18px;

    top:50%;

    transform:translateY(-50%);

    color:#666;

}
