/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fdfdfd;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}


/* Navbar */
.navbar {
    background: #004d40;
    color: #fff;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.4s ease;
}

.navbar.hide {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 62px;
    /* adjust size if needed */
    height: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #00c853;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #fff;
}

/* Header */
header {
    text-align: center;
    padding: 2rem 0;
    background: #e0f2f1;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #004d40;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

header p {
    font-size: 1.1rem;
    color: #555;
}

/* Content */
.content {
    margin: 2rem 0;
    font-size: 1.05rem;
    color: #444;
}

.content strong {
    color: #004d40;
}

/* Actions */
.actions {
    text-align: center;
    padding: 2rem 0;
}

.actions h2 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
    color: #004d40;
}

.actions button {
    margin: 0.5rem;
    padding: 0.9rem 1.6rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #004d40;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, background 0.3s ease;
}

.actions button i {
    font-size: 1.2rem;
}


.actions button:hover {
    background: #00695c;
    transform: translateY(-2px);
}


.images-stack {
    background-color: #e0f2f1;
    border-radius: 20px;
    margin: 0;
    padding: 3rem 0;
    line-height: 0;
    text-align: center;
    /* centers images on desktop when smaller */
}

.images-stack img {
    display: block;
    width: 100%;
    padding: 0 1rem;
    height: auto;
}

/* On larger screens, make images smaller */
@media (min-width: 1024px) {
    .images-stack img {
        width: 70%;
        margin: 0 auto;
    }
}

.listen-section {
    text-align: center;
    padding: 3rem 1rem;
    background: #f9f9f9;
    border-radius: 20px;
    margin: 2rem 0;
}

.listen-section h2 {
    margin-bottom: 1.5rem;
    color: #004d40;
}

.listen-p {
    font-size: 1.05rem;
    text-align: left;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.audio-player {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 650px;
    margin: auto;
}


#play-pause {
    background: #004d40;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

#play-pause:hover {
    background: #00695c;
}

.progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#progress {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 4px;
    background: #ccc;
    outline: none;
    cursor: pointer;
}

#progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #004d40;
    cursor: pointer;
    transition: background 0.2s;
}

#progress::-webkit-slider-thumb:hover {
    background: #00695c;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

#volume {
    width: 80px;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 4px;
    background: #ccc;
    outline: none;
    cursor: pointer;
}

#volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #004d40;
    cursor: pointer;
}

.download-audio {
    text-align: center;
    margin-top: 3rem;
}

.download-audio a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #004d40;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.download-audio a:hover {
    background: #00695c;
    transform: translateY(-2px);
}

.download-audio a i {
    font-size: 16px;
}

/* 🎯 Responsive design */
@media (max-width: 768px) {
    .controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    #play-pause {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .listen-p {
        font-size: 0.95rem;
        padding: 0 0.75rem;
    }

    .progress-container {
        flex: 1 1 100%;
        order: 3;
        justify-content: center;
    }

    #progress {
        width: 100%;
    }

    .time {
        font-size: 12px;
    }

    .volume-container {
        display: none;
    }

    #volume {
        width: 80%;
    }
}

@media (max-width: 480px) {
    .audio-player {
        padding: 15px;
        gap: 12px;
    }

    #play-pause {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .time {
        font-size: 11px;
    }

    #volume {
        width: 70%;
    }
}


/* Surah Info Section */
.surah-info-section {
    padding: 40px 20px;
    background-color: #e0f2f1;
    border-radius: 20px;
}

.surah-info-section h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 900;
    color: #004d40;
}

.table-wrapper {
    overflow-x: auto;
    /* enables scroll on small screens */
}

.surah-info-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.surah-info-table th,
.surah-info-table td {
    padding: 14px 18px;
    text-align: left;
    font-size: 15px;
    border-bottom: 1px solid #eee;
}

.surah-info-table th {
    background: #004d40;
    color: #fff;
    width: 35%;
    font-weight: 700;
}

.surah-info-table td {
    color: #333;
}

.surah-info-table tr:last-child th,
.surah-info-table tr:last-child td {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .surah-info-section h2 {
        font-size: 20px;
    }

    .surah-info-table th,
    .surah-info-table td {
        font-size: 14px;
        padding: 12px 14px;
    }
}

