/* ==========================
   GLASSMORPHISM BLOG THEME
   ========================== */

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

:root{
    --bg:#07111f;
    --glass:rgba(255,255,255,0.08);
    --border:rgba(255,255,255,0.15);
    --white:#ffffff;
    --text:#d7d7d7;
    --gold:#f4c542;
    --gold-dark:#dba514;
}

html{
    font-size:16px;
    -webkit-text-size-adjust:100%;
}

body{
    font-family:'Poppins',sans-serif;
    background:linear-gradient(135deg,#07111f,#10253d);
    color:var(--white);
    min-height:100vh;
    overflow-x:hidden;
    padding:clamp(15px, 3vw, 30px);
}

/* Background Circles */

.bg-circle{
    position:fixed;
    border-radius:50%;
    filter:blur(80px);
    z-index:-1;
}

.circle-1{
    width:clamp(150px, 25vw, 300px);
    height:clamp(150px, 25vw, 300px);
    background:#1b4c7c;
    top:-80px;
    left:-80px;
}

.circle-2{
    width:clamp(180px, 30vw, 350px);
    height:clamp(180px, 30vw, 350px);
    background:#dba51455;
    right:-100px;
    bottom:-100px;
}

/* Glass Effect */

.glass{
    background:var(--glass);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    border:1px solid var(--border);
    border-radius:24px;
}

/* Header */

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

.logo{
    font-size:clamp(1.5rem, 4vw, 2rem);
    font-weight:700;
    display:flex;
    align-items:center;
    min-width:0;
}

.logo h1{
    font-family:'Times New Roman', Times, serif;
    font-size:clamp(1.5rem, 4vw, 2rem);
    white-space:nowrap;
}

.logo img{
    width:clamp(40px, 8vw, 80px);
    height:clamp(40px, 8vw, 80px);
    margin-right:clamp(10px, 2vw, 30px);
    object-fit:cover;
    border-radius:50%;
    flex-shrink:0;
}

.logo span{
    color:var(--gold);
}

.navbar{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
}

.navbar a{
    text-decoration:none;
    color:var(--text);
    padding:10px 18px;
    border-radius:12px;
    transition:0.3s;
    font-size:clamp(0.85rem, 2vw, 1rem);
}

.navbar a:hover,
.navbar a.active{
    background:rgba(255,255,255,0.08);
    color:var(--gold);
}

/* Hero */

.hero{
    max-width:1200px;
    margin:auto auto 50px;
    padding:clamp(25px, 5vw, 50px);
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:clamp(20px, 4vw, 40px);
    flex-wrap:wrap;
}

.hero-content{
    flex:1 1 300px;
    min-width:0;
}

.hero-content h1{
    font-size:clamp(1.8rem, 5vw, 3rem);
    margin-bottom:20px;
    word-wrap:break-word;
}

.hero-content h1 span{
    color:var(--gold);
}

.hero-content p{
    color:var(--text);
    line-height:1.8;
    margin-bottom:30px;
    font-size:clamp(0.9rem, 2vw, 1.1rem);
}

.hero-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
}

.btn{
    text-decoration:none;
    padding:clamp(10px, 2vw, 12px) clamp(18px, 3vw, 24px);
    border-radius:12px;
    font-weight:600;
    transition:0.3s;
    font-size:clamp(0.85rem, 2vw, 1rem);
    text-align:center;
}

.primary{
    background:var(--gold);
    color:#000;
}

.primary:hover{
    background:var(--gold-dark);
}

.secondary{
    border:1px solid var(--border);
    color:var(--white);
}

.secondary:hover{
    background:rgba(255,255,255,0.08);
}

.hero-image{
    flex:0 1 300px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.hero-image img{
    width:clamp(180px, 30vw, 300px);
    height:clamp(180px, 30vw, 300px);
    border-radius:50%;
    object-fit:cover;
    object-position: center;
    border:4px solid var(--gold);
}

/* Sections */

.featured-section,
.posts-section{
    max-width:1200px;
    margin:0 auto 50px;
}

.section-title{
    margin-bottom:25px;
    font-size:clamp(1.5rem, 4vw, 2rem);
}

/* Featured */

.featured-card{
    padding:clamp(20px, 4vw, 35px);
}

.featured-card h3{
    margin:15px 0;
    font-size:clamp(1.5rem, 4vw, 2rem);
}

.featured-card p{
    color:var(--text);
    line-height:1.8;
    font-size:clamp(0.9rem, 2vw, 1.1rem);
}

/* Posts */

.post-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(100%, 280px),1fr));
    gap:25px;
}

.post-card{
    padding:25px;
    transition:0.3s;
}

.post-card:hover{
    transform:translateY(-8px);
}

.post-card h3{
    margin:15px 0;
    font-size:clamp(1.1rem, 3vw, 1.5rem);
}

.post-card p{
    color:var(--text);
    line-height:1.7;
    margin-bottom:20px;
    font-size:clamp(0.85rem, 2vw, 1rem);
}

/* Badge */

.badge{
    display:inline-block;
    background:rgba(244,197,66,0.18);
    color:var(--gold);
    padding:8px 14px;
    border-radius:50px;
    font-size:clamp(0.75rem, 1.5vw, 0.85rem);
}

/* Links */

.read-more{
    text-decoration:none;
    color:var(--gold);
    font-weight:600;
    font-size:clamp(0.85rem, 2vw, 1rem);
}

.read-more:hover{
    color:var(--gold-dark);
}

/* Footer */

.footer{
    max-width:1200px;
    margin:auto;
    padding:30px;
    text-align:center;
}

.footer-social{
    margin-bottom:20px;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:20px;
}

