
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');


:root{
--primary-blue:#2F8FFF;
--secondary-blue:#4DA3FF;

--dark:#0A0A0A;
--dark-secondary:#121212;

--white:#FFFFFF;
--light:#F8FAFC;

--gray:#64748B;
--border:#E2E8F0;

--shadow-sm:
0 5px 15px rgba(0,0,0,.08);

--shadow-md:
0 10px 30px rgba(0,0,0,.12);

--shadow-lg:
0 25px 60px rgba(0,0,0,.15);

}

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

html{
scroll-behavior:smooth;
}

body{
font-family:'Inter',sans-serif;
background:#fff;
color:#111827;
overflow-x:hidden;
line-height:1.8;
}

/* ==========================
TYPOGRAPHY
========================== */

h1,h2,h3,h4,h5,h6{
font-family:'Cormorant Garamond',serif;
}

a{
text-decoration:none;
}

img{
max-width:100%;
display:block;
}

/* ==========================
CONTAINER
========================== */

.container{
width:100%;
max-width:1300px;
margin:auto;
padding:0 25px;
}

/* ==========================
HEADER
========================== */

.header{
position:fixed;
top:0;
left:0;
width:100%;
z-index:9999;

background: #4DA3FF;

/* backdrop-filter:blur(18px); */
/* -webkit-backdrop-filter:blur(18px); */

border-bottom:
1px solid rgba(255,255,255,.15);

transition:.4s ease;

}

.header.scrolled{
background:rgba(10,10,10,.85);


box-shadow:
0 15px 40px rgba(0,0,0,.2);


}

.header-container{
display:flex;
justify-content:space-between;
align-items:center;


padding:18px 40px;


}

.logo img{
width:80px;
transition:.4s ease;
}

.logo img:hover{
transform:scale(1.05);
}

/* ==========================
DESKTOP NAVIGATION
========================== */

.desktop-nav{
display:flex;
gap:35px;
}

.nav-link{


color:white;

font-size:.82rem;

font-weight:600;

letter-spacing:1px;

position:relative;

transition:.3s ease;


}




/* color:var(--primary-blue); */


}

.nav-link::after{


content:'';

position:absolute;

bottom:-8px;
left:0;

width:0;
height:2px;

background:var(--primary-blue);

transition:.3s ease;


}

.nav-link:hover::after,
.nav-link.active::after{


width:100%;


}

/* ==========================
HEADER RIGHT
========================== */

.header-right{


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


}

.blog-btn{


padding:12px 22px;

border:1px solid var(--primary-blue);

border-radius:50px;

color:white;

font-size:.8rem;

font-weight:600;

transition:.4s ease;


}

.blog-btn:hover{


background:var(--primary-blue);

transform:translateY(-2px);


}

/* ==========================
THEME TOGGLE
========================== */

.theme-toggle{


background:none;
border:none;

cursor:pointer;

font-size:1.2rem;

color:white;


}

/* ==========================
MOBILE MENU BUTTON
========================== */

.menu-toggle{


display:none;

flex-direction:column;

gap:5px;

background:none;
border:none;

cursor:pointer;


}

.menu-toggle span{


width:25px;
height:2px;

background:white;


}

/* ==========================
MOBILE NAVIGATION
========================== */

.mobile-menu{


position:fixed;

top:80px;
left:-100%;

width:100%;
height:auto;

background:#0A0A0A;

transition:.4s ease;

z-index:999;


}

.mobile-menu.active{


left:0;


}

.mobile-nav-link{


display:block;

padding:18px 30px;

color:white;

border-bottom:
1px solid rgba(255,255,255,.08);


}

/* ==========================
HERO SECTION
========================== */

.hero{


position:relative;

height:100vh;

display:flex;
justify-content:center;
align-items:center;

text-align:center;

overflow:hidden;


}

.hero-background{


position:absolute;

inset:0;

background-size:cover;
background-position:center;

animation:
heroZoom 18s ease-in-out infinite alternate;


}

.hero-overlay{


position:absolute;

inset:0;

background:
linear-gradient(
rgba(0,0,0,.55),
rgba(0,0,0,.75)
);


}

.hero-content{


position:relative;

z-index:2;

max-width:900px;

padding:20px;

color:white;

animation:
heroFade 1.4s ease;


}

.hero-title{


font-size:
clamp(3rem,7vw,5.5rem);

font-weight:700;

line-height:1.1;

margin-bottom:15px;


}

.hero-subtitle{

font-size:1.25rem;

color:rgba(255,255,255,.9);

margin-bottom:35px;

letter-spacing:.5px;


}

/* ==========================
CTA BUTTON
========================== */

.cta-button{


display:inline-block;

padding:16px 38px;

background:var(--primary-blue);

color:white;

border-radius:50px;

font-weight:600;

transition:.4s ease;


}

.cta-button:hover{


transform:
translateY(-4px);

box-shadow:
0 15px 35px rgba(47,143,255,.35);


}

/* ==========================
SOCIAL ICONS
========================== */

.social-icons{


margin-top:40px;

display:flex;
justify-content:center;
gap:20px;

}

.social-link{


width:55px;
height:55px;

display:flex;
align-items:center;
justify-content:center;

border-radius:50%;

background:
rgba(255,255,255,.12);

backdrop-filter:blur(10px);

color:white;

font-size:1.3rem;

transition:.4s ease;


}

.social-link:hover{


background:var(--primary-blue);

transform:
translateY(-8px)
scale(1.08);


}

/* ==========================
SCROLL INDICATOR
========================== */

.scroll-indicator{


position:absolute;

bottom:30px;

left:50%;

transform:translateX(-50%);

z-index:2;

color:white;

font-size:2rem;

animation:
floating 2s ease infinite;


}

/* ==========================
ANIMATIONS
========================== */

@keyframes heroZoom{


from{
    transform:scale(1);
}

to{
    transform:scale(1.08);
}


}

@keyframes heroFade{


from{
    opacity:0;
    transform:translateY(50px);
}

to{
    opacity:1;
    transform:translateY(0);
}


}

@keyframes floating{


0%{
    transform:translateY(0);
}

50%{
    transform:translateY(-10px);
}

100%{
    transform:translateY(0);
}


}

/* ==========================
RESPONSIVE
========================== */

@media(max-width:992px){

.desktop-nav,
.blog-btn{

display:none;
}

.menu-toggle{

display:flex;
}
}

@media(max-width:768px){

.hero-title{
font-size:2rem;
}

.hero-subtitle{
font-size:0.55rem;
}

.header-container{
padding:15px 20px;
}

}
/* ====================================
   RESEARCH & PUBLICATIONS SECTION
==================================== */

