/* Header Styles */
header {
    background: linear-gradient(135deg, white, white);
    color: #015ea1;
 
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: slideDown 1s ease-in-out forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ✅ ABC CERTIFIED مارکی انیمیشن - نیلے شیڈ میں */
.certified-marquee {
    position: fixed;
    top: 10px;
    left: 0;
    width: 100%;
    z-index: 9999; /* ہمیشہ سب سے اوپر رہے گا */
    overflow: hidden;
    background: linear-gradient(to right, #01662e, #0f8a65); /* نیلے رنگ کا شاندار شیڈ */
    padding: 10px 0;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 255, 0.3);
}

/* ✅ مارکی کا ٹیکسٹ */
.certified-marquee span {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    animation: marqueeText 20s linear infinite;
    white-space: nowrap;
}

/* ✅ مارکی ایفیکٹ */
@keyframes marqueeText {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* 📌 موبائل ویو کے لیے */
@media (max-width: 768px) {
    .certified-marquee span {
        font-size: 1rem;
    }
}
/* Logo Styling */
/* ہیڈر h1 کا نیا اسٹائل */
/* h1 کنٹینر */
.h1-container {
    display: flex;
    justify-content: center; /* سینٹر میں رکھنے کے لیے */
    align-items: center;
    text-align: center;
    padding: 20px;
    
}
.nav-container {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 10px;
    padding-right: 10px;
}

.nav-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgb(0, 0, 0);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 999px; /* Fully rounded */
    font-family: sans-serif;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: darkred;
}
/* ہیڈر h1 */
#homeButton {
    margin: 10px;
    font-size: clamp(2.3rem, 5vw, 3rem); /* ریسپانسیو فونٹ سائز */
    font-weight: 900; /* اضافی بولڈ */
    font-family:'Jameel Noori Nastaleeq', Arial, sans-serif;
 
    color: #015ea1;
    padding: 10px 30px;
    border: 2px solid #a10101;
    border-radius: 80px;
    display: inline-block;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4); /* چاروں طرف شیڈو */
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* ہور ایفیکٹ */
#homeButton:hover {
    transform: scale(1.05);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5); /* شیڈو مزید گہرا ہوگا */
}

/* ریسپانسیو ڈیزائن */
@media (max-width: 768px) {
    #homeButton {
        font-size: 2rem;
        padding: 8px 20px;
    }
}

@media (max-width: 480px) {
    #homeButton {
        font-size: 2rem;
        padding: 6px 15px;
    }
}


.whatsapp-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 10px; /* تھوڑا نیچے لے جانے کے لیے */
}

.whatsapp-link {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.social-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* بٹن کے درمیان جگہ */
    flex-wrap: wrap; /* موبائل پر بٹن نیچے آجائیں گے */
    margin-top: 10px;
}

.social-link {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.whatsapp {
    background-color: #25D366;
}

.whatsapp:hover {
    background-color: #1eb85d;
    transform: scale(1.08);
}

.facebook {
    background-color: #1877F2;
}

.facebook:hover {
    background-color: #165BBD;
    transform: scale(1.08);
}

.social-icon {
    width: 25px;
    height: 25px;
}

@media (max-width: 600px) {
    .social-container {
        flex-direction: column;
        gap: 10px;
    }
}
.call {
    background-color: #015ea1;
}

.call:hover {
    background-color: #e64a19;
    transform: scale(1.08);
}


/*facebook */
/* Top Bar */
/* Top Bar */


/* نیوز ٹکر کا بنیادی ڈیزائن */
.news-ticker {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #222;
    padding: 8px 0;
    white-space: nowrap;
    direction: ltr; /* لیفٹ ٹو رائٹ ڈائریکشن */
}

/* ٹکر کنٹینٹ */
.news-ticker-content {
    padding: 0px;
    display: flex;
    animation: newsTicker 20s linear infinite;
}

/* کی فریم اینیمیشن (Left to Right) */
@keyframes newsTicker {
    from { transform: translateX(-100%); } /* بائیں سے شروع ہوگا */
    to { transform: translateX(100%); } /* دائیں طرف جائے گا */
}

/* نیوز آئٹمز */
.news-ticker-content span {
    display: inline-block;
    padding: 0 30px;
    font-size: 2rem;
    font-weight: bold;
    color: #f1c40f;
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', Arial, sans-serif;
    white-space: nowrap;
}

/* موبائل کے لیے بہتر ڈیزائن */
@media screen and (max-width: 768px) {
    .news-ticker-content {
        animation: newsTicker 15s linear infinite; /* موبائل پر تھوڑا تیز کریں */
    }

    .news-ticker-content span {
        font-size: 1rem;
        padding: 0 15px;
    }
}

/* چھوٹے موبائل فونز کے لیے */
@media screen and (max-width: 480px) {
    .news-ticker-content {
        animation: newsTicker 12s linear infinite;
    }

    .news-ticker-content span {
        font-size: 0.9rem;
        padding: 0 10px;
    }
}


/* نیویگیشن بار کا بنیادی ڈیزائن */
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu&display=swap');

/* Navigation */
nav {
    background: #222;
    padding: 10px 0; /* Add some padding */
    text-align: center;
    width: 100%;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
}

nav ul li {
    margin: 5px 10px; /* Adjust margin */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    display: inline-block;
    transition: all 0.3s ease-in-out;
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', Arial, sans-serif;
    white-space: nowrap;
}

nav ul li a:hover {
    color: #f1c40f;
    transform: scale(1.1);
}

/* Verification Link - Next Line and Centered */
nav .verification {
    width: 100%; /* Take full width */
    text-align: center; /* Center the link */
    margin-top: 10px; /* Add space above */
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: row; /* Keep items in a row */
        justify-content: center;
        flex-wrap: wrap; /* Allow wrapping */
    }

    nav ul li {
        margin: 5px; /* Reduce margin for smaller screens */
    }

    nav ul li a {
        font-size: 0.8rem; /* Smaller font size for mobile */
        padding: 5px; /* Adjust padding */
    }

    nav .verification {
        margin-top: 5px; /* Reduce space above */
    }
}
/* Newspaper Style with Fixed Layout and Static Images */
.news-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto; /* Centered with no extra side space */
    background-color: #f9f7f0;
    box-sizing: border-box; /* Prevents overflow */
}