.footer-social a{
    text-decoration:none;
    color:var(--text);
    font-size:clamp(1rem, 2.5vw, 1.2rem);
}

.footer-social a:hover{
    color:var(--gold);
}

.footer p{
    color:var(--text);
    font-size:clamp(0.8rem, 2vw, 1rem);
}

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

/* Large tablets & small laptops (1024px and below) */
@media(max-width:1024px){
    .hero{
        gap:30px;
    }
    
    .hero-content h1{
        font-size:clamp(1.6rem, 4vw, 2.5rem);
    }
}

/* Tablets (768px and below) */
@media(max-width:768px){
    body{
        padding:15px;
    }

    .header{
        flex-direction:column;
        text-align:center;
        gap:12px;
        margin-bottom:25px;
    }

    .navbar{
        justify-content:center;
        gap:10px;
    }

    .navbar a{
        padding:8px 14px;
        font-size:0.9rem;
    }

    .hero{
        flex-direction:column;
        text-align:center;
        padding:30px 20px;
    }

    .hero-content{
        flex:1 1 100%;
        order:2;
    }

    .hero-image{
        flex:0 1 auto;
        order:1;
    }

    .hero-content h1{
        font-size:2rem;
    }

    .hero-buttons{
        justify-content:center;
    }

    .hero-image img{
        width:220px;
        height:220px;
    }

    .post-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .featured-card{
        padding:25px;
    }
}

/* Large phones (480px and below) */
@media(max-width:480px){
    body{
        padding:10px;
    }

    .header{
        margin-bottom:20px;
        gap:10px;
    }

    .logo{
        font-size:1.15rem;
        justify-content:center;
    }

    .logo h1{
        font-size:1.15rem;
    }

    .logo img{
        width:38px;
        height:38px;
        margin-right:10px;
    }

    .navbar{
        gap:6px;
    }

    .navbar a{
        padding:6px 12px;
        font-size:0.8rem;
        border-radius:8px;
    }

    .hero{
        padding:20px 15px;
        margin-bottom:30px;
        gap:20px;
    }

    .hero-content h1{
        font-size:1.6rem;
        margin-bottom:15px;
    }

    .hero-content p{
        font-size:0.9rem;
        margin-bottom:20px;
    }

    .hero-buttons{
        gap:10px;
    }

    .btn{
        padding:10px 18px;
        font-size:0.85rem;
        width:100%;
    }

    .hero-image img{
        width:160px;
        height:160px;
        border-width:3px;
    }

    .section-title{
        font-size:1.4rem;
        margin-bottom:20px;
    }

    .featured-card{
        padding:20px;
    }

    .featured-card h3{
        font-size:1.3rem;
    }

    .featured-card p{
        font-size:0.9rem;
    }

    .post-card{
        padding:20px;
    }

    .post-card h3{
        font-size:1.1rem;
    }

    .post-card p{
        font-size:0.85rem;
    }

    .badge{
        padding:6px 12px;
        font-size:0.75rem;
    }

    .footer{
        padding:20px 15px;
    }

    .footer-social{
        gap:15px;
        margin-bottom:15px;
    }
}

/* Small phones (400px and below) — extra step so the logo/header
   never feels cramped right before the smallest tier kicks in */
@media(max-width:400px){
    .logo{
        font-size:1rem;
    }

    .logo h1{
        font-size:1rem;
    }

    .logo img{
        width:34px;
        height:34px;
        margin-right:8px;
    }

    .navbar a{
        padding:5px 10px;
        font-size:0.78rem;
    }
}

/* Small phones (360px and below) */
@media(max-width:360px){
    .header{
        margin-bottom:18px;
    }

    .logo{
        font-size:0.9rem;
    }

    .logo h1{
        font-size:0.9rem;
    }

    .logo img{
        width:30px;
        height:30px;
        margin-right:6px;
        border-width:0;
    }

    .hero-content h1{
        font-size:1.4rem;
    }

    .hero-content p{
        font-size:0.85rem;
    }

    .navbar{
        gap:5px;
    }

    .navbar a{
        padding:5px 9px;
        font-size:0.72rem;
    }

    .hero-image img{
        width:140px;
        height:140px;
    }

    .btn{
        padding:8px 16px;
        font-size:0.8rem;
    }
}

/* Landscape orientation for phones */
@media(max-height:500px) and (orientation:landscape){
    .hero{
        flex-direction:row;
        text-align:left;
        padding:25px;
    }

    .hero-content{
        order:1;
    }

    .hero-image{
        order:2;
    }

    .hero-image img{
        width:150px;
        height:150px;
    }

    .hero-content h1{
        font-size:1.5rem;
    }

    .header{
        flex-direction:row;
        text-align:left;
    }

    .navbar{
        justify-content:flex-end;
    }
}

/* High resolution / 4K screens */
@media(min-width:1920px){
    html{
        font-size:18px;
    }

    .hero-content h1{
        font-size:3.5rem;
    }

    .hero-image img{
        width:350px;
        height:350px;
    }
}

/* Reduced motion preference */
@media(prefers-reduced-motion:reduce){
    .post-card:hover,
    .btn,
    .navbar a,
    .read-more{
        transition:none;
    }

    .post-card:hover{
        transform:none;
    }
}

/* Print styles */
@media print{
    body{
        background:#fff;
        color:#000;
        padding:0;
    }

    .bg-circle,
    .hero-buttons,
    .navbar,
    .footer-social{
        display:none;
    }

    .glass{
        background:none;
        border:1px solid #ccc;
        backdrop-filter:none;
    }

    .hero{
        flex-direction:row;
        text-align:left;
    }
}