.research-section{
    padding:120px 8%;
    background:var(--white);
}

.research-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:35px;
}

.research-card{
    background:#fff;
    padding:35px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
    transition:.4s ease;
    position:relative;
    overflow:hidden;
}

.research-card::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:4px;
    background:var(--gold);
}

.research-card:hover{
    transform:translateY(-10px);
    box-shadow:0 25px 60px rgba(0,0,0,.12);
}

.research-card h3{
    font-size:1.5rem;
    margin-bottom:15px;
    color:var(--navy);
}

.research-card p{
    color:var(--text-light);
    line-height:1.8;
}

/* ====================================
   ABOUT PREVIEW
==================================== */

.about-preview{
    padding:120px 8%;
    background:#f9fafc;
}

.about-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px;
    align-items:center;
}

.about-image img{
    width:100%;
    border-radius:25px;
    box-shadow:0 20px 50px rgba(0,0,0,.12);
}

.about-content h2{
    font-size:3rem;
    margin-bottom:25px;
    color:var(--navy);
}

.about-content p{
    font-size:1.05rem;
    line-height:2;
    color:var(--text-light);
    margin-bottom:20px;
}

.read-more{
    display:inline-block;
    padding:14px 32px;
    background:var(--gold);
    color:white;
    text-decoration:none;
    border-radius:50px;
    font-weight:600;
    transition:.4s;
}

.read-more:hover{
    transform:translateY(-4px);
}

/* ====================================
   LATEST INSIGHTS
==================================== */

.news-section{
    padding:120px 8%;
    background:white;
}

.news-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:35px;
}

.news-card{
    background:white;
    padding:35px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.4s ease;
}

.news-card:hover{
    transform:translateY(-10px);
}

.news-date{
    color:var(--gold);
    font-weight:600;
    margin-bottom:15px;
}

.news-card h3{
    color:var(--navy);
    margin-bottom:15px;
}

.news-card p{
    color:var(--text-light);
    line-height:1.8;
}

.news-link{
    color:var(--gold);
    text-decoration:none;
    font-weight:600;
}

/* ====================================
   SPEAKING & ENGAGEMENTS
==================================== */

.events-section{
    padding:120px 8%;
    background:#f7f9fc;
}

.events-list{
    display:flex;
    flex-direction:column;
    gap:25px;
}

.event-card{
    display:flex;
    gap:30px;
    background:white;
    padding:30px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
    transition:.4s;
}

.event-card:hover{
    transform:translateX(10px);
}

.event-date{
    min-width:90px;
    text-align:center;
    background:var(--gold);
    color:white;
    border-radius:15px;
    padding:15px;
}

.date-day{
    display:block;
    font-size:2rem;
    font-weight:700;
}

.date-month{
    font-size:.9rem;
    letter-spacing:1px;
}

.event-info h3{
    color:var(--navy);
    margin-bottom:10px;
}

.event-location{
    color:var(--gold);
    margin-bottom:10px;
}

.event-desc{
    color:var(--text-light);
    line-height:1.8;
}

.event-link{
    display:inline-block;
    margin-top:15px;
    color:var(--gold);
    text-decoration:none;
    font-weight:600;
}

/* ====================================
   FOOTER
==================================== */

.footer{
    background:var(--navy);
    color:white;
    padding:80px 8% 30px;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:50px;
    margin-bottom:50px;
}

.footer-section h4{
    margin-bottom:20px;
    color:white;
}

.footer-section ul{
    list-style:none;
}

.footer-section ul li{
    margin-bottom:12px;
}

.footer-section a{
    color:rgba(255,255,255,.75);
    text-decoration:none;
    transition:.3s;
}

.footer-section a:hover{
    color:var(--gold);
    padding-left:8px;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.1);
    text-align:center;
    padding-top:25px;
    color:rgba(255,255,255,.6);
}

/* ====================================
   PREMIUM HOVER EFFECTS
==================================== */

.book-card,
.news-card,
.research-card,
.event-card{
    transition:
    transform .4s ease,
    box-shadow .4s ease;
}

.book-card:hover,
.news-card:hover,
.research-card:hover,
.event-card:hover{
    box-shadow:0 25px 60px rgba(0,0,0,.15);
}

.social-link{
    transition:.4s ease;
}

.social-link:hover{
    transform:translateY(-8px) scale(1.15);
}

/* ====================================
   SCROLL REVEAL
==================================== */

.reveal{
    opacity:0;
    transform:translateY(60px);
    transition:all 1s ease;
}

.reveal.active{
    opacity:1;
    transform:translateY(0);
}

/* ====================================
   DARK MODE
==================================== */

html.dark{
    --white:#111827;
    --text-light:#d1d5db;
}

html.dark body{
    background:#0f172a;
    color:#f8fafc;
}

html.dark .research-card,
html.dark .news-card,
html.dark .event-card{
    background:#1e293b;
}

html.dark .about-preview,
html.dark .events-section{
    background:#111827;
}

html.dark .footer{
    background:#020617;
}

/* ====================================
   RESPONSIVE
==================================== */

@media(max-width:992px){

.about-grid{
    grid-template-columns:1fr;
}

.about-content{
    text-align:center;
}

}