@media (max-width: 480px) {
    .surah-info-section h2 {
        font-size: 18px;
    }

    .surah-info-table th,
    .surah-info-table td {
        font-size: 13px;
        padding: 7px 12px;
    }
}


/* FAQ Section */
.faq-section {
    margin: 2rem 0;
    border-radius: 20px;
    padding: 40px 20px;
    background: #f9f9f9;
}

.faq-section h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 900;
    color: #004d40;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
    /* gap between FAQ items */
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: #f1fffe;
    border: none;
    text-align: left;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    color: #004d40;
    transition: color 0.3s ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 15px;
    /* keep it always to the far right */
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    transition: transform 0.3s ease;
}

/* When active (opened), turn + into × */
.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}


.faq-question:hover {
    color: #00796b;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 15px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* enough for most answers */
    padding: 10px 15px 15px;
}

.faq-answer p {
    margin: 0;
    color: #444;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-section h2 {
        font-size: 20px;
    }

    .faq-question {
        font-size: 15px;
    }

    .faq-answer p {
        font-size: 14px;
    }

    .faq-question {
        font-size: 15px;
        padding: 12px 40px 12px 12px;
        /* still leave space for icon */
    }

    .faq-question::after {
        font-size: 18px;
    }
}



.footer {
    background: #004d40;
    /* same theme as navbar */
    color: #fff;
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
}

.footer-logo img {
    height: 55px;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.footer-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: #00c853;
}

