
/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background-color: #30354b;
  color: #f5f5f5;
  direction: rtl;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1100px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.goal-text {
  font-size: 1.15rem;
  font-weight: 600;
  background-color: #151823;
  border: 1px solid #645041;
  padding: 1rem 1.2rem;
  border-radius: 0.8rem;
  margin-bottom: 2rem;
  line-height: 1.9;
  text-align: justify;
}


/* ===== modern header and nav tweaks ===== */

.site-header {
  background-color: #10183b;          /* deep navy header */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

/* logo link and design */
.logo a {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.03em;
}

.logo a:hover {
    opacity: 1;
    transform: scale(1.08);
    transition: transform 0.2s ease;
}
/* main nav: nice spacing and hover underline */
.main-nav a {
  margin-left: 1.2rem;
  font-size: 1rem;
  opacity: 0.8;
}

.main-nav a:hover {
    opacity: 1;
    transform: scale(1.08);
    transition: transform 0.2s ease;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-size: 1.5rem;
  background-color: #c1c1c1;
  color: black;
  padding: 0.2rem 1rem;
  border: #a86603 1px solid;
  border-radius: 12px;
  font-weight:bolder
}

.main-nav a {
  position: relative;
  margin: 0;                          /* overrides old margin-left */
  opacity: 0.8;
  padding-block: 0.25rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* animated underline */

.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f97316, #e4c23d);
  border-radius: 999px;
  transition: width 0.80s ease;
}

.main-nav a:hover {
  color: #ffffff;
  opacity: 1;
  background-color: #4b4234;
  border:#a86603 0.5px solid;
  border-radius: 4px;
}

.main-nav a.is-active {
  color: #ffffff;
  opacity: 1;
  background-color: #4b4234;
  border:#a86603 0.5px solid;
  border-radius: 4px;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 100%;
}

/* Hero */
.hero {
  padding: 2rem 0 2rem;
  background-color: rgb(42, 49, 45);
  width: 100%;
  background-image: url(./media/logo.svg);
  background-repeat: repeat-x;
  background-size: contain;
}

.hero-inner {
  display: block
}

.hero h1 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.hero p {
  width: 100%;
  opacity: 0.9;
  font-size: 1.1rem;
  padding: 1rem;
  margin: 1rem;
  text-align: justify;
}

.hero-actions {
  margin-top: 4rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-text .slogan {
    color: #e16314;
    font-weight: bolder;
    font-size: 2.8rem;
    text-align: center;
    font-style: oblique;
    margin-bottom: 5rem;
}

.btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: all 0.50s ease;
}

.btn.primary, .btn.secondary {
  background-color: #1e2333;
  color: white;
  border-color: #f97316;
}

.btn:hover {
  opacity: 0.9;
  cursor: pointer;
}

/* Hover for primary button */
.btn.primary:hover {
  background-color: #f0d9d9;;
  color: #0b0c10;
  transform: scale(1.1);
}

/* Hover for secondary button */
.btn.secondary:hover {
  background-color: #f0d9d9;
  color: #0b0c10;
  transform: scale(1.1);
}

.btn.spotify {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  background-color: #1e2333;
  color: white;
  border-color: #f97316;
}

.btn.spotify:hover {
  background-color: white;
  color: #0b0c10;
}

.btn.youtube {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  background-color: #1e2333;
  color: white;
  border-color: #f97316;
}

.btn.youtube:hover {
  background-color: white;
  color: #0b0c10;
}

/* Articles section on home page */
.text-link {
  display: inline-block;
  color: white;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid #f97316;
  border-radius: 999px;
  transition: all 0.50s ease;
  background-color: #1e2333;
}

.goal-text {
  border:#a86603 solid 2px
}

.text-link:hover {
  background-color: white;
  color: #0b0c10;
}

/* Sections and cards */

.section {
  padding: 2rem 0;
  background-color: #10121a;
}

.section-alt {
  background-color: #293049;
  padding-bottom: 2rem;
}

.section h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.goals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

.card {
  background-color: #151823;
  border-radius: 0.9rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid #645041;
  transition: transform 0.5s ease, background-color 0.8s ease;
}

.card:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 32px rgba(0,0,0,0.45);
  background-color: #39395a;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: white;
}

.card p {
text-align: justify;
font-size: 0.80rem;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.9rem;
}

.section-values {
    background-color: #293049;
    padding: 2rem 0;
}

.section-index {
    padding-top: 2rem;
    background-color: #10121a;
    padding-bottom: 2.5rem;
}

/* ===== Book of the Month ===== */

.book-section {
    background-color: #293049;
    padding: 2rem 0;
    margin-top: 0rem;
}

.book-rec-header {
  margin-bottom: 0rem;
}

.book-rec-header h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.book-rec-subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.8;
}

/* card layout */
.book-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  align-items: stretch;
}