@media(max-width:768px){

.research-section,
.about-preview,
.news-section,
.events-section{
    padding:80px 6%;
}

.event-card{
    flex-direction:column;
}

.about-content h2{
    font-size:2.3rem;
}

}
.image-placeholder{
    width: 350px;
    margin-left: 60px;
}
.section-title{
    color: #4DA3FF;
    text-align: center;
    font-size: 50px;
}
.container-abt {
  width: 100%;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.about-hero-grid {
  display: flex;
  flex-direction: row; /* image + text side by side */
  align-items: center;
  gap: 40px;
  max-width: 1100px;
  width: 100%;
}

/* Image section */
.about-hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-hero-image img {
  width: 100%;
  max-width: 350px;
  border-radius: 12px;
  object-fit: cover;
}

/* Text section */
.about-hero-text {
  flex: 2;
}

.about-hero-text h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.about-hero-text p {
  line-height: 1.7;
  margin-bottom: 15px;
  color: #fff;
}

/* Responsive design */
@media (max-width: 768px) {
  .about-hero-grid {
    flex-direction: column; /* stack on mobile */
    text-align: center;
  }

  .about-hero-text {
    text-align: center;
  }
}

.stats-section {
  padding: 80px 20px;
  background: #0f172a; /* dark elegant background */
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.stats-grid {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Transparent glass cards */
.stat-card {
  flex: 1;
  min-width: 220px;
  padding: 30px 20px;
  text-align: center;

  background: rgba(255, 255, 255, 0.08); /* transparent effect */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);

  transition: transform 0.3s ease, background 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.12);
}

/* Numbers */
.stat-card h3 {
  font-size: 32px;
  color: #ffffff;
  margin-bottom: 10px;
}

/* Text */
.stat-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.section.impact {
  padding: 90px 20px;
  background: linear-gradient(135deg, #0f172a, #111827);
  color: #fff;
}

.section .container {
  max-width: 900px;
  margin: 0 auto;
}

/* Title styling */
.section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.section-title::after {
  content: "";
  width: 80px;
  height: 3px;
  background: #ffffff55;
  display: block;
  margin: 12px auto 0;
  border-radius: 10px;
}

/* Glass content block */
.impact-text {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 25px;
  border-radius: 14px;
  margin-bottom: 18px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, background 0.3s ease;
}

/* Hover effect */
.impact-text:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.section.books-category {
  padding: 90px 20px;
  background: linear-gradient(135deg, #0f172a, #111827);
  color: #fff;
}

/* Container */
.section .container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Section Title */
.section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: "";
  width: 80px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  display: block;
  margin: 12px auto 0;
  border-radius: 10px;
}

/* GRID */
.books-detailed-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* BOOK CARD */
.book-detailed {
  display: flex;
  gap: 25px;
  padding: 25px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

  transition: transform 0.3s ease, background 0.3s ease;
}

.book-detailed:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.09);
}

/* BOOK IMAGE */
.book-image-large {
  width: 180px;
  height: 240px;
  border-radius: 12px;
  flex-shrink: 0;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* DETAILS */
.book-details h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.book-details .meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.book-details .description {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

/* BOOK STATS */
.book-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.book-stats span {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* BUTTON */
.buy-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;

  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;

  transition: 0.3s ease;
}

.buy-btn:hover {
  background: #cbd5e1;
  transform: scale(1.05);
}

/* AWARDS GRID */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.award-item {
  padding: 20px;
  text-align: center;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;

  backdrop-filter: blur(10px);
}

.award-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.award-item p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .book-detailed {
    flex-direction: column;
    text-align: center;
  }

  .book-image-large {
    width: 100%;
    height: 260px;
  }

  .book-stats {
    justify-content: center;
  }
}
.blog-section {
  padding: 90px 20px;
  background: linear-gradient(135deg, #0f172a, #111827);
  color: #fff;
}

.blog-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

/* GRID */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

/* BLOG CARD */
.blog-post {
  padding: 25px;
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

  transition: transform 0.3s ease, background 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.09);
}

/* DATE */
.post-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

/* TITLE */
.post-title {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* EXCERPT */
.post-excerpt {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
  line-height: 1.6;
}

/* META */
.post-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.post-meta span {
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* READ MORE BUTTON */
.read-more {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;

  transition: 0.3s ease;
}

.read-more:hover {
  color: #cbd5e1;
  transform: translateX(5px);
}
.main-content {
  background: linear-gradient(135deg, #0f172a, #111827);
  color: #fff;
}

/* SECTION BASE */
.section {
  padding: 90px 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* GRID */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
}

/* =========================
   CONTACT FORM
========================= */
.contact-form-wrapper,
.contact-info-wrapper {
  padding: 30px;
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
  margin-bottom: 20px;
  font-size: 26px;
}

/* FORM */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.75);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);

  color: #fff;
  outline: none;

  transition: 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

/* BUTTON */
.submit-button {
  width: 100%;
  padding: 12px;
  border-radius: 10px;

  border: none;
  cursor: pointer;

  background: #fff;
  color: #0f172a;

  font-weight: 600;
  transition: 0.3s ease;
}

.submit-button:hover {
  transform: translateY(-3px);
  background: #cbd5e1;
}

/* CONTACT INFO */
.info-item {
  margin-bottom: 20px;
}

.info-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.info-item p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* SOCIAL LINKS */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  padding: 6px 10px;
  font-size: 13px;
  text-decoration: none;

  color: #fff;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;

  transition: 0.3s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* =========================
   FAQ SECTION
========================= */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.faq-item {
  padding: 20px;
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(10px);
}

.faq-item h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.faq-item p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* =========================
   NEWSLETTER
========================= */
.newsletter-section {
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;

  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(12px);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}


.newsletter-form input {
  flex: 1;
  padding: 12px;
  border-radius: 10px;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.newsletter-form button {
  padding: 12px 18px;
  border-radius: 10px;
  border: none;

  background: #fff;
  color: #0f172a;
  font-weight: 600;

  cursor: pointer;
  transition: 0.3s ease;
}

.newsletter-form button:hover {
  background: #cbd5e1;
}

.privacy-note {
  font-size: 12px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.6);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width:368px){

.about-grid{
    flex-direction:column;
    text-align:center;
    gap:30px;
}

.about-image,
.about-content{
    width:100%;
    min-width:100%;
}

.about-image img{
    max-width:100%;
}

.about-content h2{
    font-size:32px;
}

.about-content p{
    font-size:16px;
}

.read-more{
    display:inline-block;
    margin-top:15px;
}

}

.book-image-large{
    width:100%;
    height:350px; /* Adjust as needed */
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
    border-radius:20px;
}

.book-image-large img{
    width:100%;
    height:100%;
    object-fit:contain; /* Shows the entire image */
    border-radius:20px;
}


/* =========================================================
   AKINBOLA ADEWALE — UI REFINEMENT LAYER
   Visual-only refinement: existing content/assets preserved.
   Brand colors remain the existing blue / dark / white / gold.
========================================================= */

:root{
  /* Existing palette retained */
  --primary-blue:#2F8FFF;
  --secondary-blue:#4DA3FF;
  --dark:#0A0A0A;
  --dark-secondary:#121212;
  --white:#FFFFFF;
  --light:#F8FAFC;
  --gray:#64748B;
  --border:#E2E8F0;
  --gold:#d4af37;
  --navy:#0A0A0A;
  --text-light:#64748B;
  --surface-light:#FFFFFF;
  --surface-dark:#121212;
  --header-height:92px;
  --content-max:1180px;
  --radius-sm:12px;
  --radius-md:18px;
  --radius-lg:26px;
  --ease:cubic-bezier(.22,1,.36,1);
}

html{
  scroll-padding-top:100px;
}

body{
  line-height:1.7;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4,h5,h6{
  line-height:1.15;
  text-wrap:balance;
}

p{
  text-wrap:pretty;
}

button,
a,
input,
textarea,
select{
  -webkit-tap-highlight-color:transparent;
}

/* ---------------- HEADER ---------------- */

.header{
  height:var(--header-height);
  background:rgba(77,163,255,.96);
  backdrop-filter:blur(18px) saturate(120%);
  -webkit-backdrop-filter:blur(18px) saturate(120%);
  border-bottom:1px solid rgba(255,255,255,.18);
  transition:
    background .35s var(--ease),
    box-shadow .35s var(--ease),
    transform .35s var(--ease);
}

.header.scrolled{
  background:rgba(10,10,10,.92);
  box-shadow:0 14px 40px rgba(0,0,0,.18);
}

.header-container{
  width:min(100%,1380px);
  height:100%;
  margin:0 auto;
  padding:0 34px;
}

.logo img{
  width:72px;
  height:auto;
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.14));
}

.desktop-nav{
  gap:28px;
}

.nav-link{
  font-size:.76rem;
  letter-spacing:1.4px;
  padding:8px 0;
  opacity:.94;
}

.nav-link::after{
  bottom:1px;
  height:2px;
  background:var(--white);
  border-radius:10px;
}

.nav-link:hover,
.nav-link.active{
  opacity:1;
}

.header-right{
  gap:14px;
}

.blog-btn{
  border-color:rgba(255,255,255,.55);
  background:rgba(255,255,255,.06);
  padding:10px 18px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
}

.blog-btn:hover{
  background:rgba(255,255,255,.14);
  border-color:var(--white);
  transform:translateY(-2px);
}

.theme-toggle{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.25);
  border-radius:50%;
  background:rgba(255,255,255,.08);
  transition:transform .3s var(--ease),background .3s ease;
}

