/*
Theme Name:     Newspaper Child theme
Theme URI: 		http://themeforest.net/user/tagDiv/portfolio
Description:    Child theme made by tagDiv
Author:         tagDiv
Author URI: 	http://themeforest.net/user/tagDiv/portfolio
Template:       Newspaper
Version:        9.0c
*/


/*  ----------------------------------------------------------------------------
    This file will load automatically when the child theme is active. You can use it
    for custom CSS.
*/


.citati {
    text-align: right !important;
    margin-bottom: 10px !important;
}

p.arapski_fix {
    font-family:KFGQPCUthmanTahaNaskh !important;    
    text-align: right !important;
    font-size: 29px !important;
}
.td-post-content.tagdiv-type p.arapski {
    font-family:KFGQPCUthmanTahaNaskh !important;    
    text-align: right !important;
    font-size: 29px !important;
}

.tdb-block-inner.td-fix-index p.arapski {
    font-family:KFGQPCUthmanTahaNaskh !important;    
    text-align: right !important;
    font-size: 29px !important;
}

.tdb-block-inner.td-fix-index p span.inlajn{
    font-family:KFGQPCUthmanTahaNaskh !important;    
    font-size: 29px !important;    
}

.tdb-block-inner.td-fix-index ol li span.inlajn{
    font-family:KFGQPCUthmanTahaNaskh !important;    
    font-size: 29px !important;    
}

.tdb-block-inner.td-fix-index ul li span.inlajn{
    font-family:KFGQPCUthmanTahaNaskh !important;    
    font-size: 29px !important;    
}

.has-fixed-layout tbody tr td span.inlajn{
	    font-family:KFGQPCUthmanTahaNaskh !important;    
    font-size: 29px !important;  
}

.no-border-table tbody tr td{
	border: none !important;
}

.pitanje {
    border-radius: 14px;
    box-shadow: 4px 4px 15px 1px rgba(0, 0, 0, 0.51);
    margin-bottom:18px;
}
.pitanje-naslov{
    padding-top: 8px;
    padding-left: 15px;
    padding-right: 15px; 
    padding-bottom: 5px;
    background-color: rgba(218, 245, 110, 0.76);
    border-radius: 14px 14px 0px 0px;
}

.pitanje-naslov p{
    margin-bottom:0px;
}

.pitanje-tijelo {
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 15px;
}

.pitanje-tijelo p {
    margin-bottom: 0px;
}

/* Hide More From Author from the Related Post section */
.td_block_related_posts .td-related-right {
display:none !important;
}

.tabela-dova{
border:none !important;border-collapse:collapse !important;border-spacing:0 !important;
box-shadow: 4px 4px 15px 1px rgba(0, 0, 0, 0.51);    
    border-radius: 14px;
}


.tabela-dova tr:first-child{
    border:none !important;border-collapse:collapse !important;border-spacing:0 !important;
        background-color: rgba(218, 245, 110, 0.76);
            border-radius: 14px 14px 0px 0px;
}

.tabela-dova tbody tr td p {
    margin-bottom: 6px !important;
}

.tabela-dova tbody tr td {
border:none !important;
    border-radius: 14px 14px 0px 0px;
}

/* 18/05/2024 novi stilovi za DOVE */
/* CSS for styling the prayer */
.prayer-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    background-color: #f9f9f9;
    font-family: 'Arial', sans-serif;
}

.prayer-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f3e7e9 0%, #e3eeff 100%);
    transition: transform 0.2s;
}

.prayer-row:hover {
    transform: scale(1.02);
}

.prayer-row p {
    margin: 5px 0;
}

