/* Header Styles */
header {
    background: linear-gradient(135deg, white, white);
    color: #015ea1;
    padding: 15px 0;
    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;
    
}

/* ہیڈر 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 */
.top-bar {
    background-color: #34495e;
    padding-top: 10px;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #f1c40f;
    flex-wrap: wrap;
}

.top-bar span {
    margin: 0 0px;
    padding-bottom: 10px;
    padding: 0px;
}

/* نیوز ٹکر کا بنیادی ڈیزائن */
.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: 1rem;
    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.9rem; /* Smaller font size for mobile */
        padding: 6px 10px; /* Adjust padding */
    }

    nav .verification {
        margin-top: 5px; /* Reduce space above */
    }
}
/* نیوز ٹکر کا بنیادی ڈیزائن */
.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: 1rem;
    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.9rem; /* Smaller font size for mobile */
        padding: 6px 10px; /* Adjust padding */
    }

    nav .verification {
        margin-top: 5px; /* Reduce space above */
    }
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}
/* Fade-in animation for date/time updates */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Slide-in animation for verification result */
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Apply animations to elements */
#currentDate, #currentTime, #islamicDate, #verificationResult {
    transition: opacity 4.5s ease-in-out, transform 4.5s ease-in-out;
}
.news-card {
  border: 1px solid #ccc;
  border-radius: 12px;
  margin: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  background: #f9f9f9;
}
.news-img {
  max-width: 100%;
  border-radius: 10px;
}
.news-content h2 {
  font-size: 1.2em;
  color: #003366;
}
.news-content p {
  font-size: 1em;
  margin: 8px 0;
}
.news-content small {
  color: #777;
}
/*/////////////////////////////////////*/
/* News Container */
/* News Container */
.news-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 300px;
    max-width: 350px;
    position: relative;
    padding-top: 20px;
}

/* Add this to your CSS file */
.news-title {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1.5rem;
    color: #004080;
    margin: 10px 0;
    padding: 5px;
    text-align: center;
    border-bottom: 2px solid #f1c40f;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-title:hover {
    color: #015ea1;
    transform: scale(1.02);
}

/* For Urdu/RTL support */
.news-title.urdu {
    direction: rtl;
    font-size: 1.8rem;
    line-height: 1.6;
}
.news-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Ensures no overflow of content */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 15px;
    transition: transform 0.3s ease;
}

/* Bounce Animation for Image */
@keyframes bounce {
    0% {
        transform: translateY(0); /* Start at normal position */
    }
    50% {
        transform: translateY(-10px); /* Bounce up */
    }
    100% {
        transform: translateY(0); /* Go back to original position */
    }
}

/* Image Styling with Bounce Animation */
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    animation: bounce 2s ease-in-out infinite; /* Apply bounce effect */
}

/* Hover Effect on Image */
.news-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.news-image a:hover img {
    opacity: 0.9;
}

/* News Card Hover Effect */
.news-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .news-card {
        padding: 10px;
        height: 250px;
    }

    .news-title {
        font-size: 16px;
    }

    .news-grid {
        display: grid;
        grid-template-columns: 1fr; /* 1 column for mobile */
        gap: 10px;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .news-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
        gap: 15px;
    }
}

/* Desktop Styles */
@media (min-width: 1025px) {
    .news-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4 columns for desktop */
        gap: 20px; /* space between grid items */
    }
}
/* ✅ 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 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 ease;
}

/* ✅ Hover Zoom Effect */
#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;
  }
}