.theme-toggle:hover{
  background:rgba(255,255,255,.16);
  transform:rotate(8deg);
}

.menu-toggle{
  width:40px;
  height:40px;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.25);
  border-radius:12px;
  padding:0;
}

.menu-toggle span{
  width:20px;
  border-radius:10px;
  transition:transform .3s ease,opacity .3s ease;
}

.menu-toggle.active span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2){
  opacity:0;
}
.menu-toggle.active span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

.mobile-menu{
  top:var(--header-height);
  background:rgba(10,10,10,.97);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(255,255,255,.1);
  box-shadow:0 20px 45px rgba(0,0,0,.22);
}

.mobile-nav-link{
  padding:16px 24px;
  letter-spacing:.8px;
  font-weight:600;
  transition:background .25s ease,padding-left .25s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active{
  background:rgba(77,163,255,.12);
  padding-left:30px;
}

/* ---------------- GLOBAL PAGE RHYTHM ---------------- */

.main-content{
  background:var(--dark);
}

.main-content > .section{
  position:relative;
  overflow:hidden;
}

.main-content > .section::before{
  content:"";
  position:absolute;
  width:420px;
  height:420px;
  right:-260px;
  top:-220px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(47,143,255,.09),transparent 68%);
  pointer-events:none;
}

.section{
  padding:88px 24px;
}

.section-title{
  margin:0 auto 42px;
  color:var(--secondary-blue);
  font-size:clamp(2.1rem,4vw,3.25rem);
  letter-spacing:-.02em;
}

.section-title::after{
  width:58px;
  height:2px;
  margin:16px auto 0;
  background:var(--secondary-blue);
  opacity:.8;
}

.container{
  width:min(100%,var(--content-max));
  padding:0 20px;
}

/* ---------------- HOME HERO ---------------- */

.hero{
  min-height:100svh;
  height:auto;
}

.hero-background{
  animation:heroZoom 22s ease-in-out infinite alternate;
  will-change:transform;
}

.hero-overlay{
  background:
    linear-gradient(180deg,rgba(10,10,10,.48) 0%,rgba(10,10,10,.60) 48%,rgba(10,10,10,.84) 100%);
}

.hero-content{
  max-width:980px;
  padding:40px 24px;
}

.hero-title{
  max-width:900px;
  margin:0 auto 20px;
  font-size:clamp(3rem,7vw,6.3rem);
  letter-spacing:-.035em;
  text-shadow:0 12px 40px rgba(0,0,0,.25);
}

.hero-subtitle{
  max-width:720px;
  margin:0 auto 32px;
  font-size:clamp(1rem,2vw,1.25rem);
}

.cta-button,
.read-more,
.submit-button,
.purchase-btn{
  position:relative;
  overflow:hidden;
  isolation:isolate;
}

.cta-button{
  padding:14px 30px;
  box-shadow:0 12px 30px rgba(47,143,255,.18);
}

.social-icons{
  margin-top:32px;
  gap:12px;
}

.social-link{
  width:48px;
  height:48px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.09);
  box-shadow:0 10px 25px rgba(0,0,0,.14);
}

.social-link:hover{
  background:var(--primary-blue);
  transform:translateY(-5px) scale(1.04);
}

.scroll-indicator{
  bottom:22px;
  font-size:1.6rem;
  opacity:.75;
}

/* ---------------- HOME SECTIONS ---------------- */

.about-preview{
  padding:96px 24px;
  background:var(--light);
}

.about-grid{
  max-width:1080px;
  margin:0 auto;
  gap:60px;
}

.about-image img{
  border-radius:var(--radius-lg);
  box-shadow:0 24px 55px rgba(0,0,0,.13);
  transition:transform .7s var(--ease),box-shadow .7s var(--ease);
}

.about-image:hover img{
  transform:translateY(-6px);
  box-shadow:0 30px 65px rgba(0,0,0,.17);
}

.about-content{
  padding:0 !important;
}

.about-content h2{
  font-size:clamp(2.2rem,4vw,3.1rem) !important;
  margin-bottom:18px !important;
}

.about-content p{
  font-size:1rem;
  line-height:1.85;
  margin-bottom:20px;
  color:var(--gray) !important;
}

.read-more{
  padding:12px 24px !important;
  background:var(--gold);
  box-shadow:0 12px 28px rgba(212,175,55,.18);
}

.read-more:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 34px rgba(212,175,55,.24);
}

.events-section{
  padding:96px 24px;
  background:#f7f9fc;
}

.events-list{
  max-width:1050px;
  margin:0 auto;
  gap:18px;
}

.event-card{
  gap:24px;
  padding:26px;
  border:1px solid rgba(15,23,42,.06);
  border-radius:var(--radius-md);
  box-shadow:0 12px 34px rgba(0,0,0,.06);
}

