/* =====================
   GLOBAL
===================== */
:root {
    --red: #ff3b3b;
    --pink: #ff2f7d;
    --dark: #222;
    --light-bg: #f4f6fb;
    --white: #ffffff;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Segoe UI",sans-serif;
}

body{
    background:#f5f7ff;
    color:#222;
}

/* =====================
   HEADER
===================== */
.header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 30px;
    background:linear-gradient(45deg,#ff512f,#dd2476);
    color:#fff;
}

.header nav a{
    color:#fff;
    margin-left:20px;
    text-decoration:none;
    font-weight:600;
    position:relative;
}

.header nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-5px;
    width:0;
    height:2px;
    background:#fff;
    transition:0.3s;
}

.header nav a:hover::after{
    width:100%;
}

/* =====================
   BANNER
===================== */
.banner{
    min-height:350px;
    background:linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
               url("https://shuddhhindi.com/image/banner.jpg") center/cover no-repeat;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:#fff;
    padding:40px 20px;
}

.banner h1{
    font-size:2.6rem;
    margin-bottom:15px;
}

.banner p{
    font-size:1.2rem;
    margin-bottom:25px;
}

.btn{
    padding:12px 28px;
    background:#ff512f;
    color:#fff;
    border-radius:30px;
    text-decoration:none;
    transition:0.3s;
}

.btn:hover{
    background:#dd2476;
    transform:translateY(-3px);
}

/* =====================
   SECTIONS
===================== */
.section{
    padding:60px 20px;
    text-align:center;
}

.section h2{
    font-size:2rem;
    margin-bottom:35px;
}

/* =====================
   TOPIC / HIGHLIGHT CARDS
===================== */
.topics,
.highlight-cards,
.videos{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
    max-width:1200px;
    margin:auto;
}

.topic-card,
.highlight-card{
    background:#fff;
    border-radius:18px;
    padding:25px 20px;
    box-shadow:0 12px 25px rgba(0,0,0,.08);
    transition:0.4s;
    position:relative;
    overflow:hidden;
    cursor:pointer;
}

/* Gradient Hover Effect */
.topic-card::before,
.highlight-card::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(135deg,#ff512f,#dd2476);
    opacity:0;
    transition:0.4s;
}

.topic-card:hover::before,
.highlight-card:hover::before{
    opacity:1;
}

.topic-card h3,
.highlight-card h3,
.topic-card span,
.highlight-card p{
    position:relative;
    z-index:2;
    transition:0.4s;
}

.topic-card:hover h3,
.topic-card:hover span,
.highlight-card:hover h3,
.highlight-card:hover p{
    color:#fff;
    transform:translateY(-4px);
}

.topic-card:hover,
.highlight-card:hover{
    transform:translateY(-12px) scale(1.03);
    box-shadow:0 18px 40px rgba(0,0,0,.25);
}

/* =====================
   VIDEO CARDS
===================== */
.video-card{
    background:#fff;
    border-radius:18px;
    padding:10px;
    transition:0.4s;
    box-shadow:0 10px 25px rgba(0,0,0,.1);
}

.video-card iframe{
    width:100%;
    height:200px;
    border-radius:15px;
}

.video-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(0,0,0,.25);
}

/* =====================
   NEWS
===================== */
.news ul{
    max-width:600px;
    margin:auto;
    list-style:none;
}

.news li{
    background:#fff;
    padding:15px 20px;
    margin-bottom:12px;
    border-left:5px solid #dd2476;
    border-radius:8px;
    transition:0.3s;
}

.news li:hover{
    transform:translateX(8px);
    background:#ffe0ea;
}

/* =====================
   FOOTER
===================== */
footer{
    background:#111;
    color:#fff;
    text-align:center;
    padding:15px;
}

/* =====================
   RESPONSIVE
===================== */
@media(max-width:992px){
    .banner h1{ font-size:2.2rem; }
}

@media(max-width:768px){
    .header{
        flex-direction:column;
        gap:10px;
    }

    .banner h1{ font-size:1.9rem; }

    .section{ padding:45px 15px; }
}

@media(max-width:480px){
    .banner h1{ font-size:1.6rem; }
    .banner p{ font-size:1rem; }
}

.readmore-wrapper {
    text-align: right;
    margin-top: 20px;
}

/* ==================================
   TOPIC INDEX PAGE ONLY (SAFE)
   ================================== */

.topic-index-page .topic-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Card base */
.topic-index-page .topic-card-no-effect {
    position: relative; /* REQUIRED */
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect (NO color change) */
.topic-index-page .topic-card-no-effect:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

/* Disable overlay blocking clicks */
.topic-index-page .topic-card-no-effect::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

/* Read More button */
.topic-index-page .topic-readmore {
    display: inline-block;
    margin-top: 10px;
    background: #ff512f;
    color: #000;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    position: relative;
    z-index: 5;
    transition: background 0.25s ease, transform 0.2s ease;
}

/* Button hover ONLY */
.topic-index-page .topic-readmore:hover {
    background: #ff512f;
    transform: scale(1.05);
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .topic-index-page .topic-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .topic-index-page .topic-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .topic-index-page .topic-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .topic-index-page .topic-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   HOME PAGE – LATEST TOPICS
   ========================= */

.home-latest-topics .highlight-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Background color change ON hover */
.home-latest-topics .highlight-card:hover {
    background: #2a2a2a; /* darker / changed color */
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* Gradient overlay (visual only, no click blocking) */
.home-latest-topics .highlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,81,47,0.25), rgba(221,36,118,0.25));
    opacity: 0;
    transition: 0.4s;
    pointer-events: none; /* 🔥 IMPORTANT */
    border-radius: 12px;
}

.home-latest-topics .highlight-card:hover::before {
    opacity: 1;
}

/* Read More button – ALWAYS clickable */
.home-latest-topics .btn-readmore {
    position: relative;
    z-index: 5;
    background: #ff9800;
    color: #000;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
}

.home-latest-topics .btn-readmore:hover {
    background: #ffc107;
    transform: scale(1.05);
}

.custom-footer {
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: #fff;
    padding: 60px 20px 20px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-col {
    width: 23%;
    min-width: 220px;
    margin-bottom: 20px;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #fff;
    padding-bottom: 5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #fff;
    opacity: 0.9;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-about {
    font-size: 14px;
    line-height: 1.6;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    margin-right: 8px;
    color: #fff;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #fff;
    color: #ff416c;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.4);
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-col {
        width: 100%;
    }
}

.social-list {
    list-style: none;
    padding: 0;
}

.social-list li {
    margin-bottom: 10px;
}

.social-list a {
    text-decoration: none;
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    transition: 0.3s ease;
}

.social-list a i {
    margin-right: 8px;
    font-size: 18px;
}

/* Hover Effects */
.social-list a:hover {
    padding-left: 5px;
}

/* Brand Colors on Hover */
.social-list li:nth-child(1) a:hover {
    color: #1877f2; /* Facebook */
}

.social-list li:nth-child(2) a:hover {
    color: #000; /* Twitter X */
}

.social-list li:nth-child(3) a:hover {
    color: #e4405f; /* Instagram */
}

.social-list li:nth-child(4) a:hover {
    color: #ff0000; /* YouTube */
}

.book-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.book-card img {
    height: 250px;
    object-fit: cover;
}
.book-card {
    width: 300px;          /* Fixed width */
    height: 450px;         /* Fixed height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-card img {
    height: 200px;         /* Fixed image height */
    width: 100%;
    object-fit: cover;     /* Crop properly */
}

.book-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.swiper-slide {
    display: flex;
    justify-content: center;
}

.card-text {
    min-height: 60px;
}