.arabic {
    font-size: 1.4em;
    color: #d2691e;
    text-align: right !important;
    font-family: KFGQPCUthmanTahaNaskh !important;  
	font-size: 29px !important;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.transliteration {
    font-size: 1.1em;
    color: #555;
    text-align: left;
    font-family: 'Times New Roman', Times, serif;
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
	font-style: italic;
}

.translation {
    font-size: 1.1em;
    color: #333;
    text-align: left;
    font-family: 'Arial', sans-serif;
    padding-top: 5px;
	padding-bottom: 10px;
	border-bottom: double;
	font-style: italic;
}


/* Imam Ali quotes: */

.quote-highlighted-block {
  background: linear-gradient(135deg, #f9d8a0 0%, #f1b579 100%);
  border-left: 5px solid #d68d42;
  padding: 15px;
  margin: 20px 0; 
  border-radius: 8px;
  font-family: 'Arial', sans-serif;
}

.quote-source-text {
  font-weight: bold;
  color: #6a4500;
  margin-bottom: 10px;
}

.quote-arabic-text {
  font-family: KFGQPCUthmanTahaNaskh;
  font-size: 29px;
  text-align: right;
  color: #333;
  margin-bottom: 15px;
}

.quote-translation-text {
  font-size: 1.1em;
  font-style: italic;
  color: #4f2800;
}

/* Mevlud blocks */
.verse-block {
  margin: 1.5rem auto;
  padding: 1.2rem 1.4rem;
  background: #faf8f4;
  border: 1px solid #efe7df;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  text-align: center;
  max-width: 700px;
}

/* Arabic */
.verse-arabic {
  font-size: clamp(22px, 3.3vw, 26px);
  color: #c4601b;
  font-family: KFGQPCUthmanTahaNaskh, serif;
  line-height: 1.4;
  margin: 0.2rem 0;
  padding: 0;
  border: none;
  direction: rtl;
  text-align: center;
}

/* Transliteration */
.verse-translit {
  font-size: clamp(13px, 1.6vw, 18px);
  color: #555;
  font-style: italic;
  line-height: 1.4;
  margin: 0.2rem 0;
  padding: 0;
  border: none;
  text-align: center;
}

/* Translation */
.verse-translation {
  font-size: clamp(13px, 1.7vw, 19px);
  color: #222;
  font-style: normal;
  line-height: 1.4;
  margin: 0.3rem 0;
  padding: 0;
  border: none;
  text-align: center;
}

/* Apply ONLY to tables with both .verse-arabic and .no-border-table classes */
table.verse-arabic.no-border-table,
table.verse-arabic.no-border-table th,
table.verse-arabic.no-border-table td {
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
}

.kasidaSemsudinSarajlic table,
.kasidaSemsudinSarajlic td,
.kasidaSemsudinSarajlic th {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.kasidaSemsudinSarajlic table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

.kasidaSemsudinSarajlic td {
  padding: 6px 10px;
  vertical-align: top;
}

.kasidaSemsudinSarajlic td[colspan="2"] {
  text-align: center;
}



/* === Spacing control between groups === */
/* Add bigger gap when switching from arabic → translit, translit → translation */
.verse-arabic + .verse-translit,
.verse-translit + .verse-translation {
  margin-top: 0.6rem;
}

/* -------------------------------------------------------------- ---- --*/
/* Za kategorije Mjeseci */
/* =======================
   NOVEMBAR / MJESECI CARDS
   ======================= */

/* Wrapper – limit width and center */
.nov-grid {
  list-style: none !important;
  margin: 20px auto 40px;
  padding: 0 10px;
  max-width: 900px; /* makes cards narrower */
}

/* Space between cards */
.nov-grid li + li {
  margin-top: 16px;
}

/* Card layout */
.nov-grid li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 220px; /* text / image */
  grid-template-rows: auto auto;
  grid-template-areas:
    "title  date"
    "excerpt image";
  column-gap: 18px;
  row-gap: 8px;

  padding: 14px 16px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.15s ease-out, transform 0.15s ease-out;
}

/* Colored stripe on the left for a bit of style */
.nov-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 10px 0 0 10px;
  background: linear-gradient(180deg, #49b88f, #f0c674);
}

/* Title */
.nov-title {
  grid-area: title;
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: #222;
}

/* All months under parent 'gregorijanski' */
.mjeseci-page-title {
  margin-top: 30px !important; /* adjust to taste */
}

.empty-div-divider {
  display: none;
}

/* Date */
.nov-date {
  grid-area: date;
  justify-self: end;
  align-self: start;
  font-size: 12px;
  color: #888;
}

/* Excerpt */
.nov-excerpt {
  grid-area: excerpt;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

/* Image on the right */
.nov-grid .nov-img {
  grid-area: image;
}

.nov-grid .nov-img img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Hover effect – subtle lift */
.nov-grid li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Mobile layout */
@media (max-width: 768px) {
  .nov-grid li {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "date"
      "image"
      "excerpt";
  }

  .nov-date {
    justify-self: flex-start;
    margin-bottom: 6px;
  }

  .nov-grid .nov-img img {
    max-width: 100%;
  }
  
  .empty-div-divider {
    display: block;
    height: 70px; /* adjust as needed */
    width: 100%;
  }
}

/* Hidden items for "Load more" logic */
.nov-grid li.nov-hidden {
  display: none;
}

/* =======================
   LOAD MORE BUTTON + LOADING
   ======================= */

.mjeseci-wrapper .nov-load-more {
  margin: 20px auto 40px;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid #49b88f;
  background: #49b88f;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.mjeseci-wrapper .nov-load-more:hover:not(.loading) {
  background: #3aa37d;
  border-color: #3aa37d;
}

/* Loading state */
.mjeseci-wrapper .nov-load-more.loading {
  cursor: default;
  opacity: 0.8;
}

/* Simple spinner on the left of text */
.mjeseci-wrapper .nov-load-more.loading::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  animation: nov-spin 0.6s linear infinite;
}

@keyframes nov-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ----------------------------------------------------------------------------------------------------  */
/* TEMP CODE FOR AMAR BOOK HERE */



/* ===============================
   Book card – SINGLE CTA VERSION
   =============================== */

.book-card{
  max-width: 240px;
  margin-inline: auto;
  display: grid;
  gap: 10px;
}

/* Cover wrapper (controls crop) */
.book-cover-wrap{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);

  /* Crop bottom white space inside image */
  aspect-ratio: 3 / 3.6;
}

/* Cover image */
.book-cover{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Overlay – desktop default */
.book-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;

  background: linear-gradient(
    to top,
    rgba(0,0,0,.75) 0%,
    rgba(0,0,0,.35) 45%,
    rgba(0,0,0,0) 80%
  );

  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}

/* Desktop: show on hover */
.book-cover-wrap:hover .book-overlay,
.book-cover-wrap:focus-within .book-overlay{
  opacity: 1;
  transform: translateY(0);
}

/* Flipbook button (desktop) */
.book-overlay-btn{
  width: 100%;
  height: 44px;
  line-height: 44px;

  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: #fff;

  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);

  border-radius: 0;
  border: 0;
}