/* cover */
.book-cover {
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-cover img {
  width: 100%;
  max-width: 200px;
  height: 260px;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.12);
}

/* right side content */
.book-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.book-month {
  font-size: 0.8rem;
  opacity: 0.8;
}

.book-title {
  font-size: 1.2rem;
  margin: 0.3rem 0 0.2rem;
}

.book-author {
  font-size: 0.9rem;
  opacity: 0.9;
}

.book-desc {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.9;
  text-align: justify;
}

.book-download {
  margin-top: 1rem;
  align-self: flex-start;
}

/* responsive layout for mobile */
@media (max-width: 720px) {
  .book-card {
    grid-template-columns: 1fr;
  }

  .book-cover img {
    max-width: 180px;
    height: 240px;
  }

  .book-content {
    gap: 0.5rem;
  }
}


/* About */

.about-layout {
  max-width: 800px;
}

.about-layout h1 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

/* Footer */

.site-footer {
  background-color: #10183b;
  border-top: 1px solid rgba(185, 59, 59, 0.05);
  padding: 1rem 0;
  margin-top: 0rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0.85;
  transition: transform 0.3s ease, background-color 0.3s ease;
}


.footer-links a:hover {
  opacity: 1;
  transform: scale(1.1);
}

.footer-links .exmuslimz {
  margin-left: 1rem;
  margin-right: auto;
  padding: 0.3rem 0.8rem;
  border: 1.5px solid white;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* footer icon links */

.footer-links .icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* size of the icons */
.footer-links .icon-link img {
  width: 30px;    /* change 22 to 26 or 20 as you like */
  height: 30px;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* hover effect */
.footer-links .icon-link:hover img {
  transform: scale(1.15);
  opacity: 0.9;
}


/* ===== SHARED INNER PAGE COMPONENTS (ABOUT, ARTICLES, PODCASTS) ===== */

.page-hero h1 {
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
}

.page-hero-subtitle {
  width: 100%;
  opacity: 0.85;
  font-size: 0.95rem;
  text-align: justify;
}

.page-hero p {
  text-align: justify;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0rem;
  gap: 1rem;
}

/* ===== ARTICLES PAGE STYLES ===== */

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.article-card p {
  margin-bottom: 0.9rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  opacity: 0.8;
}

.article-tag {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.6);
  color: #f97316;
  font-size: 0.75rem;
}

.article-date {
  font-size: 0.8rem;
  border: 1px solid rgba(63, 49, 37, 0.8);
  border-radius: 12px;
  padding-inline: 0.4rem;
  padding-block: 0.2rem;
}

/* ===== modern article cards ===== */

/* remove default card padding and let inner content control spacing */
.article-card.modern-article {
  padding: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #645041;
  background-color: #151823;
  transition: transform 0.5s ease, background-color 0.8s ease;
}

.article-card.modern-article:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 32px rgba(0,0,0,0.45);
  background-color: #39395a;
}

/* image area */
.article-card .article-image {
  width: 100%;
  height: 210px;              /* adjust height if you like */
  overflow: hidden;
}

.article-card .article-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card.modern-article:hover .article-image img {
  transform: scale(1.06);
}

/* content area */
.article-card .article-content {
  padding: 1.4rem 1.5rem 1.6rem;
}

/* top meta row: date + tag */
.article-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.50rem;
  opacity: 0.85;
}

/* you already have .article-tag, we just refine it a bit here */
.article-meta-top .article-tag {
  padding: 0.15rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(63, 49, 37, 0.8);
  color: white;
  font-size: 0.68rem;
  font-style: italic;
}

/* title and text */
.article-title {
  margin: 0.4rem 0 0.9rem;
  font-size: 1.15rem;
}

.article-excerpt {
  margin: 0 0 1.4rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* read button inside card */
.article-btn {
    background-color:  #1e2333;
    color: white;
    border-color: #f97316;
    font-size: 0.9rem;
}

.article-btn:hover {
    background-color: #f0d9d9;
    color: #0b0c10;
    transform: scale(1.1);
}


/* ===== PODCASTS PAGE STYLES ===== */

.episodes-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.episode-card h3 {
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
}

.episode-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.9;
}

.episode-number {
  padding: 0.2rem 1rem;
  border-radius: 999px;
  border: 1px solid;
  border-color: #e16314;
  background-color: #293049;
  color: white;
  font-size: 1.1344rem;
}

.episode-number p {
    text-align: justify;
}

.episode-length {
  font-size: 0.8rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  
}

.episode-meta {
  margin-top: 0.6rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.8;
}

