*{margin:0;padding:0;box-sizing:border-box}
body{font-family:Segoe UI;background:#f4f6fb;color:#111}

/* HEADER FIX */
.header{
  position: sticky;   
  top: 0;             
  width: 100%;
  z-index: 999;       
  background: #020617; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  transition: all 0.3s ease;
}

.logo{display:flex;align-items:center;color:#fff;font-size:22px;font-weight:bold}
.logo img{width:40px;border-radius:35%;margin-right:10px}
.navbar a{
  color:#fff;
  margin:0 12px;
  text-decoration:none;
  position:relative;
}
.navbar a::after{
  content:'';
  width:0;
  height:2px;
  background:#38bdf8;
  position:absolute;
  left:0;
  bottom:-5px;
  transition:.3s;
}
.navbar a:hover::after{width:100%}
.btn-primary{
  border:2px solid #cff838;
  background:#2d9ece;
  color:#000;
  padding:10px 18px;
  border-radius:25px;
  text-decoration:none;
  font-weight:600;
}
.btn-primary:hover{background:#c8e90e}

/* HERO */
.hero{
  text-align:center;
  padding:40px 10px;
  background:linear-gradient(135deg,#0d5f85,#118994,#33a0c5);
  color:#fff;
  animation:fadeDown 1s ease;
}
.hero h1{font-size:42px;margin-bottom:15px}
.hero p{opacity:.8;margin-bottom:30px}
.btn-secondary{
  border:2px solid #cff838;
    background:#c43a3a;
  color:#ffffff;
  padding:10px 18px;
  border-radius:25px;
  text-decoration:none;
  margin-left:10px;
   font-weight:600;
}
.btn-secondary:hover{background:#c8e90e;color:#000}

/* PAGE HERO */
.page-hero{
  text-align:center;
  padding:40px 10px;
  background:linear-gradient(135deg,#0d5f85,#118994,#33a0c5);
  color:#fff;
  animation:fadeDown 1s ease;
}

/* FEATURES */
.features{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:25px;
  padding:60px;
}
.feature-box{
  background:#fff;
  padding:25px;
  border-radius:15px;
  text-align:center;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
  transition:.3s;
}
.feature-box:hover{transform:translateY(-10px)}

/* AUTHOR */
.author{text-align:center;padding:60px}
.author img{width:120px;border-radius:20%;margin-bottom:15px}

/* NEWSLETTER */
.newsletter{
  background:#020617;
  color:#fff;
  text-align:center;
  padding:50px;
}
.newsletter input{
  padding:12px;
  width:250px;
  border-radius:25px;
  border:none;
}
.newsletter button{
  padding:12px 20px;
  border:none;
  border-radius:25px;
  background:#38bdf8;
  font-weight:bold;
  margin-left:10px;
}

/* FOOTER */
.footer{
  background:#020617;
  color:#fff;
  text-align:center;
  padding:15px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}
/* FOOTER for home page onnly because of as perfect look to scroll*/
.footer1{
  background:#020617;
  color:#fff;
  text-align:center;
  padding:15px;
}
/* FOOTER with social icon attach*/
.footer-container {
    position: relative;
}

.footer-center {
    text-align: center;
}

.footer-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.footer-right a {
    color: white;
    margin-left: 15px;
    font-size: 20px;
    text-decoration: none;
}

.footer-right a:hover {
    color: #00aced;
}
/* ABOUT */
.about-section{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:30px;
  padding:60px;
}
.about-box{
  background:#fff;
  padding:30px;
  border-radius:15px;
  transition:.4s;
}
.about-box:hover{
  box-shadow:0 15px 40px rgba(0,0,0,.15);
  transform:translateY(-8px);
}

/* CONTACT */
.contact-section{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:40px;
  padding:60px;
}
.contact-form input,
.contact-form textarea{
  width:100%;
  padding:12px;
  margin-bottom:15px;
  border-radius:10px;
  border:1px solid #ccc;
}
.contact-form button{
  background:#38bdf8;
  padding:12px;
  border:none;
  border-radius:25px;
  font-weight:bold;
  cursor:pointer;
}
.contact-form button:hover{
  background:#0ea5e9;
}

/* ANIMATION */
@keyframes fadeDown{
  from{opacity:0;transform:translateY(-30px)}
  to{opacity:1;transform:translateY(0)}
}
.dashboard-table{
  padding:40px;
}
.dashboard-table table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border-radius:15px;
  overflow:hidden;
}
.dashboard-table th,
.dashboard-table td{
  padding:15px;
  border-bottom:1px solid #eee;
}
.dashboard-table th{
  background:#f1f5f9;
  text-align:left;
}
.dashboard-table tr:hover{
  background:#f8fafc;
}
/* POSTS GRID */
.posts-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
  padding:60px;
}

/* IMAGE RATIO FIX (16:9) */
.post-img{
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
}
.post-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:.4s;
}
.post-card:hover img{
  transform:scale(1.08);
}

/* CATEGORY PAGE STYLING*/
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

/* Category Title */
.container h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1e293b;
    border-bottom: 3px solid #38bdf8;
    display: inline-block;
    padding-bottom: 5px;
}

/* Category List */
.container ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.container ul li a {
    text-decoration: none;
    background: #e0f2fe;
    color: #0c4a6e;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 500;
    transition: 0.3s ease;
}

.container ul li a:hover {
    background: #38bdf8;
    color: #fff;
}

/* Post Card */
.post {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.post:hover {
    transform: translateY(-5px);
}

/* Post Title */
.post h3 {
    margin-bottom: 10px;
}

.post h3 a {
    text-decoration: none;
    color: #0f172a;
    font-size: 20px;
    font-weight: 600;
    transition: 0.3s;
}

.post h3 a:hover {
    color: #38bdf8;
}

/* Post Description */
.post p {
    color: #475569;
    line-height: 1.6;
    font-size: 15px;
}

/* Horizontal Line */
hr {
    border: none;
    height: 1px;
    background: #e2e8f0;
    margin: 20px 0;
}

/* READ MORE */
.read-more{
  display:inline-block;
  margin-top:10px;
  font-size:14px;
  font-weight:600;
  color:#0284c7;
  text-decoration:none;
}
.read-more:hover{
  text-decoration:underline;
}
/* RESPONSIVE */
@media(max-width:992px){.container{grid-template-columns:1fr;}.header{justify-content:center;}}
@media(max-width:576px){.post .content h2{font-size:18px;}.post .content p{font-size:14px;}}