.event-card:hover{
  transform:translateY(-5px);
  box-shadow:0 22px 48px rgba(0,0,0,.10);
}

.event-info h3{
  margin-bottom:8px;
}

.event-desc{
  line-height:1.75;
}

/* ---------------- ABOUT PAGE ---------------- */

.container-abt{
  padding:84px 20px 50px;
  margin-top:var(--header-height);
}

.about-hero-grid{
  max-width:1080px;
  gap:64px;
}

.about-hero-image img{
  max-width:380px;
  border-radius:var(--radius-lg);
  box-shadow:0 25px 65px rgba(0,0,0,.22);
  transition:transform .7s var(--ease);
}

.about-hero-image:hover img{
  transform:translateY(-7px) scale(1.01);
}

.about-hero-text{
  padding:0 !important;
}

.about-hero-text h2{
  font-size:clamp(2.4rem,4vw,3.4rem) !important;
  margin-bottom:20px !important;
}

.about-hero-text p{
  font-size:1rem !important;
  line-height:1.85 !important;
  color:var(--gray) !important;
  margin-bottom:20px !important;
}

.biography{
  padding-top:42px;
}

.bio-content{
  padding:0 !important;
}

.bio-content p{
  color:var(--gray) !important;
  line-height:1.85 !important;
}

.achievement-card,
.publication-card,
.impact-text{
  border-radius:var(--radius-md);
  transition:transform .4s var(--ease),box-shadow .4s ease,border-color .4s ease;
}

.achievement-card:hover,
.publication-card:hover{
  transform:translateY(-5px);
  box-shadow:0 20px 45px rgba(0,0,0,.12);
}

.impact-text:hover{
  transform:translateY(-4px);
}

/* ---------------- BOOKS ---------------- */

.books-category{
  margin-top:var(--header-height);
}

.section.books-category{
  padding:82px 24px 96px;
}

.books-detailed-grid{
  max-width:1050px;
  margin:0 auto;
  gap:22px;
}

.book-image-large{
  width:100%;
  height:390px;
  padding:12px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius-lg);
  box-shadow:0 20px 50px rgba(0,0,0,.22);
}

.book-image-large img{
  border-radius:16px;
}

.book-detailed{
  display:block;
  padding:30px;
  border-radius:var(--radius-lg);
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.045);
  box-shadow:0 18px 50px rgba(0,0,0,.20);
}

.book-detailed:hover{
  transform:translateY(-5px);
  background:rgba(255,255,255,.06);
}

.book-details h3{
  font-size:clamp(1.8rem,3vw,2.5rem);
  color:var(--white);
}

.book-details .description{
  max-width:820px;
  color:rgba(255,255,255,.76);
  line-height:1.8;
}

.book-stats span{
  border-color:rgba(255,255,255,.10);
  background:rgba(255,255,255,.055);
}

.purchase-section{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-top:24px;
}

.purchase-card{
  padding:24px;
  border-radius:18px;
  border-color:rgba(255,255,255,.10);
  background:rgba(255,255,255,.045);
}

.purchase-card:hover{
  transform:translateY(-4px);
  background:rgba(255,255,255,.07);
}

.purchase-btn{
  box-shadow:0 10px 24px rgba(212,175,55,.15);
}

/* ---------------- BLOG ---------------- */

body:has(.blog-grid){
  background:var(--dark);
}

body > header:not(.header){
  display:none;
}

body:has(.blog-grid) .page-header{
  padding:calc(var(--header-height) + 66px) 24px 30px;
}

body:has(.blog-grid) .page-header h1{
  font-size:clamp(2.5rem,5vw,4rem);
  color:var(--white);
  margin-bottom:10px;
  letter-spacing:-.025em;
}

body:has(.blog-grid) .page-header p{
  color:rgba(255,255,255,.68);
}

.blog-controls{
  width:min(100%,1060px);
  margin:0 auto;
  padding:16px 24px 36px;
}

.blog-controls > #searchInput,
.search-box input{
  max-width:760px;
  min-height:52px;
  padding:14px 18px;
  margin:0 auto;
  border:1px solid rgba(255,255,255,.12);
  border-radius:15px;
  background:rgba(255,255,255,.055);
  color:var(--white);
  box-shadow:0 12px 30px rgba(0,0,0,.14);
  transition:border-color .3s ease,box-shadow .3s ease,background .3s ease;
}

.blog-controls > #searchInput::placeholder{
  color:rgba(255,255,255,.5);
}

.blog-controls > #searchInput:focus{
  border-color:rgba(77,163,255,.7);
  background:rgba(255,255,255,.07);
  box-shadow:0 0 0 4px rgba(47,143,255,.10),0 16px 36px rgba(0,0,0,.16);
}

.category-filters{
  gap:8px;
  margin-top:18px;
}

.filter-btn{
  padding:9px 15px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  background:rgba(255,255,255,.045);
  color:rgba(255,255,255,.76);
  font-weight:600;
  transition:all .3s var(--ease);
}

.filter-btn:hover{
  color:var(--white);
  border-color:rgba(77,163,255,.55);
  transform:translateY(-2px);
}

.filter-btn.active{
  background:var(--primary-blue);
  border-color:var(--primary-blue);
  color:var(--white);
  box-shadow:0 10px 24px rgba(47,143,255,.20);
}

.blog-grid{
  width:min(100%,1120px);
  margin:0 auto;
  padding:0 24px 96px;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.blog-post{
  position:relative;
  min-height:235px;
  display:flex;
  flex-direction:column;
  padding:28px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius-md);
  background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.025));
  box-shadow:0 14px 36px rgba(0,0,0,.20);
  overflow:hidden;
  transition:transform .45s var(--ease),border-color .35s ease,box-shadow .45s ease;
}

.blog-post::before{
  content:"";
  position:absolute;
  top:0;
  left:24px;
  right:24px;
  height:2px;
  background:linear-gradient(90deg,transparent,var(--secondary-blue),transparent);
  opacity:.8;
}

.blog-post::after{
  content:"";
  position:absolute;
  width:150px;
  height:150px;
  right:-80px;
  bottom:-90px;
  border-radius:50%;
  background:rgba(47,143,255,.08);
  pointer-events:none;
}

.blog-post:hover{
  transform:translateY(-8px);
  border-color:rgba(77,163,255,.28);
  box-shadow:0 24px 55px rgba(0,0,0,.28);
}

.post-title{
  margin:6px 0 12px;
  font-size:1.38rem;
  line-height:1.25;
  color:var(--white);
}