.episode-topic {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.episode-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.episode-date {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
}

/* ===== ABOUT PAGE STYLES ===== */

/* You already have .about-layout and .about-layout h1, here we only add layout and extra text styling */
.about-layout {
  display: grid;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  column-gap: 2rem;
}

.about-layout > div {
  padding: 1rem;
  border: 1px solid #645041;
  border-radius: 0.8rem;
  background-color: #151823;  /* matches your cards */
  transition: transform 0.5s ease, background-color 0.8s ease;
}

.about-layout > div:hover {
  opacity: 1;
  box-shadow: 0 14px 32px rgba(0,0,0,0.45);
  transform: scale(1.04);
  background-color: #39395a;
}

.about-layout h2 {
  margin-bottom: 0.6rem;
}

.about-text p {
  margin-bottom: 1rem;
  opacity: 0.9;
  text-align: justify;
  font-size: 14px;
}

/* Contact Section */
.contact-section {
  padding: 3rem 0;
  background-color: #10121a;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-grid p {
  text-align: justify;
}

/* === Static Social Nav Card (Contact section) === */

.social-nav-card {
  background: #0f111a;
  border-radius: 1rem;
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  direction: rtl;
  margin-top: 1.5rem;
  max-width: 280px;        /* adjust if you want wider */
}

/* Each social item */
.social-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  background: rgba(255,255,255,0.03);
  color: #ffffff;
  text-decoration: none;
  opacity: 0.85;
  transition: background 0.5s ease,
              transform 0.8s ease,
              box-shadow 0.8s ease,
              opacity 0.8s ease;
}

.social-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.9;
  transition: transform 0.8s ease;
}

/* Hover animation */
.social-item:hover {
  background: #39395a;   /* your orange accent */
  transform: translateX(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.45);
  opacity: 1;
}

.social-item:hover img {
  transform: scale(1.04);
}

/* Mobile: center the card */
@media (max-width: 720px) {
  .social-nav-card {
    margin-inline: auto;
  }
}


/* Contact form */
.contact-form {
  background-color: #151823;
  padding: 1.5rem;
  border-radius: 0.8rem;
  border: 1px solid #645041;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-form label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #0f111a;
  color: white;
  font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #f97316;
  outline: none;
}

.contact-form button {
  margin-top: 0.8rem;
  align-self: flex-start;
  font-family: inherit;
}

/* Mobile */
@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    text-align: center;
  }

  .contact-social {
    justify-content: center;
  }

  .contact-form button {
    margin: 1rem auto 0;
  }
}

/* ==================== MEDIA QUERIES ==================== */

/* ---------- Desktop and tablets (≥720px) ---------- */
@media (min-width: 720px) {

  /* existing rules */
  .goals-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .two-column {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}


/* ---------- Mobile (≤720px) ---------- */
@media (max-width: 720px) {

  /* existing rules */
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .main-nav a {
    margin-left: 0.6rem;
  }

  /* ----- footer improvements for mobile ----- */
  .footer-inner {
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

    /* icons stay on the first row */
  .footer-links a:not(.exmuslimz) {
    order: 1;
  }

  .footer-inner > div:first-child {
    order: 2;
    margin-top: 0.75rem;
  }

  /* text link goes on its own row under the icons */
  .footer-links .exmuslimz {
    order: 2;
    width: 100%;
    text-align: center;
    margin-top: 0.75rem;
    margin-inline: 0;   /* remove any previous auto margins */
  }
}

/* ===== RESPONSIVE LAYOUT FOR INNER PAGES ===== */

@media (min-width: 720px) {
  .articles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .episodes-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* very small screens: iPhone width etc. */
@media (max-width: 480px) {

  .header-inner {
    padding: 0.5rem 0;
  }
  .logo img {
    height: 44px;
  }
  
  .logo a {
    font-size: 1.1rem;
  }
  .main-nav {
    gap: 0.3rem;          /* less space between links */
    font-size: 0.90rem;   /* slightly smaller text */
  }

  .main-nav a {
    padding: 0.2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .hero-text .slogan {
    font-size: 1.7rem;
  }
}

/* small screens: slightly tighter nav */
@media (max-width: 720px) {
  .main-nav {
    gap: 1.4rem;
    font-size: 0.9rem;
  }
}

/* ---------- Extra fix: small phones like Galaxy S23 (≤ 460px) ---------- */
@media (max-width: 460px) {

  /* header layout */
  .header-inner {
    flex-direction: column;
    align-items: flex-start;      /* keeps right alignment in RTL */
    padding: 0.6rem 1rem;
    gap: 0.5rem;                  /* space between logo and nav */
  }

  .logo {
    width: 100%;
    text-align: center;
  }

  /* logo a bit smaller on phones */
  .logo a {
    font-size: 1.4rem;
    justify-content: start;
  }

  /* nav: allow wrapping and tighter spacing */
  .main-nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;              /* if needed, links go to second line */
    justify-content: center;
    column-gap: 0.75rem;
    row-gap: 0.9rem;
    font-size: 0.9rem;
  }

  .main-nav a {
    margin: 0;
    padding-block: 0.2rem;
  }
}

