/* --- Custom Font Definition --- */
@font-face {
    font-family: 'Hydari';
    src: url('../fonts/Hydari Nastaleeq.ttf') format('truetype');
}

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700&display=swap'); /* For Fallback */

/* --- General Variables & Styles --- */
:root {
    --primary-color: #009688; /* Turquoise/Teal */
    --secondary-color: #0d47a1; /* Deep Blue for contrast */
    --light-bg: #f8f9fa;
    --dark-text: #333;
    --light-text: #f1f1f1;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
}

body {
    font-family: 'Hydari', 'Vazirmatn', sans-serif; /* Hydari is now the primary font */
    background-color: var(--light-bg);
    color: var(--dark-text);
    /* Islamic Pattern Background */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23009688' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    font-size: 1.1rem; /* Adjust font size for better readability with Nastaliq */
}

/* --- Navbar --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}
.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}
.nav-link { font-weight: 500; transition: color 0.3s ease; }
.nav-link:hover, .nav-link.active { color: var(--primary-color) !important; }

/* --- Hero Banner --- */
.hero-banner {
    height: 60vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)), url('../images/banner.jpg');
    background-size: cover; background-position: center; color: white;
}

/* --- Section Styling --- */
.section-title {
    text-align: center; margin-bottom: 50px; font-weight: 700; position: relative;
}
.section-title::after {
    content: ''; display: block; width: 80px; height: 3px;
    background-color: var(--primary-color); margin: 10px auto 0; border-radius: 2px;
}

/* --- Glassmorphism Card --- */
.glass-card {
    background: var(--glass-bg); backdrop-filter: blur(15px);
    border-radius: 15px; border: 1px solid var(--glass-border);
    transition: all 0.3s ease; box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1); height: 100%;
}
.glass-card:hover {
    transform: translateY(-10px); box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
}

/* --- Quick Access Icons --- */
.quick-access-item .icon-box {
    width: 70px; height: 70px; margin: 0 auto 15px; background-color: white;
    border: 2px solid var(--primary-color); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 1.8rem;
    color: var(--primary-color); transition: all 0.3s ease;
}
.quick-access-item:hover .icon-box {
    background-color: var(--primary-color); color: white; transform: scale(1.1);
}

/* --- News List --- */
.news-list .list-group-item {
    display: flex; align-items: center; border: 0;
    border-bottom: 1px solid #eee; padding: 1.25rem 1rem; transition: all 0.3s ease;
}
.news-list .list-group-item:hover {
    background-color: #f0f8f7; transform: translateX(5px);
}
.news-date {
    background-color: var(--primary-color); color: white; text-align: center;
    padding: 8px; border-radius: 8px; min-width: 60px; margin-inline-end: 15px;
    font-family: 'Vazirmatn', sans-serif; /* Using a numeric font for dates */
}
.news-date span { display: block; font-weight: 700; font-size: 1.2rem; }
.news-title { font-weight: 500; color: var(--dark-text); }
.news-title:hover { color: var(--primary-color); }

/* --- Accordion (Q&A) Customization --- */
.accordion-button {
    font-weight: 500;
}
.accordion-button:not(.collapsed) {
    color: white;
    background-color: var(--primary-color);
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 150, 136, 0.25);
}
.accordion-button::after {
    margin-inline-start: auto;
}

/* --- Publication List --- */
.publication-item {
    display: flex; align-items: center; padding: 10px; border-radius: 8px;
    transition: background-color 0.3s;
}
.publication-item:hover {
    background-color: #e0f2f1;
}
.publication-item i {
    font-size: 1.5rem; color: var(--secondary-color);
}

/* --- Footer --- */
.footer { background-color: #212529; color: #ccc; padding-top: 40px; }
.footer h5 { color: white; }
.footer a { color: #ccc; text-decoration: none; transition: color 0.3s ease; }
.footer a:hover { color: var(--primary-color); }
.footer .copyright { border-top: 1px solid #444; padding-top: 20px; margin-top: 20px; }


element {
}
@media (min-width: 1400px) {
  .containers {
    max-width: 100% !important;

    margin-right: 35% !important;

  }
}

.rounded-circle {
    border-radius: 6% !important;
  }

  .text-end {
    text-align: center !important;
  }

  .col-md-8 p {
    text-align: justify !important;
    line-height: 2 !important;
    font-size: 1.6rem !important;
  }

  .publication-item.aos-init.aos-animate {
    background-color: #e9f2f2 !important;
    margin: 10px !important;
  }

  .news-title.text-decoration-none {
    font-size: 1.8rem !important;
    color: cadetblue !important;
  }

  .accordion-button.collapsed {
    font-size: 1.4rem !important;
    color: darkcyan !important;
  }

  .flex-grow-1 {
    font-size: 1.4rem !important;
    color: #114e66 !important;
  }