/* ==========================
   GLOBAL RESET
========================== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
body{
    font-family:'Poppins',sans-serif;
    background:#f5f7fb;
    color:#222;
    line-height:1.6;
}
/* ===== HEADINGS GLOBAL ===== */

h1, h2, h3, h4, h5, h6{
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight:700;
  color:#1a202c;
  line-height:1.3;
  margin:18px 0 12px;
}

/* H1 — Main Page Title */
h1{
  font-size:32px;
  color:#0f3d91;
  border-left:6px solid #2b6cb0;
  padding-left:12px;
  margin-top:10px;
}

/* H2 — Main Section */
h2{
  font-size:26px;
  color:#1d4ed8;
  border-bottom:2px solid #e5e7eb;
  padding-bottom:6px;
}

/* H3 — Sub Section */
h3{
  font-size:22px;
  color:#2563eb;
  position:relative;
  padding:15px 10px;
  background:#ABE7B2;
  border-radius:8px;
  
}

h3::before{
  content:"";
  width:5px;
  height:52px;
  background:#3b82f6;
  position:absolute;
  left:0;
  top:3px;
  border-radius:3px;
}

/* H4 */
h4{
  font-size:19px;
  color:#334155;
}

/* H5 */
h5{
  font-size:17px;
  color:#475569;
  font-weight:600;
}

/* H6 */
h6{
  font-size:15px;
  color:#64748b;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.5px;
}
.text-center{
  text-align:center;
}
.text-justify{
  text-align:justify;
}
/* ==========================
   CONTAINER SYSTEM
========================== */
.container{
    width:92%;
    max-width:1250px;
    margin:auto;
}

/* ===== HEADER ===== */
.header{
    background:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    position:sticky;
    top:0;
    z-index:9999;
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 0;
}
/* MOBILE MENU */
.nav-menu{
   display:none;
}
.nav-menu.show{
   display:flex;
}
/* DESKTOP MENU */
.nav-menu{
    display:flex;
    gap:20px;
}

.nav-menu a{
    text-decoration:none;
    font-weight:500;
    color:#333;
}

/* HAMBURGER */
.menu-toggle{
    display:none;
    font-size:28px;
    cursor:pointer;
}


.logo{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:1.5rem;
    font-weight:700;
    color:#1560BC;
}
/*====================
Logo 
======================*/
.logo img{
    width:45px;
    height:45px;
    object-fit:contain;
}

.logo span{
    font-size:1.3rem;
    font-weight:700;
    color:#1560BC;
}
/**/
/* ===== FLOAT AD ===== */
#adsFloat{ display:block;}
.ads-float{
    width:100%;
    flex-direction: column;
    position:relative;
}
#ads-wrapper{
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    display:flex;
    background:#888;
    z-index:9900;
}
/* visible state */

.ads-box{
    display:flex;
    flex-direction: column;
    background:#fff;
    width:90%;
    max-height:300px;
    margin:5px auto;
    box-shadow:0 8px 20px rgba(0,0,0,.2);
    padding:5px;
    text-align:center;
}
/* ===== Hero Top Container ===== */
.hero-top-box{
  width:90%;
  margin:auto;
  display:flex;
  gap:16px;
  align-items:stretch;
  font-family:'Segoe UI', Arial, sans-serif;
}

/* LEFT LOGO (1 part) */
.hero-logo{
  flex:1;
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,0.08);
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-logo img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* RIGHT SMART CARDS (3 parts) */
.smart-cards-box{
  flex:3;
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* cards */
.smart-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px 14px;
  font-size:13px;
  font-weight:600;
  color:#1f2937;
  box-shadow:0 2px 6px rgba(0,0,0,0.08);
  transition:all .3s ease;
}

.smart-card.main{
  background:linear-gradient(135deg,#CBF3BB,#3b82f6);
  color:#fff;
}

.smart-card.main h3{
  margin:0;
  font-size:22px;
  color:#fff;
}

.smart-card:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(0,0,0,0.12);
}


/* up-down animation */
@keyframes floatMove{
    0%   { transform:translateX(-50%) translateY(0); }
    50%  { transform:translateX(-50%) translateY(-6px); }
    100% { transform:translateX(-50%) translateY(0); }
}