/* Grid Layout - Strict 2 columns on desktop */
.news-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Strict 2 columns */
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* News Item Styling */
.news-item {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e8e8;
    width: 100%; /* Ensures no horizontal overflow */
    box-sizing: border-box;
}

/* Image Container - Auto-resizing */
.news-item .image-container {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9; /* Maintains proportion */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f1f1f1;
}

/* Static Image - No hover effects */
.news-item img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain; /* Shows full image without cropping */
    display: block;
}

/* Content Styling */
.news-item .content {
    padding: 15px;
    box-sizing: border-box;
}

.news-item h3 {
    font-size: 1.3rem;
    color: #8B0000;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.news-item p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .news-container {
        grid-template-columns: 1fr; /* Single column on mobile */
        padding: 0 10px; /* Small side padding on mobile */
    }
    
    .news-item .image-container {
        aspect-ratio: 4/3; /* Slightly wider on mobile */
    }
}

/* Remove all hover effects */
.news-item:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Same as normal state */
}
/* ========================= */
/*   News Content Styles     */
/* ========================= */
.news-item h3 {
    font-size: 1.2rem;
    color: #015ea1;
    margin: 10px 0;
    padding: 0 10px;
}

.news-item p {
    font-size: 0.9rem;
    color: #555;
    text-align: justify;
    padding: 0 10px;
    margin: 0;
}

/* ========================= */
/*      Responsive Design    */
/* ========================= */
@media (max-width: 992px) {
    .news-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .news-container {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }

    .news-item .image-container {
        aspect-ratio: 4 / 3; /* Adjust aspect ratio for smaller screens */
    }
}

@media (max-width: 480px) {
    .news-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .news-item .image-container {
        aspect-ratio: 3 / 2; /* Adjust aspect ratio for mobile screens */
    }
}
/* ========================= */
/*        Footer Styles      */
/* ========================= */
footer {
    background: #015ea1;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}

/* ========================= */
/*      Responsive Design    */
/* ========================= */
@media (max-width: 992px) {
    .news-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    #homeButton {
        font-size: 1.6rem;
        padding: 8px 18px;
    }

    .news-container {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }

    .news-item .image-container {
        height: 200px;
    }
}

@media (max-width: 480px) {
    #homeButton {
        font-size: 1.4rem;
        padding: 6px 15px;
    }

    .news-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .news-item .image-container {
        height: 180px;
    }
}

/* ✅ WhatsApp Floating Button Position */
#whatsapp-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  z-index: 9999;
  animation: flipBounce 5s infinite;
}

/* ✅ WhatsApp Icon Styling */
#whatsapp-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  z-index: 9999;
  animation: flipBounce 3s ease-in-out infinite;
}

#whatsapp-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(0, 128, 0, 0.3);
  transition: transform 0.3s;
}

@keyframes flipBounce {
  0% { transform: rotateY(0deg); }
  20% { transform: rotateY(180deg); }
  40% { transform: rotateY(360deg); }
  60% { transform: translateY(-10px); }
  70% { transform: translateY(0px); }
  80% { transform: translateY(-5px); }
  90% { transform: translateY(0px); }
  100% { transform: rotateY(0deg); }
}

@media (max-width: 600px) {
  #whatsapp-btn {
    width: 50px;
    height: 50px;
  }
}

