*{
margin:0;
padding:0;
box-sizing:border-box;
font-family: 'Noto Nastaliq Urdu', serif;
}

body{
background:#f2f2f2;
}

/* ===== NAVBAR ===== */
.navbar{
background:#1f5c5c;
display:flex;
justify-content:space-between;
align-items:center;
padding:15px 40px;
color:white;
}

.navbar ul{
display:flex;
gap:80px;
list-style:none;
}

.navbar li{
cursor:pointer;
transition:0.3s;
}

.navbar li:hover{
color:#ffb347;
}
/* Logo size fix */
.logo img {
  width: 120px;     /* اپنی مرضی کی size رکھو */
  height: auto;
  max-width: 100%;
}

/* اگر hero section میں ہے */
.hero-logo img {
  width: 350px;
  height: auto;
}

.donate{
background:#ffb347;
padding:8px 15px;
border-radius:8px;
color:black;
}

/* ===== HERO ===== */
.hero{
background:linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.6)),url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQykM82Zf1pfN2DjATfyTgr6RS8YMsAjUbNLQ&s");
height:80vh;
background-size:cover;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
color:white;
animation:fade 2s;
}

.hero-text h1{
font-size:50px;
}

.hero-text button{
margin-top:20px;
padding:12px 30px;
background:#ffb347;
border:none;
border-radius:8px;
cursor:pointer;
font-size:18px;
}

/* ===== DEPARTMENTS ===== */
.departments{
padding:80px 10%;
text-align:center;
 font-size:30px;
  margin-bottom:40px;
  color:#000000;
}

.dept-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:25px;
margin-top:40px;
}

.card{
background:#1f5c5c;
color:white;
padding:50px;
border-radius:20px;
font-size:22px;
transition:0.4s;
}

.card:hover{
transform:translateY(-10px) scale(1.05);
background:#ffb347;
color:black;
}

/* ===== STATS ===== */
.stats{
background:#1f5c5c;
display:flex;
justify-content:space-around;
padding:50px;
color:white;
}

.stat{
font-size:35px;
animation:count 2s;
}

/* ===== BOOKS ===== */
.books{
  background:#f3f3f3;
  padding:60px 0;
  text-align:center;
}

.books h2{
  font-size:40px;
  margin-bottom:40px;
  color:#000000;
}

/* main layout */
.book-container{
  width:90%;
  margin:auto;
  display:flex;
  justify-content:center;
  gap:40px;
  flex-wrap:wrap;
}

/* card */
.book-card{
  width:250px;
  height:380px;
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,0.1);
  transition:0.4s;
}

/* image fix */
.book-card img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* hover animation */
.book-card:hover{
  transform:translateY(-10px) scale(1.03);
  box-shadow:0 20px 40px rgba(0,0,0,0.15);
}


/* Background Pattern */
.footer {
  background: #1f5b5b url('pattern.png');
  background-size: cover;
  color: #fff;
  padding-top: 60px;
  position: relative;
  overflow: hidden;
  font-family: 'Noto Nastaliq Urdu', serif;
}

/* Container */
.footer-container {
  width: 90%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: right;
}

/* Columns */
.footer-col h3,
.footer-col h2 {
  margin-bottom: 15px;
}

.footer-col p {
  line-height: 1.8;
  opacity: 0.9;
}

/* Links */
.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #00ffb3;
  padding-right: 8px;
}

/* Social Icons */
.social-icons {
  margin-top: 20px;
}

.social-icons a {
  display: inline-block;
  width: 45px;
  height: 45px;
  background: #2c7a7a;
  text-align: center;
  line-height: 45px;
  border-radius: 10px;
  margin-left: 10px;
  color: white;
  font-size: 18px;
  transition: 0.4s;
}

.social-icons a:hover {
  transform: translateY(-8px) scale(1.1);
  background: #00ffb3;
  color: #000;
}

/* Bottom bar */
.footer-bottom {
  background: #154949;
  text-align: center;
  padding: 18px;
  margin-top: 40px;
  font-size: 14px;
}

/* WhatsApp Floating Animation */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  text-align: center;
  line-height: 60px;
  font-size: 28px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: pulse 1.5s infinite;
  transition: 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37,211,102,0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37,211,102,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37,211,102,0);
  }
}

/* Responsive */
@media(max-width: 992px){
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 600px){
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ===== Animations ===== */
@keyframes fade{
from{opacity:0}
to{opacity:1}
}

@keyframes count{
from{transform:scale(0)}
to{transform:scale(1)}
}
@media screen and (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    gap: 10px;
  }
  .hero-text h1 {
    font-size: 30px;
  }
}