.post-excerpt{
  color:rgba(255,255,255,.67);
  line-height:1.7;
  font-size:.94rem;
}

.post-actions{
  margin-top:auto;
  padding-top:24px;
  gap:8px;
}

.read-more{
  color:var(--secondary-blue);
  transition:color .25s ease,transform .25s ease;
}

.read-more:hover{
  color:var(--white);
  transform:translateX(3px);
}

.like-btn,
.share-btn{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.055);
  color:rgba(255,255,255,.8);
  transition:transform .25s ease,background .25s ease;
}

.like-btn:hover,
.share-btn:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.10);
}

.post-modal{
  z-index:10000;
  background:rgba(10,10,10,.78);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.post-modal-content{
  max-width:820px;
  max-height:86vh;
  padding:34px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:24px;
  background:#fff;
  box-shadow:0 30px 90px rgba(0,0,0,.35);
}

.close-modal{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  float:none;
  margin-left:auto;
  border-radius:50%;
  background:#f1f1f1;
  color:#111;
  transition:transform .25s ease;
}

.close-modal:hover{
  transform:rotate(90deg);
}

#modalTitle{
  font-size:clamp(1.8rem,4vw,2.6rem);
  line-height:1.15;
  margin:10px 0 14px;
  color:#000;
}

#modalContent{
  color:#333;
  line-height:1.85;
}

.comment{
  color:#000;
  border-top:1px solid #eee;
  line-height:1.6;
}

#modalCommentForm input,
#modalCommentForm textarea{
  color:#111;
  background:#fff;
}

button.submit{
  background:var(--dark);
  transition:transform .25s ease,background .25s ease;
}

button.submit:hover{
  background:var(--primary-blue);
  transform:translateY(-2px);
}

/* ---------------- CONTACT ---------------- */

.contact-form-section{
  margin-top:var(--header-height);
  padding-top:78px;
}

.contact-grid{
  max-width:1080px;
  margin:0 auto;
  gap:20px;
}

.contact-form-wrapper,
.contact-info-wrapper{
  padding:30px;
  border-radius:var(--radius-lg);
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 18px 50px rgba(0,0,0,.20);
}

.contact-form-wrapper h2,
.contact-info-wrapper h2{
  font-size:clamp(1.9rem,3vw,2.5rem);
  margin-bottom:24px;
}

.form-group{
  margin-bottom:18px;
}

.form-group label{
  color:rgba(255,255,255,.75);
  font-weight:600;
}

.form-group input,
.form-group textarea,
.form-group select,
.newsletter-form input{
  min-height:48px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.055);
  color:var(--white);
  transition:border-color .25s ease,box-shadow .25s ease,background .25s ease;
}

.form-group textarea{
  min-height:140px;
  resize:vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.newsletter-form input:focus{
  border-color:rgba(77,163,255,.7);
  box-shadow:0 0 0 4px rgba(47,143,255,.10);
  background:rgba(255,255,255,.075);
}

.form-group select option{
  background:#fff;
  color:#111;
}

.submit-button{
  min-height:50px;
  background:var(--primary-blue);
  color:var(--white);
  box-shadow:0 12px 28px rgba(47,143,255,.16);
}

.submit-button:hover{
  background:var(--secondary-blue);
  transform:translateY(-2px);
}

.info-item{
  padding:18px 0;
  margin:0;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.info-item:last-child{
  border-bottom:0;
}

.info-item h3{
  color:var(--white);
}

.info-item p{
  color:rgba(255,255,255,.68);
}

.faq-grid{
  gap:16px;
}

.faq-item{
  background:rgba(255,255,255,.045);
  border-color:rgba(255,255,255,.10);
}

.newsletter-content{
  border-color:rgba(255,255,255,.10);
  background:rgba(255,255,255,.045);
}

/* ---------------- FOOTER ---------------- */

.footer{
  padding:64px 24px 26px;
  background:var(--dark);
  border-top:1px solid rgba(255,255,255,.08);
}

.footer-grid{
  width:min(100%,1100px);
  margin:0 auto 42px;
  gap:36px;
}

.footer-section h4{
  font-size:1.25rem;
  margin-bottom:16px;
}

.footer-section ul li{
  margin-bottom:9px;
}

.footer-section a{
  color:rgba(255,255,255,.68);
}

.footer-section a:hover{
  color:var(--secondary-blue);
  padding-left:4px;
}

.footer-bottom{
  max-width:1100px;
  margin:0 auto;
  padding-top:20px;
}

.footer-bottom p{
  color:rgba(255,255,255,.52);
}

/* ---------------- LIGHT MODE SAFETY ---------------- */

html:not(.dark) body{
  background:var(--light);
  color:#111827;
}

html:not(.dark) .main-content{
  background:var(--light);
}

html:not(.dark) .about-preview{
  background:#fff;
}

html:not(.dark) .events-section{
  background:var(--light);
}

html:not(.dark) .about-hero-text p,
html:not(.dark) .bio-content p{
  color:var(--gray) !important;
}

html:not(.dark) .section-title{
  color:var(--primary-blue);
}

html:not(.dark) .research-section,
html:not(.dark) .news-section{
  background:#fff;
}

html:not(.dark) .research-card,
html:not(.dark) .news-card,
html:not(.dark) .event-card{
  background:#fff;
  color:#111827;
  border:1px solid rgba(15,23,42,.07);
}

html:not(.dark) .research-card h3,
html:not(.dark) .news-card h3,
html:not(.dark) .event-info h3{
  color:#0A0A0A;
}

html:not(.dark) .research-card p,
html:not(.dark) .news-card p,
html:not(.dark) .event-desc{
  color:var(--gray);
}

html:not(.dark) body:has(.blog-grid){
  background:var(--light);
}

html:not(.dark) body:has(.blog-grid) .page-header h1{
  color:#0A0A0A;
}

html:not(.dark) body:has(.blog-grid) .page-header p{
  color:var(--gray);
}

html:not(.dark) .blog-controls > #searchInput,
html:not(.dark) .search-box input{
  background:#fff;
  border-color:var(--border);
  color:#111827;
}

html:not(.dark) .blog-controls > #searchInput::placeholder{
  color:#94a3b8;
}

html:not(.dark) .filter-btn{
  background:#fff;
  color:#475569;
  border-color:var(--border);
}

html:not(.dark) .filter-btn.active{
  background:var(--primary-blue);
  color:#fff;
  border-color:var(--primary-blue);
}

html:not(.dark) .blog-post{
  background:#fff;
  border-color:rgba(15,23,42,.08);
  box-shadow:0 12px 32px rgba(15,23,42,.07);
}

html:not(.dark) .blog-post:hover{
  border-color:rgba(47,143,255,.35);
  box-shadow:0 22px 48px rgba(15,23,42,.11);
}

html:not(.dark) .post-title{
  color:#0A0A0A;
}

html:not(.dark) .post-excerpt{
  color:#64748B;
}

html:not(.dark) .like-btn,
html:not(.dark) .share-btn{
  background:#f8fafc;
  color:#475569;
  border-color:#e2e8f0;
}

html:not(.dark) .contact-form-wrapper,
html:not(.dark) .contact-info-wrapper{
  background:#fff;
  border-color:var(--border);
  box-shadow:0 18px 45px rgba(15,23,42,.07);
}

html:not(.dark) .form-group label,
html:not(.dark) .info-item p{
  color:var(--gray);
}

html:not(.dark) .form-group input,
html:not(.dark) .form-group textarea,
html:not(.dark) .form-group select,
html:not(.dark) .newsletter-form input{
  background:#fff;
  color:#111827;
  border-color:var(--border);
}

html:not(.dark) .form-group input:focus,
html:not(.dark) .form-group textarea:focus,
html:not(.dark) .form-group select:focus{
  background:#fff;
}

html:not(.dark) .info-item{
  border-color:var(--border);
}

html:not(.dark) .info-item h3{
  color:#0A0A0A;
}

/* Keep the dark sections deliberately dark in both modes where they are part
   of the site's established visual identity. */
.hero,
.section.books-category,
.section.impact,
.stats-section,
.footer{
  color:#fff;
}

/* ---------------- MOTION + RESPONSIVE ---------------- */

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *,
  *::before,
  *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}

