/*
Theme Name: My Custom Theme
Author: Your Name
Description: A custom WordPress theme created step-by-step.
Version: 1.0
*/

/* --- Reset & General Styles --- */

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

html, body {
  width: 100%;
  max-width: 100vw;
  /*overflow-x: hidden;*/
  margin: 0;
  padding: 0;
  background: linear-gradient(120deg, #1f1c2c, #928dab);
  color: white;
}

body {
  font-family: "Poppins", sans-serif;
  font-family: 'Noto Sans Gujarati', sans-serif;
  background-color: #f9f9f9;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
}



/* --- Header Styles --- */
.site-header {
  background: linear-gradient(120deg, #1f1c2c, #928dab);
  /*linear-gradient(45deg, #8e2de2 30%, #6a4caf 50%, #00bcd4 70%)*/
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  display: flex;
  align-items: center; /* Vertically center all content in header */
  min-height: 80px; /* Set a minimum height for the header */
}

/* --- Container --- */
.container {
  width: 90%;
  max-width: 100%;
  height: auto;
  margin: 0 auto 51px auto;
  border-radius: 50px;
  background: linear-gradient(120deg, #1f1c2c, #928dab);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  flex-wrap: wrap; /* Helps in small screens */
  box-sizing: border-box;
}

.container p {
  padding: 0;
  margin-left: 1rem;
  font-size: 0.9rem;
  text-align: center;
  flex: 1 1 60%;
  word-break: break-word; /* Avoid overflow */
}

.container img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Optional: Better control on very small screens */
@media (max-width: 200px) {
  .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .container p {
    margin-left: 0;
    font-size: 0.7rem;
    padding-top: 10px;
  }

  .container img {
    width: 40px;
    height: 40px;
  }
}


/* --- Navbar --- */
.navbar {
  display: flex;
  align-items: center; /* Vertically center navbar items */
  justify-content: space-between; /* This keeps logo left and navbar-right to the right */
  flex-wrap: wrap;
  width: 100%;
}

/* --- Logo --- */
.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  max-width: 120px;
  height: auto;
  vertical-align: middle; /* Ensure logo is vertically centered */
}

/* --- Navbar Right (menu + social links) --- */
.navbar-right {
  display: flex;
  align-items: center; /* Vertical center for navbar-right items */
  gap: 30px;
  flex-wrap: wrap;
  justify-content: flex-end; /* Aligns content to the right */
  margin-left: auto; /* Pushes the navbar-right to the right side */
}

/* --- Navbar Menu --- */
.navbar-menu {
  list-style: none;
  display: flex;
  align-items: center; /* Vertically center menu items */
  gap: 30px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  height: 100%;
}

.navbar-menu li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar-menu li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.navbar-menu li a:hover {
  color: #ffd700;
}

/* --- Navbar Social --- */
.navbar-social {
  display: flex;
  align-items: center; /* Vertically center social icons */
  gap: 15px;
  flex-wrap: wrap;
  height: 100%;
}

.navbar-social a {
  color: #ffffff;
  font-size: 20px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
      text-decoration: none;
}

.navbar-social a:hover {
  color: #ffd700;
}

/* --- Hamburger Styles --- */
.hamburger {
  display: none;
  position: relative;
  width: 30px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 9999;
  padding: 0;
  margin: 0;
  align-self: center; /* Center hamburger vertically */
}

.hamburger div {
  background-color: #fff;
  height: 4px;
  width: 100%;
  transition: all 0.3s ease;
}

/* --- Hamburger Animation to X --- */
.hamburger.active div:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active div:nth-child(2) {
  opacity: 0;
}

.hamburger.active div:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Responsive Styles --- */

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .site-header {
    min-height: 70px;
  }
  
  .site-logo img {
    max-width: 100px;
  }
  
  .navbar-menu {
    gap: 20px;
  }
  
  .navbar-social a {
    font-size: 18px;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .site-header {
    min-height: 60px;
    padding: 10px 15px;
  }
  
  .navbar {
    position: relative;
    align-items: center; /* Ensure vertical centering */
  }
  
  .site-logo {
    z-index: 1000;
    display: flex;
    align-items: center;
  }

  .navbar-right {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start; /* Reset justify-content for mobile */
    background: linear-gradient(120deg, #1f1c2c, #928dab);
    border-radius: 0 0 8px 8px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    margin-top: 10px;
    padding: 0;
    margin-left: 0; /* Reset margin-left for mobile */
  }

  .navbar-right.active {
    max-height: 500px;
    opacity: 1;
    padding: 15px 0;
    opacity: 0.9;
      
  }

  .navbar-menu {
    flex-direction: column;
    width: 100%;
    gap: 15px;
    padding: 0 20px;
    align-items: flex-start;
  }

  .navbar-menu li {
    width: 100%;
  }

  .navbar-menu li a {
    font-size: 14px;
    padding: 5px 0;
    
  }

  .navbar-social {
    width: 100%;
    padding: 15px 20px 0;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hamburger {
    display: flex;
    margin-left: auto; /* Push hamburger to right */
    align-self: center; /* Center hamburger vertically */
  }
}

/* Small Devices (max-width: 560px) */
@media (max-width: 560px) {
  .site-header {
    padding: 8px 10px;
    min-height: 50px;
  }
  
  .site-logo img {
    max-width: 70px;
  }
  
  .navbar-menu li a {
    font-size: 13px;
  }
  
  .navbar-social a {
    font-size: 16px;
  }
  
  .hamburger {
    width: 25px;
    height: 18px;
  }
  
  .hamburger div {
    height: 3px;
  }
}

/* Tiny Devices (max-width: 320px) */
@media (max-width: 320px) {
  .site-header {
    padding: 6px 8px;
    min-height: 45px;
  }
  
  .site-logo img {
    max-width: 60px;
  }
  
  .navbar-menu li a {
    font-size: 12px;
  }
  
  .navbar-social a {
    font-size: 14px;
  }
  
  .hamburger {
    width: 22px;
    height: 16px;
  }
  
  .hamburger div {
    height: 2px;
  }
}

/* Ultra Small Devices (max-width: 240px) */
@media (max-width: 240px) {
  .site-header {
    padding: 5px 6px;
    min-height: 40px;
  }
  
  .site-logo img {
    max-width: 50px;
  }
  
  .navbar-menu li a {
    font-size: 11px;
  }
  
  .navbar-social a {
    font-size: 13px;
  }
}

/* Extreme Small Devices (max-width: 100px) */
@media (max-width: 100px) {
  .site-header {
    padding: 3px 4px;
    min-height: 35px;
  }
  
  .site-logo img {
    max-width: 35px;
  }
  
  .navbar-menu li a {
    font-size: 9px;
  }
  
  .navbar-social a {
    font-size: 10px;
  }
  
  .hamburger {
    width: 18px;
    height: 14px;
  }
  
  .hamburger div {
    height: 2px;
  }
}

.hero-section {
    background-image: url('<?php echo get_template_directory_uri(); ?>/images/herobg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 50vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 200px;
    position: relative;
    flex-wrap: wrap; /* Allow items to wrap on very small screens */
}

.heroimgraj img {
    max-width: 360px;
    height: auto;
    padding-top: 50px;
    vertical-align: middle;
    background: linear-gradient(45deg, #ff3c00 30%, #ff8c00 50%, #ffd700 70%);
    padding: 8px; /* Space between image and ring */
    border-radius: 50%;
    margin-top: 30px
}

.hero-content {
    z-index: 10;
    max-width: 800px;
    padding: 20px;
     color: white;
     font-family: 'Poppins', sans-serif;

}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
    font-weight: bold;
}

.hero-section p {
    font-size: 1.25rem;
    line-height: 1.6;
    font-family: 'Georgia', serif;
}

/* Make it Responsive */
@media (max-width: 1200px) {
    .hero-section {
        padding: 0 100px;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .heroimgraj img {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 0 50px;
        flex-direction: column; /* Stack items vertically */
        height: auto; /* Let height grow if needed */
    }
    .heroimgraj img {
        max-width: 220px;
        margin-bottom: 20px;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 0 20px;
    }
    .heroimgraj img {
        max-width: 150px;
    }
    .hero-section h1 {
        font-size: 1.5rem;
    }
    .hero-section p {
        font-size: 0.9rem;
    }
}

@media (max-width: 200px) {
    .hero-section {
        padding: 0 5px;
    }
    .heroimgraj img {
        max-width: 80px;
    }
    .hero-section h1 {
        font-size: 1rem;
    }
    .hero-section p {
        font-size: 0.7rem;
    }
}
.book-section {
  padding: 5vw;
  background: linear-gradient(120deg, #1f1c2c, #928dab);
}

.book-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 auto;
  gap: 5vw;
}

.book-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.book-description {
  width: 100%;
  font-family: 'Georgia', serif;
  text-align: center;
  padding: 0 2vw;
  color: white;
}

.book-description h2 {
  font-size: clamp(1.2rem, 4vw, 2rem);
  margin-bottom: 4vw;
  margin-left: 0; /* Remove hard-coded margin */
}

.book-description p {
  font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  line-height: 1.6;
  color: white;
}

/* Optional: Responsive layout for larger screens */
@media (min-width: 768px) {
  .book-container {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }

  .book-description {
    text-align: left;
    padding: 0;
  }
}

.tmotc{
display: flex;
    justify-content: center; /* horizontal centering */
    align-items: center;     /* vertical centering (optional) */
    text-align: center;      /* center text inside */
    flex-direction: column;
}

.mfs {
  font-size: clamp(18px, 2.5vw, 27px);
}

.homepage-posts{

margin: 30px;
}

.post-wrapper {
  margin: 40px auto;
  padding: 0 20px;
  max-width: 800px;
}

/* --- Responsive Post Content Fix --- */

article, .post, .entry-content {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* Make sure images don’t overflow */
article img,
.post img,
.entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure code blocks or pre tags don't overflow */
pre,
code {
  max-width: 100%;
  overflow-x: auto;
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* Responsive title wrapping */
article h1, article h2, article h3,
.post h1, .post h2, .post h3 {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.bhs {
  margin: clamp(10px, 3vw, 20px);
}

a, a:visited, a:active, a:hover {
  color: white;
}

/* Optional: improve readability on small screens */
@media (max-width: 600px) {
  body {
    font-size: 16px;
    line-height: 1.6;
    padding: 1rem;
  }

  article {
    padding: 1rem;
  }
}


/* --- Dark-Themed Comment Section for Gradient Background --- */

.comments-area {
  margin-top: 4rem;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.comments-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #ffffff;
  font-weight: 600;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.5rem;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-list li {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  color: #e0e0e0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.comment-author {
  font-weight: 600;
  color: #ffffff;
}

.comment-meta {
  font-size: 0.85rem;
  color: #bbbbbb;
  margin-bottom: 0.75rem;
}

.comment-content {
  font-size: 1rem;
  line-height: 1.6;
}

.comment-reply-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #91aaff;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.comment-reply-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* --- Dark Form --- */

.comment-form {
  margin-top: 3rem;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.comment-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: #e0e0e0;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  transition: border-color 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
  border-color: #91aaff;
  background-color: rgba(255, 255, 255, 0.1);
  outline: none;
}

.comment-form textarea {
  min-height: 120px;
}

.comment-form input[type="submit"] {
  background-color: #91aaff;
  color: #1f1c2c;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.comment-form input[type="submit"]:hover {
  background-color: #b0c8ff;
}
.author-section {
    text-align: center;
    padding: 40px 20px;
}

.author-section img {
    max-width: 100%;
    height: auto;
}

.author-section a {
    color: white;
    text-decoration: none;
}

.navbar-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* makes the list items horizontal */
    gap: 20px; /* space between menu items */
}

.navbar-menu li {
    display: inline-block;
}

.navbar-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 10px 15px;
    transition: color 0.3s;
}

.navbar-menu a:hover {
    color: #0073aa;
}