/* Caption */
.book-meta{
  text-align: center;
}

.book-title{
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.book-author{
  margin: 4px 0 0;
  font-size: .85rem;
  opacity: .8;
}

/* ===============================
   📱 MOBILE – ALWAYS VISIBLE BOTTOM BAR
   =============================== */
@media (hover: none){

  .book-overlay{
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;

    height: 44px;
    padding: 0;

    opacity: 1;
    transform: none;

    background: rgba(0,0,0,.65);
  }

  .book-overlay-btn{
    height: 100%;
    line-height: 44px;
    font-size: .78rem;
    background: rgba(255,255,255,.18);
  }
}
/* TEMP CODE FOR AMAR BOOK ENDS HERE */

/* ----------------------------------------------------------------------------------------------------  */

/* ----------------------------------------------------------------------------------------------------  */
/* NEW ARABIC + TRANSLATION + TRANSLITERATION STYLING */

/*
  How to use in WP editor:
  <div class="arabic-block">
    <p class="arabic-text" lang="ar" dir="rtl">...</p>
    <p class="bosnian-text">...</p>
    <hr class="arabic-sep">
  </div>

  Optional:
    <p class="translit-text">...</p>
*/

.arabic-block{
  margin: 22px 0;
}

/* ARABIC */
.arabic-text{
  font-family: KFGQPCUthmanTahaNaskh !important;
  direction: rtl;
  unicode-bidi: plaintext;
  text-align: right !important;

  /* “moderate” look */
  font-size: clamp(22px, 2.6vw, 26px);
  line-height: 2.05;
  margin: 0 0 10px 0;

  /* subtle separation without being heavy */
  padding: 10px 14px;
  background: rgba(0,0,0,0.025);
  border-right: 3px solid rgba(0,0,0,0.10);
  border-radius: 10px;
}

/* TRANSLITERATION (optional) */
.translit-text{
  margin: 0 0 10px 0;
  padding: 0 14px;

  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 15px;
  line-height: 1.7;
  font-style: italic;
  color: rgba(0,0,0,0.70);
}

/* BOSNIAN TRANSLATION — make it feel “crafted”, not untouched */
.bosnian-text{
  margin: 0;
  padding: 0 14px;

  /* readability */
  max-width: 68ch;                 /* critical: better line length */
  font-size: 16.5px;
  line-height: 1.95;

  /* tone */
  color: rgba(0,0,0,0.84);
  font-weight: 450;

  /* gentle visual link to Arabic block */
  position: relative;
  padding-left: 16px;
  border-left: 2px solid rgba(0,0,0,0.08);
}

/* Add a small “Prijevod” label automatically (optional but looks pro) */
.bosnian-text::before{
  content: "Prijevod";
  display: inline-block;
  margin: 0 0 6px 0;

  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
}

/* If Bosnian text contains links, keep them elegant */
.bosnian-text a{
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Optional: if you sometimes want italic translation */
.bosnian-text.is-italic{
  font-style: italic;
}

/* MOBILE: keep it comfy and not cramped */
@media (max-width: 600px){
  .bosnian-text{
    max-width: 100%;
    font-size: 15.5px;
    line-height: 1.9;
    padding: 0 12px;
    padding-left: 14px;
  }

  .bosnian-text::before{
    font-size: 10.5px;
  }
}

/* DIVIDER LINE AFTER EACH COMPLETED PAIR */
.arabic-sep{
  border: 0 !important;
  height: 1px;
  margin: 14px 0 50px 0;

  /* clean, soft divider */
  background: linear-gradient(
    to right,
    transparent,
    rgba(0,0,0,0.18),
    transparent
  );
}

/* Ensure last divider can be removed easily by adding .no-sep on last block */
.arabic-block.no-sep .arabic-sep{
  display: none !important;
}

/* MOBILE TUNING */
@media (max-width: 600px){
  .arabic-block{
    margin: 18px 0;
  }

  .arabic-text{
    padding: 9px 12px;
    line-height: 2.0;
    border-right-width: 2px;
    border-radius: 9px;
  }

  .translit-text,
  .bosnian-text{
    padding: 0 12px;
    font-size: 15px;
  }
}


/* CUSTOM TABLE STYLING (ALLAHS NAMES) */

/* wrapper */
.allah-names-wrap {
  max-width: 100%;
}

/* the “2 columns desktop / 1 column mobile” magic */
.allah-names-list {
  list-style: none;
  margin: 0;
  padding: 0;

  column-count: 2;          /* desktop: 2 columns */
  column-gap: 18px;
}

/* each item becomes a “row” inside a column */
.allah-name {
  break-inside: avoid;      /* don’t split an item between columns */
  -webkit-column-break-inside: avoid;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 6px 10px;
  margin: 0 0 8px 0;

  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  background: #fff;
}

/* number */
.allah-name .num {
  width: 34px;
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 34px;
}

/* latin name */
.allah-name .latin {
  flex: 1 1 auto;
  white-space: nowrap;      /* prevents ugly word breaks */
  overflow: hidden;
  text-overflow: ellipsis;  /* safety if very long */
}

/* arabic */
.allah-name .verse-arabic {
  flex: 0 0 auto;
  direction: rtl;
  unicode-bidi: isolate;
  white-space: nowrap;
  font-size: 20px;
  line-height: 1.1;
}

/* mobile: single column, natural order 1..99 vertically */
@media (max-width: 768px) {
  .allah-names-list {
    column-count: 1;
  }

  .allah-name .latin {
    white-space: normal; /* allow wrapping on mobile if needed */
  }

  .allah-name .verse-arabic {
    font-size: 18px;
  }
}