@media (max-width:1100px){
  .blog-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .about-grid{
    gap:44px;
  }
}

@media (max-width:768px){
  :root{--header-height:76px;}

  .header-container{
    padding:0 18px;
  }

  .logo img{
    width:62px;
  }

  .hero-title{
    font-size:clamp(2.7rem,12vw,4.2rem);
  }

  .hero-subtitle{
    font-size:.95rem;
  }

  .social-icons{
    margin-top:26px;
  }

  .section,
  .about-preview,
  .events-section{
    padding:72px 18px;
  }

  .section-title{
    margin-bottom:32px;
  }

  .container{
    padding:0 10px;
  }

  .container-abt{
    padding:66px 18px 36px;
  }

  .about-hero-grid{
    gap:34px;
  }

  .about-hero-image img{
    max-width:320px;
  }

  .about-hero-text{
    text-align:left;
  }

  .about-hero-text h2{
    text-align:center;
  }

  .purchase-section{
    grid-template-columns:1fr;
  }

  .book-image-large{
    height:300px;
  }

  .book-detailed{
    padding:22px;
  }

  .blog-grid{
    grid-template-columns:1fr;
    padding:0 18px 72px;
  }

  .blog-controls{
    padding:12px 18px 30px;
  }

  body:has(.blog-grid) .page-header{
    padding-top:calc(var(--header-height) + 48px);
  }

  .post-modal-content{
    padding:24px;
    border-radius:20px;
  }

  .contact-form-section{
    padding:66px 18px 72px;
  }

  .contact-form-wrapper,
  .contact-info-wrapper{
    padding:22px;
  }

  .footer{
    padding:54px 18px 24px;
  }
}

@media (max-width:480px){
  .header-right{
    gap:8px;
  }

  .theme-toggle{
    width:36px;
    height:36px;
  }

  .menu-toggle{
    width:36px;
    height:36px;
  }

  .hero-content{
    padding:30px 18px;
  }

  .hero-title{
    font-size:clamp(2.45rem,13vw,3.4rem);
  }

  .cta-button{
    padding:13px 24px;
  }

  .book-image-large{
    height:250px;
  }

  .book-stats{
    justify-content:flex-start;
  }

  .post-actions{
    flex-wrap:wrap;
  }
}


/* =========================================================
   FINAL UI SAFETY + INTERACTION POLISH
   Purpose: preserve the established palette while making
   light/dark themes readable and keeping overlays contained.
========================================================= */

/* Theme tokens — same established brand colours, clearer surfaces/text. */
html:not(.dark){
  --page-bg:#F8FAFC;
  --page-surface:#FFFFFF;
  --page-surface-soft:#F1F5F9;
  --page-text:#111827;
  --page-muted:#475569;
  --page-border:#E2E8F0;
}

html.dark{
  --page-bg:#0A0A0A;
  --page-surface:#121212;
  --page-surface-soft:#171717;
  --page-text:#F8FAFC;
  --page-muted:#CBD5E1;
  --page-border:rgba(255,255,255,.10);
}

/* ---------------- LIGHT MODE: CONTENT SAFETY ---------------- */
html:not(.dark) body{
  background:var(--page-bg);
  color:var(--page-text);
}

html:not(.dark) .main-content{
  background:var(--page-bg);
  color:var(--page-text);
}

html:not(.dark) .main-content > .section::before{
  background:radial-gradient(circle,rgba(47,143,255,.06),transparent 68%);
}

html:not(.dark) .section-title,
html:not(.dark) .about-content h2,
html:not(.dark) .about-hero-text h2,
html:not(.dark) .bio-content h2,
html:not(.dark) .contact-form-wrapper h2,
html:not(.dark) .contact-info-wrapper h2,
html:not(.dark) .faq-item h3,
html:not(.dark) .newsletter-content h2{
  color:#0F172A !important;
}

html:not(.dark) .about-content p,
html:not(.dark) .about-hero-text p,
html:not(.dark) .bio-content p,
html:not(.dark) .faq-item p,
html:not(.dark) .newsletter-content p,
html:not(.dark) .info-item p,
html:not(.dark) .event-desc,
html:not(.dark) .research-card p,
html:not(.dark) .news-card p{
  color:var(--page-muted) !important;
}

/* Contact FAQ — the previous glass/white text rules were leaking into light mode. */
html:not(.dark) .faq-section{
  background:var(--page-bg);
}

html:not(.dark) .faq-item{
  background:var(--page-surface);
  border:1px solid var(--page-border);
  color:var(--page-text);
  box-shadow:0 12px 30px rgba(15,23,42,.06);
}

html:not(.dark) .faq-item:hover{
  border-color:rgba(47,143,255,.28);
  box-shadow:0 18px 38px rgba(15,23,42,.09);
  transform:translateY(-3px);
}