.footer-copy {
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        gap: 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-logo {
        font-size: 16px;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 85px;
        right: 0;
        width: 100%;
        background: #004d40;
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        display: flex;
        flex-direction: column;

        /* Hide by default */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.4s ease;
    }

    .nav-links.active {
        max-height: 500px;
        opacity: 1;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .menu-toggle {
        display: block;
    }
}
































.contact-main {
    width: 100%;
    max-width: 600px;
    background: #e0f2f1;
    border-radius: 20px;
    padding: 40px;
    margin: 2rem auto ;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

label {
    font-weight: 500;
    color: #34495e;
    margin-bottom: 6px;
    display: block;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #004d40;
    background-color: #fff;
}

textarea {
    min-height: 140px;
    resize: none;
}

input:-webkit-autofill{
     -webkit-box-shadow: 0 0 0px 1000px white inset;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.checkbox-container input {
    width: auto;
}

#send-btn {
    background: #004d40;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

#send-btn:hover {
    background: #00695c;
}

#send-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

#form-status {
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

/* Toast notification */
.toast {
    position: fixed;
    top: 110px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100vw);
    transition: transform 0.4s ease;
    max-width: 350px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: #004d40;
}

.toast.error {
    background: #e74c3c;
}

/* Responsive design */
@media (max-width: 768px) {
    .contact-main {
        padding: 30px 25px;
    }

    h2 {
        font-size: 24px;
    }

    input,
    textarea {
        padding: 12px 14px;
    }
}

@media (max-width: 480px) {
    .contact-main {
        padding: 25px 20px;
    }

    h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    #contact-form {
        gap: 16px;
    }

    .toast {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* blogs */

/* Blogs Page Specific Styles */
.blogs-hero {
  background: linear-gradient(0deg, #00796b 0%, #004d40 100%);
  color: white;
  padding: 80px 0 60px;
  text-align: center;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #fff, #e8f4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-box {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 15px 60px 15px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: #004d40;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: #00796b;
  transform: translateY(-50%) scale(1.05);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #004d40;
  margin-bottom: 1rem;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, #00796b, #004d40 );
  margin: 0 auto;
  border-radius: 2px;
}

/* Featured Blog */
.featured-blog {
  margin: 4rem 0;
}

.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}


.featured-image {
  position: relative;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(45deg, #004d40, #00796b);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.blog-category {
  background: #e8f4ff;
  color: #004d40;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-date {
  color: #666;
  font-size: 0.9rem;
}

.blog-date i {
  margin-right: 5px;
}

.blog-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: #004d40;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-excerpt {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat {
  color: #777;
  font-size: 0.9rem;
}

.stat i {
  margin-right: 5px;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(45deg, #004d40, #00796b);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.read-more-btn:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(44, 94, 140, 0.3);
}

/* Blog Categories */
.blog-categories {
  margin: 5rem 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.category-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.category-card:hover {
  transform: translateY(-10px);
  border-color: #004d40;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(45deg, #00796b, #004d40);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.category-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #004d40;
}

.category-card p {
  color: #666;
  font-size: 0.9rem;
}

/* All Blogs Grid */
.all-blogs {
  margin: 5rem 0;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.blog-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.1);
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-meta {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.blog-card-category {
  background: #e8f4ff;
  color: #004d40;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.blog-card-date {
  color: #888;
  font-size: 0.8rem;
}

.blog-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: #004d40;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.blog-card-excerpt {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.blog-card-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #777;
}

.blog-card-link {
  color: #004d40;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.blog-card-link:hover {
  color: #00796b;
  transform: translateX(3px);
}

/* Load More Button */
.load-more-container {
  text-align: center;
  margin-top: 3rem;
}

.load-more-btn {
  background: linear-gradient(45deg, #004d40, #00796b);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.load-more-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 94, 140, 0.3);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Newsletter Section */
.newsletter-section {
  margin: 5rem 0;
}

.newsletter-card {
  background: linear-gradient(180deg, #00796b 0%, #004d40 100%);
  border-radius: 20px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
  color: white;
}

.newsletter-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.newsletter-content p {
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.newsletter-form {
  max-width: 500px;
}

.input-group {
  display: flex;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  font-size: 1rem;
}

.newsletter-input:focus {
  outline: none;
}

.newsletter-btn {
  background: #000000;
  color: #fff;
  border: none;
  padding: 15px 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  background: #000000a8;
}

.newsletter-note {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

.newsletter-icon {
  text-align: center;
  font-size: 4rem;
  opacity: 0.8;
}

/* Utility Classes */
.d-none {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .featured-article {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .featured-image {
    height: 300px;
  }
  
  .newsletter-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .newsletter-icon {
    order: -1;
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .featured-content {
    padding: 1.5rem;
  }
  
  .blog-title {
    font-size: 1.5rem;
  }
  
  .blogs-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .newsletter-card {
    padding: 2rem;
  }
  
  .input-group {
    flex-direction: column;
    border-radius: 15px;
  }
  
  .newsletter-input,
  .newsletter-btn {
    border-radius: 0;
  }
  
  .newsletter-input {
    border-radius: 15px 15px 0 0;
  }
  
  .newsletter-btn {
    border-radius: 0 0 15px 15px;
  }
}

@media (max-width: 480px) {
  .blogs-hero {
    padding: 60px 0 40px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .blog-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .category-card {
    padding: 2rem 1rem;
  }
  
  .newsletter-content h3 {
    font-size: 1.5rem;
  }
}





















/* main blog code */
.breadcrumb {
  background: #f8f9fa;
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb-list li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: #6c757d;
}

.breadcrumb-list a {
  color: #004d40;
  text-decoration: none;
}

.breadcrumb-list a:hover {
  text-decoration: underline;
}

.breadcrumb-list li:last-child {
  color: #6c757d;
}

/* Article Header */
.blog-article {
  padding: 2rem 0;
}

.article-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  padding: 3rem;
  border-radius: 20px;
  margin-left: auto;
  margin-right: auto;
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.article-category {
  background: linear-gradient(45deg, #004d40, #00695c);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.article-date,
.article-read-time {
  color: #666;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: #004d40;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.article-excerpt {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.article-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info {
  text-align: left;
}

.author-name {
  display: block;
  font-weight: 600;
  color: #2c5e8c;
  margin-bottom: 0.25rem;
}

.author-bio {
  color: #666;
  font-size: 0.9rem;
}

.article-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-share span {
  color: #666;
  font-weight: 600;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Featured Image */
.article-featured-image {
  margin: 3rem 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-featured-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.image-caption {
  padding: 1rem;
  background: #f8f9fa;
  text-align: center;
  color: #666;
  font-style: italic;
  font-size: 0.9rem;
  border-top: 1px solid #e9ecef;
}

/* Article Content */
.article-content {
  margin: 4rem 0;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Table of Contents */
.table-of-contents {
  position: sticky;
  top: 100px;
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  border-left: 4px solid #004d40;
}

.table-of-contents h3 {
  font-family: 'Poppins', sans-serif;
  color: #004d40;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.table-of-contents ul {
  list-style: none;
}

.table-of-contents li {
  margin-bottom: 0.75rem;
}

.table-of-contents a {
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f8f9fa;
}

.table-of-contents a:hover {
  color: #00695c;
  padding-left: 0.5rem;
}

/* Main Content */
.main-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.content-section {
  margin-bottom: 3rem;
}

.content-section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: #004d40;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #e8f4ff;
}

.content-section h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: #004d40;
  margin: 2rem 0 1rem;
}

.content-section h4 {
  font-size: 1.2rem;
  color: #004d40;
  margin: 1.5rem 0 0.5rem;
}

/* Special Content Blocks */
.quran-quote {
  background: linear-gradient(135deg, #e8f4ff, #f0f8ff);
  border-left: 4px solid #004d40;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 10px 10px 0;
}

.quran-quote p {
  font-size: 1.2rem;
  font-style: italic;
  color: #00695c;
  margin-bottom: 0.5rem;
}

.quran-quote cite {
  color: #666;
  font-size: 0.9rem;
}

.hadith-box {
  background: #fff9e6;
  border: 1px solid #ffeaa7;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
}

.hadith-icon {
  position: absolute;
  top: -15px;
  left: 20px;
  background: #004d40;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.hadith-box p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.hadith-source {
  color: #666;
  font-size: 0.9rem;
  text-align: right;
  display: block;
}

.tip-box {
  background: #e8f4ff;
  border: 1px solid #004d40;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid #004d40;
}

.benefits-list {
  list-style: none;
  margin: 1.5rem 0;
}

.benefits-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f8f9fa;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.benefits-list li::before {
  content: '✓';
  color: #004d40;
  font-weight: bold;
  flex-shrink: 0;
}

.testimonial-box {
  background: white;
  border: 2px solid #e8f4ff;
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
}

.testimonial-box::before {
  content: '"';
  font-size: 4rem;
  color: #e8f4ff;
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: serif;
}

.testimonial-content p {
  font-size: 1.1rem;
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
}

.testimonial-author {
  text-align: right;
  color: #666;
  font-size: 0.9rem;
}

.enlightenment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.enlightenment-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.enlightenment-item:hover {
  transform: translateY(-5px);
}

.enlightenment-item i {
  font-size: 2rem;
  color: #004d40;
  margin-bottom: 1rem;
}

.enlightenment-item h4 {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.enlightenment-item p {
  font-size: 0.9rem;
  color: #666;
}

.fulfillment-steps {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.fulfillment-steps ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.fulfillment-steps li {
  margin-bottom: 0.75rem;
  color: #555;
}

.peace-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.peace-item {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #e8f4ff, #f0f8ff);
  border-radius: 10px;
}

.peace-item h4 {
  color: #004d40;
  margin-bottom: 0.5rem;
}

.peace-item p {
  font-size: 0.9rem;
  color: #666;
}

.action-plan {
  background: linear-gradient(0deg, #004d40, #00796b);
  color: white;
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
}

.action-plan h3 {
  color: white;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.plan-steps {
  display: grid;
  gap: 1.5rem;
}

.plan-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-number {
  background: #000000;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.step-content h4 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.step-content p {
  color: #e8f4ff;
  opacity: 0.9;
  margin: 0;
}

.final-thoughts {
  background: white;
  border: 2px solid #e8f4ff;
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
}

.cta-box {
  background: linear-gradient(135deg, #e8f4ff, #f0f8ff);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}

.cta-box h4 {
  color: #004d40;
  margin-bottom: 0.5rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #004d40;
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.cta-button:hover {
  box-shadow: 0 8px 20px rgb(0, 77, 64, 0.3);
}

/* Article Footer */
.article-footer {
  border-top: 2px solid #e9ecef;
  padding-top: 2rem;
  margin-top: 3rem;
}

.article-tags {
  margin-bottom: 1.5rem;
}

.article-tags strong {
  color: #004d40;
  margin-right: 1rem;
}

.article-tags a {
  display: inline-block;
  background: #e8f4ff;
  color: #004d40;
  padding: 6px 12px;
  border-radius: 15px;
  text-decoration: none;
  font-size: 0.85rem;
  margin: 0.25rem;
  transition: all 0.3s ease;
}

.article-tags a:hover {
  background: #004d40;
  color: white;
}

.article-actions {
  display: flex;
  justify-content: flex-end;
}

.action-buttons {
  display: flex;
  gap: 1rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #faf8f8;
  border: 1px solid #e9ecef;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.like-btn:hover {
  background: #fff5f5;
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.like-btn.liked {
  background: #fff5f5;
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.share-btn-mobile:hover {
  background: #e8f4ff;
  border-color: #2c5e8c;
  color: #2c5e8c;
}



/* Responsive Design */
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 250px 1fr;
    gap: 2rem;
  }
  
  .article-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .table-of-contents {
    position: static;
    order: -1;
  }
  
  .article-title {
    font-size: 2rem;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .article-author {
    flex-direction: column;
    text-align: center;
  }
  
  .author-info {
    text-align: center;
  }
  
  .article-share {
    flex-direction: column;
  }
  
  .article-featured-image img {
    height: 250px;
  }
  
  .main-content {
    font-size: 1rem;
  }
  
  .content-section h2 {
    font-size: 1.7rem;
  }
  
  .enlightenment-grid,
  .peace-benefits {
    grid-template-columns: 1fr;
  }
  
}

@media (max-width: 480px) {
  .article-title {
    font-size: 1.7rem;
  }

  .cta-button{
    flex-direction: column;
  }
  
  .article-excerpt {
    font-size: 1.1rem;
  }
  
  .action-plan {
    padding: 1.5rem;
  }
  
  .plan-step {
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    align-self: center;
  }
  
  .article-actions {
    justify-content: center;
  }
  
  .action-buttons {
    width: 100%;
    justify-content: center;
  }
}




/* guidance page css */

/* Additional styles for the new blog article */

.important-note {
  background: #5dffe444;
  border: 1px solid #004d40;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.important-note i {
  color: #004d40;
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.historical-context {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.historical-context h4 {
  color: #004d40;
  margin-bottom: 1rem;
}

.historical-context ul {
  list-style: none;
}

.historical-context li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.historical-context li:last-child {
  border-bottom: none;
}

.historical-context strong {
  color: #004d40;
  min-width: 140px;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.theme-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.theme-card:hover {
  transform: translateY(-5px);
  border-color: #004d40;
}

.theme-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #00722f, #004d40);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.theme-card h4 {
  color: #004d40;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.theme-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.benefits-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.benefit-item {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid #004d40;
}

.benefit-item h4 {
  color: #004d40;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.benefit-item h4 i {
  color: #00695c;
}

.benefit-item p {
  color: #555;
  margin: 0;
  font-size: 0.95rem;
}

.heart-reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.reason {
  text-align: center;
  padding: 1.5rem;
}

.reason h4 {
  color: #004d40;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.reason p {
  color: #666;
  font-size: 0.9rem;
}

.practice-guide {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
}

.practice-steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.practice-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-icon {
  background: #00796b;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.step-content h5 {
  color: #004d40;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.step-content p {
  color: #666;
  margin: 0;
  font-size: 0.95rem;
}

.urdu-resources {
  margin: 2rem 0;
}

.resource-card {
  background: linear-gradient(135deg, #e8f4ff, #f0f8ff);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  border: 2px solid #004d40;
}

.resource-card h4 {
  color: #004d40;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.resource-card p {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.resource-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.resource-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #004d40;
  font-weight: 600;
}

.resource-features i {
  color: #28a745;
}

.final-call-to-action {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #005a26, #004d40);
  color: white;
  border-radius: 15px;
  margin: 2rem 0;
}

.final-call-to-action h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.final-call-to-action p {
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.6;
}



/* Responsive adjustments */
@media (max-width: 768px) {
  .themes-grid,
  .benefits-container,
  .heart-reasons {
    grid-template-columns: 1fr;
  }
  
  .resource-features {
    flex-direction: column;
    gap: 1rem;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .practice-step {
    flex-direction: column;
    text-align: center;
  }
  
  .step-icon {
    align-self: center;
  }
  
  .historical-context li {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .historical-context strong {
    min-width: auto;
  }
}