/* ==========================
   HERO
========================== */
.hero{
    background:linear-gradient(120deg,#1560BC,#34BCEA);
    color:#fff;
    text-align:center;
    padding:70px 20px;
}
.hero h1{
    font-size:clamp(1.6rem,4vw,2.8rem);
    margin-bottom:10px;
    color:#fff;
}
.hero p{
    opacity:.9;
}
/* ===== SEARCH BAR ===== */
.hero-search{
    margin-top:20px;
    display:flex;
    justify-content:center;
    align-items:center;
    max-width:650px;
    margin-left:auto;
    margin-right:auto;
    background:#fff;
    border-radius:50px;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(0,0,0,0.12);
    transition:0.3s;
}

.hero-search:hover{
    box-shadow:0 10px 25px rgba(0,0,0,0.18);
}

/* INPUT */
.hero-search input{
    flex:1;
    border:none;
    padding:14px 20px;
    font-size:1rem;
    font-family:'Poppins',sans-serif;
    outline:none;
    color:#333;
}

/* PLACEHOLDER */
.hero-search input::placeholder{
    color:#888;
}

/* BUTTON */
.hero-search button{
    border:none;
    background:linear-gradient(135deg,#1560BC,#34BCEA);
    color:#fff;
    font-weight:600;
    padding:14px 28px;
    cursor:pointer;
    transition:0.3s;
    font-family:'Poppins',sans-serif;
}

.hero-search button:hover{
    background:linear-gradient(135deg,#0f4d96,#1b91d1);
}

/* ==========================
   CLASS CARDS
========================== */
.class-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin:30px 0;
}
.class-card{
    background:#fff;
    border-radius:14px;
    padding:20px;
    text-align:center;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    transition:.3s;
}
.class-card:hover{
    transform:translateY(-5px);
}
.class-card h3{
    color:#1560BC;
    margin-bottom:8px;
}

/* ==========================
   POSTS GRID
========================== */
.post-grid{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
}
.post-card{
    flex:1 1 280px;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
}
.post-card img{
    width:100%;
    height:180px;
    object-fit:cover;
}
.post-body{
    padding:15px;
}
.post-body h4{
    font-size:1.1rem;
}

/* ==========================
   SIDEBAR (desktop only)
========================== */
.layout{
    display:flex;
    gap:20px;
    background:#F5F2F2;
    padding:15px 10px;
    border-radius:10px;
}
.layout-2{
    gap:20px;
    display:flex;
    background:#FFFDF1;
    padding:15px 10px;
    border-radius:10px;
    margin-top: 20px;
}
.layout-3{
    gap:20px;
    display:flex;
    flex-direction:column;
    background:#ECF4E8;
    padding:15px 10px;
    border-radius:10px;
    margin-top: 20px;
}
.layout-2 li, .layout-3 li {
    margin-left:20px;
}
.main-content{ flex:3; }
.sidebar{
    flex:1;
    display:flex;
    flex-direction:column;
    gap:15px;
}
.sidebar-card{
    background:#fff;
    padding:15px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}
.feed-container{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin:20px 0;
}

.feed-container > div{
  background:#ffffff;
  border:1px solid #e5e5e5;
  border-left:4px solid #2b6cb0; /* side highlight */
  border-radius:8px;
  padding:12px 14px;
  box-shadow:0 2px 6px rgba(0,0,0,0.06);
  transition:all 0.3s ease;
  cursor:pointer;
}

.feed-container > div a{
  display:block;
  color:#222;
  text-decoration:none;
  font-weight:600;
  font-size:15px;
}

.feed-container > div:hover{
  transform:translateX(4px);
  box-shadow:0 4px 12px rgba(0,0,0,0.12);
  border-left-color:#e67e22;
  background:#f9fbff;
}
.div-Grid-box{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:14px;
  margin:15px 0;
  padding:0;
}

/* plate style */
.div-Grid-box li{
  list-style:none;
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 3px 8px rgba(0,0,0,0.07);
  transition:all 0.3s ease;
  position:relative;
}

/* link full plate */
.div-Grid-box li a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  text-decoration:none;
  color:#222;
  font-weight:600;
  font-size:14px;
}

/* rounded image/icon placeholder */
.div-Grid-box li a::before{
  content:"";
  width:36px;
  height:36px;
  border-radius:50%;
  background:linear-gradient(135deg,#2b6cb0,#4f9cff);
  flex-shrink:0;
}

/* hover effect */
.div-Grid-box li:hover{
  transform:translateY(-4px);
  box-shadow:0 6px 16px rgba(0,0,0,0.15);
  border-color:#2b6cb0;
}

.div-Grid-box li:hover a{
  color:#2b6cb0;
}

/* =========================
TEXT RELATED DIV AND STYLES
============================*/
.text-box{
   padding:15px;
   background:#fff;
   border-radius:15px;
   margin:20px 0;
   
}
/* ==========================
   FOOTER
========================== */
.footer{
    background:#111;
    color:#ddd;
    margin-top:40px;
    padding:40px 20px;
}
.footer-wrap{
    display:flex;
    flex-wrap:wrap;
    gap:30px;
}
.footer-col{
    flex:1 1 220px;
}
.footer-col h4{
    color:#FFD150;
    margin-bottom:10px;
}
.footer-bottom{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:25px;
    flex-wrap:wrap;   /* mobile safe */
    background:#111;
    color:#ddd;
    padding:15px 10px;
    font-size:14px;
    text-align:center;
}

.footer-bottom p{
    margin:0;
    white-space:nowrap;
}

.footer-bottom a{
    color:#FFD150;
    text-decoration:none;
    font-weight:500;
}

.footer-bottom a:hover{
    color:#fff;
    text-decoration:underline;
}

/* =====================================
   ðŸ“± MOBILE (0â€“767px)
===================================== */
@media (max-width:767px){
    
    .navbar{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }
    .menu-toggle{
        display:block;
    }
   .nav-menu{
      display:none;
      flex-direction:column;
      width:100%;
      background:#fff;
   }

   .nav-menu.show{
      display:flex;
   }
    .nav-menu{
        position:absolute;
        top:65px;
        left:0;
        width:100%;
        background:#fff;
        flex-direction:column;
        display:none;
        padding:10px 0;
        box-shadow:0 8px 20px rgba(0,0,0,.12);
        animation:slideDown .3s ease;
    }

    .nav-menu a{
        padding:12px 20px;
        border-bottom:1px solid #eee;
    }

    .nav-menu.show{
        display:flex;
    }


    .layout{
        flex-direction:column;
    }

    .sidebar{
        width:100%;
    }

    .hero{
        padding:50px 15px;
    }

    .class-card{
        padding:15px;
    }

    .post-card img{
        height:160px;
    }
   .ads-box{
        max-width:95%;
        margin: 0 auto;
        justify-content:center;
        align-items:center;
    }
/*search bar*/
    .hero-search{
        flex-direction:column;
        border-radius:15px;
        overflow:visible;
        background:transparent;
        box-shadow:none;
        gap:10px;
    }

    .hero-search input{
        width:100%;
        border-radius:12px;
        box-shadow:0 4px 10px rgba(0,0,0,.1);
    }

    .hero-search button{
        width:100%;
        border-radius:12px;
    }
    .footer-bottom{
        flex-direction:column;
        gap:8px;
    }

    .footer-bottom p{
        white-space:normal;
    }    
   .div-Grid-box{
    grid-template-columns:repeat(2,1fr);
  }
 h1{font-size:26px;}
  h2{font-size:22px;}
  h3{font-size:19px;}
  h4{font-size:17px;}
  h5{font-size:15px;}
  h6{font-size:14px;}
  .hero-top-box{
    flex-direction:column;
  }

  .hero-logo{
    height:120px;
  }
  
}
/* =====================================
   ðŸ“² TABLET (768â€“1023px)
===================================== */
@media (min-width:768px) and (max-width:1023px){

    .layout{
        flex-direction:column;
    }

    .sidebar{
        flex-direction:row;
        flex-wrap:wrap;
    }

    .sidebar-card{
        flex:1 1 45%;
    }

    .hero h1{
        font-size:2rem;
    }
}

/* =====================================
   ðŸ’» LAPTOP (1024â€“1366px)
===================================== */
@media (min-width:1024px) and (max-width:1366px){

    .container{
        max-width:1100px;
    }

    .hero h1{
        font-size:2.4rem;
    }
}

/* =====================================
   ðŸ–¥ DESKTOP (1367px+)
===================================== */
@media (min-width:1367px){

    .container{
        max-width:1280px;
    }

    .hero h1{
        font-size:3rem;
    }
}
