:root {
  --primary-color: #ffefc3;
  --text-color: #333;
  --bg-light: #fefefe;
  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #f0c040;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(to right, #e0fce6, #e0fce6);
}

.hero-content {
    max-width: 600px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #eee;
    font-size: 0.9rem;
    color: #666;
}

.about {
    background-color: #fff;
    padding: 4rem 2rem;
    text-align: center;
}

.about h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

.about-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.about-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.about-images img {
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-text {
    max-width: 500px;
    text-align: left;
    color: #444;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.about-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1500px;
    margin: 0 auto;
    flex-wrap: wrap;
    padding: 2rem;
    border: 2px solid #ddd;
    border-radius: 12px;     
    background-color: #fefefe; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); 
}

.about-news {
    background-color: #fafafa;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 250px;
    flex: 1;
    min-width: 200px;
}

.about-news h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #222;
}

.about-news ul {
    list-style-type: disc;
    padding-left: 1.2rem;
    color: #444;
}

.about-news li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-news {
        margin-top: 1.5rem;
    }
}


.achievements {
    padding: 4rem 2rem;
    background-color: #fefefe;
    text-align: center;
}

.achievements h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.book-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.book-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.book-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.book-card p {
    font-size: 0.9rem;
    color: #555;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.lightbox.active {
    display: flex;
}

.lightbox:after {
    content: '✕';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.contact {
    background-color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    color: #333;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-box {
    background-color: #f0f4ff; /* soft blue, easy on the eyes */
    border: 1px solid #ccd8f0;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-info p {
    font-size: 1rem;
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-icons {
    margin-top: 1.5rem;
}

.social-icons a {
    margin: 0 0.5rem;
    font-size: 1.5rem;
    color: #333;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #f0c040;
    transform: scale(1.2);
}

.show-more-card {
    cursor: pointer;
    background-color: #f0f4ff;
    border: 2px dashed #ccd8f0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.show-more-card:hover {
    background-color: #e0eaff;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}


.slideshow-container {
    position: relative;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slide {
    display: none;
    animation: fade 1s ease-in-out;
}

.slide img {
    width: 100%;
    border-radius: 12px;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 0.5rem;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    border-radius: 0 3px 3px 0;
    background-color: rgba(0, 0, 0, 0.5);
    user-select: none;
    transition: background 0.3s;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.dots {
    text-align: center;
    padding: 1rem 0;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #333;
}

.bottom-gallery-3x1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 3rem auto;
  padding: 1rem;
}

.bottom-gallery-3x1 .grid-slot {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bottom-gallery-3x1 .grid-slot:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.bottom-gallery-3x1 .grid-slot img {
  width: 100%;
  height: auto;
  display: block;
}

.bottom-gallery-3x1 .grid-slot h4 {
  margin: 0.8rem 0 1rem;
  font-size: 1rem;
  color: #333;
}

.youtube-references {
    background-color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    color: #333;
}

.youtube-references h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.youtube-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.youtube-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.youtube-card img {
    width: 100%;
    max-width: 220px;
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
}

.video-title {
    color: #333;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s;
}

.video-title:hover {
    color: #f0c040;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .youtube-card {
        flex-direction: column;
        text-align: center;
    }
}

iframe {
  width: 100%;
  height: 80vh;
  border: none;
}


@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background: #333;
    width: 100%;
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
  }
}

.menu-toggle {
  display: none;
}


@media (max-width: 500px) {
  .hero {
    padding: 2rem 1rem;
  }
  .hero-content {
    font-size: 0.9rem;
  }
  .about-text p,
  .book-card p,
  .contact-info p {
    font-size: 0.9rem;
}

.book-card h3 {
  font-size: 1rem;
}
}


.modal-content {
  overflow: auto;
  max-height: 90vh;
}


.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
  padding: 0.5rem 1rem;
}

@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  nav ul.nav-links {
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #222;
    width: 100%;
    display: none;
    padding: 1rem;
    z-index: 999;
  }

  nav ul.nav-links.active {
    display: flex;
  }

  nav ul.nav-links li {
    margin: 1rem 0;
  }
}


@media (max-width: 768px) {
  .book-card.open .book-cover {
    display: none;
  }

  .book-card.open .pdf-viewer iframe {
    height: 80vh;
  }
}


.book-cover {
  transition: opacity 0.3s ease;
}
.book-card.open .book-cover {
  opacity: 0;
}


@media (max-width: 768px) {
  .book-card.open .book-cover {
    display: none;
  }

  .book-card.open .pdf-viewer iframe {
    height: 80vh;
  }
}

.pdf-viewer {
  display: none;
}
.book-card.open .pdf-viewer {
  display: block;
}

.book-card.open {
  background-color: #fefefe;
}

.book-card, .youtube-card, .grid-slot {
  padding: 1.2rem;
}

@media (max-width: 768px) {
  .book-grid,
  .youtube-grid,
  .bottom-gallery-3x1 {
    gap: 1rem;
  }
}

nav ul.nav-links {
  transition: max-height 0.4s ease;
  overflow: hidden;
}

@media (max-width: 500px) {
  .lightbox img {
    max-height: 60%;
  }

  .lightbox:after {
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
  }
}

html {
  scroll-behavior: smooth;
}


@media (max-width: 400px) {
  .book-card, .youtube-card, .contact-box {
    padding: 1rem;
  }

  .book-card h3, .video-title {
    font-size: 0.95rem;
  }
}

.galary{
    padding: 4rem 2rem;
    background-color: #fefefe;
    text-align: center;
}

.galary h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;

}