html:not(.dark) .newsletter-content{
  background:var(--page-surface);
  border:1px solid var(--page-border);
  box-shadow:0 16px 40px rgba(15,23,42,.06);
}

html:not(.dark) .privacy-note{
  color:#64748B !important;
}

html:not(.dark) .contact-form-wrapper,
html:not(.dark) .contact-info-wrapper{
  color:var(--page-text);
}

html:not(.dark) .contact-form-wrapper h2,
html:not(.dark) .contact-info-wrapper h2{
  color:#0F172A !important;
}

html:not(.dark) .form-group label{
  color:#334155 !important;
}

html:not(.dark) .info-item h3{
  color:#0F172A !important;
}

html:not(.dark) .info-item p{
  color:#475569 !important;
}

html:not(.dark) .newsletter-form input{
  color:#111827;
  background:#FFFFFF;
  border-color:var(--page-border);
}

html:not(.dark) .newsletter-form input::placeholder{
  color:#94A3B8;
}

/* ---------------- BLOG: CLEAN LIGHT MODE ---------------- */
html:not(.dark) body:has(.blog-grid){
  background:var(--page-bg);
  color:var(--page-text);
}

html:not(.dark) body:has(.blog-grid) .page-header h1{
  color:#0F172A !important;
}

html:not(.dark) body:has(.blog-grid) .page-header p{
  color:#64748B !important;
}

html:not(.dark) .blog-post{
  background:linear-gradient(145deg,#FFFFFF,#F8FAFC);
  border-color:#E2E8F0;
  box-shadow:0 14px 34px rgba(15,23,42,.07);
}

html:not(.dark) .blog-post::after{
  background:rgba(47,143,255,.07);
}

html:not(.dark) .post-title{
  color:#0F172A !important;
}

html:not(.dark) .post-excerpt{
  color:#64748B !important;
}

/* ---------------- BLOG ACTIONS ---------------- */
.post-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.post-actions .read-more{
  margin-right:auto;
}

.like-btn,
.share-btn{
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:0 9px;
  border-radius:12px;
  cursor:pointer;
  font:600 .78rem Inter,sans-serif;
  line-height:1;
  position:relative;
  z-index:2;
}

.like-btn .action-icon,
.share-btn .action-icon{
  display:inline-grid;
  place-items:center;
  width:16px;
  height:16px;
  font-size:16px;
  line-height:1;
}

.like-btn .like-count{
  min-width:10px;
  text-align:center;
  font-size:.72rem;
}

.like-btn.is-liked{
  color:#EF4444;
  border-color:rgba(239,68,68,.28);
  background:rgba(239,68,68,.08);
}

html:not(.dark) .like-btn,
html:not(.dark) .share-btn{
  color:#475569;
  background:#FFFFFF;
  border-color:#E2E8F0;
}

html:not(.dark) .like-btn:hover,
html:not(.dark) .share-btn:hover{
  color:var(--primary-blue);
  border-color:rgba(47,143,255,.35);
  background:#F8FAFC;
}

html.dark .like-btn,
html.dark .share-btn{
  color:#CBD5E1;
  background:rgba(255,255,255,.055);
}

/* ---------------- BLOG MODAL — NEVER BREAK PAGE FLOW ---------------- */
.post-modal{
  display:none;
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  padding:24px;
  align-items:center;
  justify-content:center;
  overflow:auto;
}

.post-modal.is-open{
  display:flex;
  animation:modalFadeIn .22s ease both;
}

.post-modal-content{
  width:min(100%,820px);
  max-height:min(86vh,760px);
  overflow:auto;
  margin:0;
  position:relative;
  flex:0 1 auto;
  animation:modalSlideUp .35s var(--ease) both;
}

.post-modal-content hr{
  border:0;
  border-top:1px solid #E2E8F0;
  margin:24px 0;
}

#modalComments{
  display:grid;
  gap:10px;
  margin:14px 0 18px;
}

.comment{
  padding:13px 15px;
  border:1px solid #E2E8F0;
  border-radius:12px;
  background:#F8FAFC;
}

.comment b{
  color:#0F172A;
  display:block;
  margin-bottom:4px;
}

.comment p{
  color:#475569;
  margin:0;
  line-height:1.65;
}

#modalCommentForm{
  display:grid;
  gap:10px;
}

#modalCommentForm input,
#modalCommentForm textarea{
  width:100%;
  border:1px solid #E2E8F0;
  border-radius:12px;
  padding:12px 14px;
  font:400 .9rem Inter,sans-serif;
  outline:none;
}

#modalCommentForm textarea{
  min-height:110px;
  resize:vertical;
}

#modalCommentForm input:focus,
#modalCommentForm textarea:focus{
  border-color:rgba(47,143,255,.65);
  box-shadow:0 0 0 4px rgba(47,143,255,.10);
}

button.submit{
  width:max-content;
  min-height:44px;
  padding:10px 18px;
  border:0;
  border-radius:12px;
  color:#fff;
  cursor:pointer;
}

@keyframes modalFadeIn{
  from{opacity:0}
  to{opacity:1}
}

@keyframes modalSlideUp{
  from{opacity:0;transform:translateY(18px) scale(.985)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

/* ---------------- MOBILE DETAIL ---------------- */
@media (max-width:768px){
  .post-actions .read-more{
    flex:1 1 100%;
    margin-right:0;
    margin-bottom:2px;
  }

  .post-modal{
    padding:14px;
  }

  .post-modal-content{
    max-height:90vh;
    padding:22px;
    border-radius:18px;
  }
}

/* ---------------- THEME TOGGLE ICON ---------------- */
.theme-icon{
  display:inline-grid;
  place-items:center;
  transition:transform .35s var(--ease);
}

.theme-toggle:hover .theme-icon{
  transform:rotate(18deg) scale(1.08);
}

/* About page publication card: preserve the light-mode surface while keeping
   its existing blue/gold visual identity readable. */
html:not(.dark) .publication-card{
  color:#0F172A;
  box-shadow:0 14px 34px rgba(15,23,42,.07);
}

html:not(.dark) .publication-content h3{
  color:#0F172A !important;
}

html:not(.dark) .publication-content p{
  color:#475569 !important;
}

/* Inline white text used by the original About/Home markup must not disappear
   against light surfaces. */
html:not(.dark) .about-hero-text p[style*="color:#fff"],
html:not(.dark) .bio-content p[style*="color:#fff"],
html:not(.dark) .about-content p[style*="color: #fff"]{
  color:#475569 !important;
}
