/* --- Global Resets & Variables --- */
:root {
    --primary-color: #1b1c4b;
    --secondary-color: #0d0f3b;
    --accent-color: #e46a00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f5f9;
    --border-color: #e0e0e0;
     --primary-colore: #5a4bda; /* PW style premium purple/blue */
    --primary-hovere: #483ab8;
    --text-darke: #1e293b;
    --text-mutede: #64748b;
    --bg-gradiente: linear-gradient(135deg, #e2f7fa4f 0%, #d4cbf8ad 100%);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Header Styles --- */
.main-header {
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    max-height: 45px;
    width: auto;
    display: block;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    max-width: 600px;
}

.exam-dropdown {
    position: relative;
}

.exam-dropdown select {
    appearance: none;
    -webkit-appearance: none;
    padding: 10px 40px 10px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231b1c4b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.exam-dropdown select:hover, .exam-dropdown select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 28, 75, 0.1);
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    background: var(--bg-light);
    transition: 0.3s;
}

.search-bar:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(27, 28, 75, 0.1);
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    margin-left: 10px;
    font-size: 14px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn, .login-btn {
    padding: 9px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    font-size: 14px;
}

.action-btn {
    background: var(--bg-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    background: #e9eaef;
}

.login-btn {
    background: var(--primary-color);
    color: var(--text-light);
}

.login-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.icon-btn, .menu-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
    transition: 0.3s;
}

.icon-btn:hover {
    color: var(--accent-color);
}

/* --- Notification Animation & Badge --- */
.notification-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background-color: #ff3b30;
    border-radius: 50%;
    border: 1.5px solid #fff;
}

@keyframes ring {
    0% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-10deg); }
    30% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    50% { transform: rotate(0); }
    100% { transform: rotate(0); }
}

.ring-animation {
    animation: ring 2s infinite ease-in-out;
    transform-origin: top center;
    display: inline-block;
}

.secondary-nav {
    border-top: 1px solid var(--border-color);
    padding: 12px 0;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 4px;
}

/* --- Mobile Drawer --- */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    transition: 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-drawer.open { left: 0; }

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    display: none;
    backdrop-filter: blur(2px);
}

.overlay.open { display: block; }

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.drawer-logo-small { 
    max-width: 50px; 
    max-height: 50px; 
    object-fit: contain; 
    border-radius: 50%; 
}

.close-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-dark);
    padding: 5px;
}

.drawer-links li { border-bottom: 1px solid #f0f0f0; }

.drawer-links a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    font-size: 15px;
    color: #444;
    gap: 15px;
    transition: 0.3s;
}

.drawer-links a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
}

.drawer-links a i {
    width: 20px;
    color: var(--primary-color);
}

/* --- Carousel (NO CUTTING / SKEW FIX) --- */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #eee;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 400px; /* Fixed Desktop Height */
    display: block; 
}

.slide img {
    width: 100%;
    height: 100%; /* Force image to match the container height */
    object-fit: fill; /* MAGIC FIX: Stretches/Skews the image instead of cutting it */
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    color: var(--primary-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.carousel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.prev { left: 30px; }
.next { right: 30px; }

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    background: rgba(0,0,0,0.3);
    padding: 8px 15px;
    border-radius: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #fff;
    width: 25px;
    border-radius: 10px;
}

/* --- Footer --- */
.main-footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 70px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-col ul li { margin-bottom: 15px; }
.footer-col ul a { font-size: 14px; color: #d1d2df; transition: 0.3s; }
.footer-col ul a:hover { color: #fff; padding-left: 8px; }

.footer-queries p { font-size: 14px; margin: 20px 0; color: #d1d2df; line-height: 1.6; }
.counseling-box { background: #fff; padding: 20px; border-radius: 8px; color: var(--text-dark); margin: 25px 0; }
.counseling-box p { font-weight: 600; margin-bottom: 10px; }
.call-btn { background: var(--accent-color); color: #fff; border: none; padding: 12px 15px; border-radius: 5px; width: 100%; font-weight: 600; cursor: pointer; transition: 0.3s; font-size: 15px; }
.call-btn:hover { background: #cc5f00; }

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 12px;
    transition: 0.3s;
    color: #fff;
}
.social-icons a:hover { background: var(--accent-color); transform: translateY(-3px); }

/* --- Responsive Utilities --- */
.mobile-only { display: none !important; }

@media (max-width: 1024px) {
    .nav-links { gap: 20px; }
    .header-center { max-width: 400px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: inline-flex !important; } 
    
    .header-top { padding: 15px; }
    .nav-logo { max-height: 50px; }
    
    /* Mobile Carousel Fix: Height set manually, image will stretch to fit */
    .slide {
        height: 220px; /* Acchi khaasi height jisme content clear dikhega */
    }
    
    .carousel-btn { width: 30px; height: 30px; font-size: 12px; }
    .prev { left: 10px; }
    .next { right: 10px; }
    .carousel-dots { bottom: 10px; padding: 5px 10px; gap: 8px; }
    .dot { width: 8px; height: 8px; }
    .dot.active { width: 20px; }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-col h3::after { left: 50%; transform: translateX(-50%); }
    .footer-logo img { margin: 0 auto 15px; }
    .social-icons { justify-content: center; display: flex; }
}

@media (max-width: 480px) {
    .header-top { gap: 10px; }
    .nav-logo { max-height:45px; }
    
    
    /* Small Mobile Carousel Fix */
    .slide {
        height: 180px;
    }
}


/* --- Hero Section Styles --- */
.disha-hero-section {
    background: var(--bg-gradiente);
    padding: 80px 0 140px 0; /* Extra bottom padding for overlap */
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Hero Text */
.hero-text-content h1 {
    font-size: 46px;
    font-weight: 700;
    color: var(--text-darke);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text-content h1 .highlight {
    color: var(--primary-colore);
}

.hero-text-content p {
    font-size: 18px;
    color: var(--text-mutede);
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 90%;
}

.btn-get-started {
    display: inline-block;
    background-color: var(--primary-colore);
    color: #fff;
    padding: 14px 35px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(90, 75, 218, 0.3);
}

.btn-get-started:hover {
    background-color: var(--primary-hovere);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 75, 218, 0.4);
}

/* Hero Visuals (The Floating Elements) */
.hero-visual-content {
    position: relative;
    height: 450px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Dotted Line Circle */
.decorative-circle {
    position: absolute;
    width: 350px;
    height: 350px;
    border: 2px dashed #cbd5e1;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: rotateSlow 30s linear infinite;
}

.profile-group {
    position: absolute;
    z-index: 5;
}

.img-wrapper {
    border-radius: 50%;
    padding: 8px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.img-wrapper img {
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Positioning specific elements */
.teacher-profile {
    bottom: 40px;
    left: 20px;
}

.teacher-profile img {
    width: 140px;
    height: 140px;
}

.student-profile {
    top: 20px;
    right: 30px;
}

.student-profile img {
    width: 100px;
    height: 100px;
}


/* Chat Bubbles */
.chat-bubble {
    position: absolute;
    background: #fff;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.teacher-bubble {
    background: var(--primary-colore);
    color: #fff;
    top: 20px;
    left: 100%;
    margin-left: 15px;
    border-bottom-left-radius: 0;
}

.student-bubble {
    color: var(--text-darke);
    border: 1px solid #e2e8f0;
    bottom: 20px;
    right: 100%;
    margin-right: 15px;
    border-bottom-right-radius: 0;
}

/* --- Overlapping Stats Card --- */
.stats-container {
    position: relative;
    margin-top: -60px; /* Pulls the card up over the hero section */
    z-index: 10;
    padding-bottom: 50px;
}

.stats-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    display: flex;
    justify-content: space-between;
    padding: 35px 20px;
    flex-wrap: wrap;
    border: 1px solid #f1f5f9;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 15px;
    border-right: 1px solid #e2e8f0;
}

.stat-item:last-child {
    border-right: none;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    margin-bottom: 15px;
}

/* Icon Colors */
.bg-red { background: #fee2e2; color: #ef4444; }
.bg-blue { background: #e0f2fe; color: #3b82f6; }
.bg-purple { background: #f3e8ff; color: #a855f7; }
.bg-yellow { background: #fef3c7; color: #eab308; }

.stat-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* --- Animations --- */
@keyframes float-up-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes float-down-up {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(15px); }
}

@keyframes rotateSlow {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.float-up-down { animation: float-up-down 4s ease-in-out infinite; }
.float-down-up { animation: float-down-up 5s ease-in-out infinite; }


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-text-content h1 { font-size: 38px; }
    .hero-text-content p { font-size: 16px; }
    .teacher-bubble { white-space: normal; width: 200px; }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-text-content p {
        margin: 0 auto 30px auto;
    }
    
    .hero-visual-content {
        height: 400px;
    }

    .teacher-profile { left: 10%; bottom: 20px; }
    .student-profile { right: 10%; top: 20px; }

    .stats-card {
        grid-template-columns: 1fr 1fr;
        display: grid;
        gap: 30px;
    }
    
    .stat-item {
        border-right: none;
    }
    
    .stat-item:nth-child(odd) {
        border-right: 1px solid #e2e8f0;
    }
}

@media (max-width: 576px) {
    .disha-hero-section {
        padding: 50px 0 100px 0;
    }

    .hero-text-content h1 {
        font-size: 32px;
    }

    .hero-visual-content {
        height: 270px;
    }

    .decorative-circle {
        width: 250px;
        height: 250px;
    }

    .teacher-profile img { width: 100px; height: 100px; }
    .student-profile img { width: 80px; height: 80px; }
    
    .teacher-bubble, .student-bubble {
        font-size: 11px;
        padding: 8px 10px;
    }

    .stats-container {
        margin-top: -40px;
    }

    .stats-card {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px;
    }

    .stat-item:nth-child(odd) {
        border-right: none;
    }
    
    .stat-item {
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 20px;
    }
    
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}



/* ========================================= */
/* --- PW STYLE EXAM CATEGORIES CSS -------- */
/* ========================================= */

.exam-categories-section {
    padding: 70px 20px;
   
    font-family: 'Poppins', sans-serif;
}

.ec-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.ec-header {
    text-align: center;
    margin-bottom: 45px;
}

.ec-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
}

.ec-header p {
    font-size: 15px;
    color: #555555;
    max-width: 700px;
    margin: 0 auto;
}

/* The Grid */
.ec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* The Card */
.ec-card {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    /* Extra right padding taaki text image ke upar na aaye */
    padding: 28px 130px 24px 24px; 
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ec-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Left Content: Title & Tags */
.ec-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 18px;
    z-index: 2;
}

.ec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    z-index: 2;
}

.ec-tags span {
    padding: 6px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    color: #64748b;
    background: #ffffff;
    font-weight: 500;
    transition: border-color 0.2s;
}

.ec-tags span:hover {
    border-color: #94a3b8;
    color: #334155;
}

/* Explore Link */
.ec-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    margin-top: auto; /* Pushes the link to bottom if tags vary */
    z-index: 2;
    transition: color 0.3s;
}

.ec-explore i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.ec-card:hover .ec-explore {
    color: #1b1c4b; /* Change to primary color on hover */
}

.ec-card:hover .ec-explore i {
    transform: translateX(6px); /* Arrow moves right */
}

/* Right Content: Curved Background & Image */
.ec-bg-curve {
    position: absolute;
    top: -15%;
    right: -40px;
    width: 170px;
    height: 130%;
    border-radius: 50%;
    z-index: 0;
}

.ec-icon {
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    width: 65px;
    height: 65px;
    z-index: 1;
    object-fit: contain;
}

/* Theme Colors for Curves (Matches the image) */
.theme-pink .ec-bg-curve { background-color: #fdf2f8; }    /* Soft Pink */
.theme-blue .ec-bg-curve { background-color: #f0fdf4; }    /* Soft Blue */
.theme-orange .ec-bg-curve { background-color: #fff7ed; }  /* Soft Orange */
.theme-purple .ec-bg-curve { background-color: #f8fafc; }  /* Soft Grey/Purple */
.theme-green .ec-bg-curve { background-color: #eff6ff; }   /* Light Cyan */
.theme-yellow .ec-bg-curve { background-color: #fefce8; }  /* Soft Yellow */


/* Footer Link */
.ec-footer {
    text-align: center;
    margin-top: 45px;
}

.ec-footer a {
    color: #4f46e5;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 1px dashed #4f46e5;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.ec-footer a:hover {
    color: #3730a3;
    border-bottom-style: solid;
}

/* ========================================= */
/* --- RESPONSIVE MEDIA QUERIES ------------ */
/* ========================================= */

/* Tablets & Small Laptops */
@media (max-width: 1024px) {
    .ec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .exam-categories-section {
        padding: 50px 15px;
    }
    
    .ec-header h2 {
        font-size: 26px;
    }
    
    .ec-header p {
        font-size: 14px;
    }

    .ec-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ec-card {
        padding: 24px 110px 24px 20px;
    }

    .ec-icon {
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .ec-bg-curve {
        right: -30px;
        width: 130px;
    }
}




/* ========================================= */
/* --- PREMIUM STUDY MATERIALS CSS --------- */
/* ========================================= */

.premium-study-materials {
    padding: 80px 20px;
    background-color: #f8fafc; /* Professional subtle slate background */
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden; /* Important to prevent horizontal scroll issues on body */
}

.psm-container {
    max-width: 1240px;
    margin: 0 auto;
}

/* --- Section Header --- */
.psm-header {
    text-align: center;
    margin-bottom: 50px;
}

.psm-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: #eff6ff;
    color: #4f46e5;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.psm-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.psm-header p {
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Grid Layout (Desktop) --- */
.psm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- Card UI Design --- */
.psm-card {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    text-decoration: none; /* Removes link underline */
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.psm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

/* Card Header: Icon + Badge */
.psm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 22px;
}

.psm-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: transform 0.4s ease;
}

.psm-card:hover .psm-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Specific Icon Themes */
.bg-blue-light { background: #eff6ff; color: #3b82f6; }
.bg-red-light { background: #fef2f2; color: #ef4444; }
.bg-orange-light { background: #fff7ed; color: #f97316; }
.bg-green-light { background: #f0fdf4; color: #22c55e; }
.bg-purple-light { background: #faf5ff; color: #a855f7; }
.bg-yellow-light { background: #fefce8; color: #eab308; }

.psm-badge {
    background-color: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* Card Body: Title + Description */
.psm-card-body {
    flex-grow: 1;
}

.psm-card-body h3 {
    font-size: 19px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.psm-card:hover .psm-card-body h3 {
    color: #4f46e5; /* Turns Indigo on hover */
}

.psm-card-body p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Card Footer: Dashed Line + Link */
.psm-card-footer {
    border-top: 1px dashed #e2e8f0;
    padding-top: 18px;
    margin-top: auto;
}

.psm-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4f46e5;
    transition: color 0.3s ease;
}

.psm-link i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.psm-card:hover .psm-link {
    color: #3730a3;
}

.psm-card:hover .psm-link i {
    transform: translateX(6px); /* Arrow slides right */
}

/* ========================================= */
/* --- RESPONSIVE DESIGN (ALL DEVICES) ----- */
/* ========================================= */

/* Small Desktops & Large Tablets */
@media (max-width: 1024px) {
    .psm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices (The UX Magic happens here) */
@media (max-width: 768px) {
    .premium-study-materials {
        padding: 60px 15px;
    }
    
    .psm-header {
        margin-bottom: 35px;
    }

    .psm-header h2 {
        font-size: 26px;
    }
    
    .psm-header p {
        font-size: 14px;
    }

    /* FULL-BLEED HORIZONTAL SWIPE FOR MOBILE */
    .psm-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        
        /* Edge-to-edge magic */
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 30px; /* Space for hover shadows */
        
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }

    .psm-grid::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }
    
    .psm-card {
        flex: 0 0 82%; /* Card takes 82% width, letting the next card peek out */
        max-width: 320px;
        scroll-snap-align: center;
        padding: 20px;
    }

    .psm-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .psm-card-body h3 {
        font-size: 17px;
    }
}



/* ========================================= */
/* --- DISHA FREE VIDEOS SECTION CSS ------- */
/* ========================================= */

.disha-free-videos {
    padding: 70px 20px;
   
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

.dfv-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

/* --- Header & Navigation Arrows --- */
.dfv-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
}

.dfv-title-box {
    position: relative;
    display: inline-block;
}

.dfv-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

/* The New "Attractive" Line replacing the Yellow Stick */
.dfv-modern-line {
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #1b1c4b, #e46a00); /* Disha Brand Colors */
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(228, 106, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.dfv-modern-line::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer-line 2.5s infinite;
}

@keyframes shimmer-line {
    100% { left: 200%; }
}

.dfv-nav-arrows {
    display: flex;
    gap: 12px;
}

.dfv-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dfv-arrow:hover {
    background: #1b1c4b;
    color: #ffffff;
    border-color: #1b1c4b;
    box-shadow: 0 4px 10px rgba(27, 28, 75, 0.2);
}

/* --- Slider Track --- */
.dfv-track-wrapper {
    width: 100%;
}

.dfv-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px 5px 30px 5px; /* Added padding for shadow visibility */
    
    /* Hide scrollbar */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
}

.dfv-track::-webkit-scrollbar {
    display: none; 
}

/* --- The Video Card --- */
.dfv-card {
    flex: 0 0 calc(25% - 15px); /* 4 cards exactly on desktop */
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dfv-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transform: translateY(-6px);
    border-color: #d1d9e6;
}

/* Thumbnail Area */
.dfv-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; 
    overflow: hidden;
    background: #111;
}

.dfv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.95;
}

.dfv-card:hover .dfv-thumb img {
    transform: scale(1.06); 
    opacity: 1;
}

/* Translucent Play Button (Image Match) */
.dfv-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-size: 20px;
    padding-left: 4px; /* Optical play icon centering */
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.dfv-card:hover .dfv-play-btn {
    background: #e46a00; /* Disha Orange */
    color: #ffffff;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(228, 106, 0, 0.4);
}

/* Card Info Area */
.dfv-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.dfv-video-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px 0;
    line-height: 1.4;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Truncates after 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.dfv-card:hover .dfv-video-title {
    color: #1b1c4b;
}

.dfv-video-desc {
    font-size: 13px;
    color: #718096;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Footer Area (Dots & Button) --- */
.dfv-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

/* Pagination Dots */
.dfv-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex: 1;
}

.dfv-dot {
    width: 12px;
    height: 12px;
    background-color: #e2e8f0;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dfv-dot.active {
    width: 30px;
    border-radius: 10px;
    background-color: #1b1c4b; /* Disha Navy */
}

/* Explore Button */
.dfv-explore-btn {
    background-color: #f3f4fc; /* Very light subtle blue */
    color: #1b1c4b;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dfv-explore-btn:hover {
    background-color: #1b1c4b;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(27, 28, 75, 0.2);
    transform: translateY(-2px);
}

/* ========================================= */
/* --- RESPONSIVE DESIGN (UX Magic) -------- */
/* ========================================= */

@media (max-width: 1024px) {
    .dfv-card {
        flex: 0 0 calc(33.333% - 14px); /* 3 cards on tablet */
    }
}

@media (max-width: 768px) {
    .disha-free-videos {
        padding: 50px 15px;
    }

    .dfv-title {
        font-size: 24px;
    }

    /* Hide arrows on mobile, swipe is better */
    .dfv-nav-arrows {
        display: none;
    }

    .dfv-card {
        flex: 0 0 calc(50% - 10px); /* 2 cards on portrait tablet */
    }

    /* Stack footer elements on mobile */
    .dfv-footer {
        flex-direction: column;
        gap: 25px;
        margin-top: 15px;
    }
    
    .dfv-explore-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .dfv-card {
        /* Mobile horizontal swipe trick: show 85% of card */
        flex: 0 0 85%; 
        max-width: 320px;
    }
    
    .dfv-video-title {
        font-size: 14px;
    }
    
    .dfv-play-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

.pis-brush-line {
    position: absolute;
    bottom: -2px;
    left: -5%;
    width: 110%;
    height: 10px;
    background-color: #fde047; /* Professional warm yellow brush */
    z-index: 1;
    border-radius: 8px;
    transform: skewX(-20deg);
    opacity: 0.8;
}


/* ========================================= */
/* --- DISHA 'OUR IMPACT' CSS -------------- */
/* ========================================= */

.disha-impact-section {
    padding: 80px 15px 90px 15px;
   
    font-family: 'Poppins', sans-serif;
    overflow: hidden; /* Prevents unwanted horizontal scroll on body */
    width: 100%;
}

.dis-container {
    max-width: 1280px;
    margin: 0 auto;
}

/* --- Header Styles --- */
.dis-header {
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.dis-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 5px 0;
    position: relative;
    z-index: 2;
}

.dis-underline {
    position: absolute;
    bottom: 2px;
    left: -5%;
    width: 110%;
    height: 8px;
    background-color: #fde047; /* Professional yellow brush */
    z-index: 1;
    border-radius: 4px;
    transform: skewX(-20deg);
    opacity: 0.9;
}

/* --- Hexagon Grid Layout --- */
.dis-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    width: 100%;
}

/* --- Hexagon Shapes & Drop-Shadows --- */
.dis-hex-wrapper {
    /* Shadow applied to wrapper so it matches the clip-path shape perfectly */
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
    cursor: default;
    /* Prevents shrinking in flexbox */
    flex-shrink: 0; 
}

.dis-hex-wrapper:hover {
    transform: translateY(-10px);
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}

/* Outer White Border Hexagon */
.dis-hex-outer {
    width: 210px;
    height: 182px; /* Mathematically perfect ratio */
    background-color: #ffffff;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Inner Colored Hexagon */
.dis-hex-inner {
    width: 198px; /* 6px white border on all sides */
    height: 170px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding: 0 15px;
}

/* Exact Professional Colors */
.bg-indigo { background-color:#4B9DA9; }
.bg-gold   { background-color: #FF7070; }
.bg-green  { background-color: #E37434; }
.bg-rust   { background-color: #900C27; }
.bg-maroon { background-color: #FF9B00; }

/* --- Typography --- */
.dis-stats {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 5px;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.15);
}

.dis-num, .dis-suf {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
}

.dis-label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    opacity: 0.95;
}


/* ========================================= */
/* --- 100% RESPONSIVE DESIGN (UX MAGIC) --- */
/* ========================================= */

/* Laptops & Large Tablets */
@media (max-width: 1200px) {
    .dis-grid {
        gap: 15px;
    }
    .dis-hex-outer { width: 180px; height: 156px; }
    .dis-hex-inner { width: 170px; height: 146px; }
    .dis-num, .dis-suf { font-size: 28px; }
    .dis-label { font-size: 12px; }
}

/* Small Tablets */
@media (max-width: 992px) {
    .dis-header {
        display: block;
        text-align: center;
        margin-bottom: 40px;
    }
    .dis-underline {
        left: 50%;
        transform: translateX(-50%) skewX(-20deg);
        width: 140px;
    }
    .dis-grid {
        gap: 20px;
    }
}

/* Mobile Phones: Native Edge-to-Edge Swipe Slider */
@media (max-width: 768px) {
    .disha-impact-section {
        padding: 50px 0 60px 0; /* Removed side padding for full-bleed scroll */
    }

    .dis-header {
        margin-bottom: 30px;
    }

    .dis-title { 
        font-size: 26px; 
    }

    .dis-grid {
        display: flex;
        flex-wrap: nowrap; /* Forces items into a single row */
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 15px; /* Room for drop shadow */
        padding-bottom: 30px; /* Room for drop shadow on hover/scroll */
        
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }

    .dis-grid::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }

    .dis-hex-wrapper {
        scroll-snap-align: center;
    }
    
    /* Slightly smaller hexagons for mobile so they fit perfectly */
    .dis-hex-outer { width: 165px; height: 143px; }
    .dis-hex-inner { width: 155px; height: 133px; }
    
    .dis-num, .dis-suf { font-size: 26px; }
    .dis-label { font-size: 11px; }
}




/* ========================================= */
/* --- 'WHY CHOOSE US' CSS (PREMIUM UI/UX) - */
/* ========================================= */

.disha-why-choose {
    padding: 80px 20px;
    
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

.dwc-container {
    max-width: 1280px;
    margin: 0 auto;
}

/* --- Header Styles --- */
.dwc-header {
    text-align: left;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.dwc-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    position: relative;
    z-index: 2;
}

.dwc-brush-line {
    position: absolute;
    bottom: -4px;
    left: -2px;
    width: 105%;
    height: 8px;
    background-color: #fde047; /* Professional warm yellow brush */
    z-index: 1;
    border-radius: 8px;
    transform: skewX(-20deg);
    opacity: 0.9;
}

/* --- The Soft Background Wrapper --- */
.dwc-showcase-box {
    background-color: #eef0f8; /* Very soft lavender/gray background */
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.01); /* Subtle inner depth */
}

/* --- Grid Layout --- */
.dwc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* --- Card UI Design --- */
.dwc-card {
    background-color: #ffffff;
    border-radius: 20px; /* Highly rounded corners matching image */
    padding: 35px 25px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.dwc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(27, 28, 75, 0.08); /* Premium brand-colored shadow */
    border-color: rgba(27, 28, 75, 0.1);
}

/* --- Pastel Icon Boxes --- */
.dwc-icon-box {
    width: 75px;
    height: 75px;
    border-radius: 20px; /* Squircle shape */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 25px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.dwc-card:hover .dwc-icon-box {
    transform: scale(1.1) rotate(-5deg);
}

/* Exact Pastel Colors from the Reference Image */
.box-green { background-color: #e6f4ea; color: #1e8e3e; }
.dwc-card:hover .box-green { box-shadow: 0 10px 20px rgba(30, 142, 62, 0.2); }

.box-blue { background-color: #e8f0fe; color: #1a73e8; }
.dwc-card:hover .box-blue { box-shadow: 0 10px 20px rgba(26, 115, 232, 0.2); }

.box-pink { background-color: #fce8e6; color: #d93025; }
.dwc-card:hover .box-pink { box-shadow: 0 10px 20px rgba(217, 48, 37, 0.2); }

.box-mint { background-color: #e4f7fb; color: #00bfa5; }
.dwc-card:hover .box-mint { box-shadow: 0 10px 20px rgba(0, 191, 165, 0.2); }

/* --- Typography --- */
.dwc-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.dwc-card:hover .dwc-card-title {
    color: #1b1c4b; /* Turns brand navy on hover */
}

.dwc-card-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}


/* ========================================= */
/* --- RESPONSIVE DESIGN (UX MAGIC) -------- */
/* ========================================= */

/* Large Tablets & Small Laptops */
@media (max-width: 1200px) {
    .dwc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile & Small Tablets */
@media (max-width: 768px) {
    .disha-why-choose {
        padding: 60px 15px;
    }

    .dwc-header {
        text-align: center;
        display: block;
        margin-bottom: 30px;
    }

    .dwc-brush-line {
        left: 50%;
        transform: translateX(-50%) skewX(-20deg);
        width: 160px;
    }

    .dwc-title {
        font-size: 26px;
    }

    /* Remove outer padding of showcase box on mobile to maximize space */
    .dwc-showcase-box {
        padding: 40px 0; /* Only top/bottom padding, side padding handled by grid */
        border-radius: 20px;
    }

    /* Edge-to-Edge Horizontal Swipe Slider for Mobile */
    .dwc-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 20px; /* Space for drop shadows */
        
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; 
    }

    .dwc-grid::-webkit-scrollbar {
        display: none; 
    }

    .dwc-card {
        flex: 0 0 85%; /* Card takes 85% width, next card peeks */
        max-width: 320px;
        scroll-snap-align: center;
        padding: 30px 20px;
    }

    .dwc-icon-box {
        width: 65px;
        height: 65px;
        font-size: 26px;
        margin-bottom: 20px;
    }

    .dwc-card-title {
        font-size: 16px;
    }
}

/* Very Small Phones */
@media (max-width: 480px) {
    .dwc-card {
        flex: 0 0 90%; 
    }
}


/* ========================================= */
/* --- JOIN THE FAMILY SECTION CSS --------- */
/* ========================================= */

.disha-family-section {
    padding: 80px 0;
  
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

.dfam-container {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* --- Header Styles --- */
.dfam-header {
    margin-bottom: 50px;
    padding: 0 20px;
}

.dfam-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #111111;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.dfam-header p {
    font-size: 16px;
    color: #555555;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Infinite Marquee Wrapper --- */
.dfam-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    
    /* Adds a slight fade effect on left and right edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.dfam-marquee-track {
    display: flex;
    width: max-content;
    gap: 25px;
    /* 25s defines the speed. Change it to make it faster or slower */
    animation: dfam-scroll 25s linear infinite; 
}

/* Pause animation on hover for Better UX */
.dfam-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes dfam-scroll {
    0% { transform: translateX(0); }
    /* Moves exactly 50% left (which covers the first set of 5 cards perfectly) */
    100% { transform: translateX(calc(-50% - 12.5px)); } 
}

/* --- The Gold/Silver Cards --- */
.dfam-card {
    width: 300px;
    flex-shrink: 0;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* The default Golden Gradient exactly like the image */
    background: linear-gradient(180deg, #fbe8c7 0%, #fdf5e6 30%, #ffffff 60%);
}

.dfam-card-inner {
    padding: 35px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dfam-yt-icon {
    font-size: 45px;
    color: #c9a35e; /* Golden YouTube Icon */
    margin-bottom: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.dfam-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 8px 0;
    transition: color 0.3s ease;
}

.dfam-card p {
    font-size: 14px;
    font-weight: 600;
    color: #777777;
    margin: 0;
}

/* --- Hover State (The Silver Edition) --- */
.dfam-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
    /* Changes to Premium Silver/Platinum Gradient on hover */
    background: linear-gradient(180deg, #e2e8f0 0%, #f1f5f9 30%, #ffffff 60%);
}

.dfam-card:hover .dfam-yt-icon {
    color: #1e293b; /* Dark Silver/Black icon */
    transform: scale(1.1);
}

.dfam-card:hover h3 {
    color: #000000;
}

/* --- Action Button --- */
.dfam-action {
    margin-top: 40px;
}

.dfam-btn {
    display: inline-block;
    background-color: #5a4bda; /* Premium Purple Color matching image */
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(90, 75, 218, 0.3);
}

.dfam-btn:hover {
    background-color: #483ab8;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(90, 75, 218, 0.4);
}

/* ========================================= */
/* --- RESPONSIVE DESIGN ------------------- */
/* ========================================= */

@media (max-width: 768px) {
    .disha-family-section {
        padding: 60px 0;
    }
    
    .dfam-header h2 {
        font-size: 28px;
    }
    
    .dfam-header p {
        font-size: 14px;
    }

    .dfam-card {
        width: 260px; /* Slightly smaller cards on mobile */
    }

    .dfam-card-inner {
        padding: 25px 15px;
    }

    .dfam-yt-icon {
        font-size: 40px;
    }
    
    .dfam-card h3 {
        font-size: 16px;
    }
    
    /* On mobile, remove fade mask so it goes edge to edge strictly */
    .dfam-marquee-wrapper {
        -webkit-mask-image: none;
        mask-image: none;
    }
}


/* ========================================= */
/* --- REALISTIC 3D APP PROMO CSS ---------- */
/* ========================================= */

.disha-app-promo {
    padding: 100px 20px;
    
    font-family: 'Poppins', sans-serif;
    overflow: hidden; /* CRITICAL: Stops 3D objects from creating horizontal scroll */
    position: relative;
    width: 100%;
}

.app-promo-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr; /* Left text, Right mockup */
    align-items: center;
    gap: 40px;
}

/* --- Content Side --- */
.app-promo-content {
    max-width: 500px;
    position: relative;
    z-index: 10;
}

.app-promo-title {
    font-size: 42px;
    font-weight: 700; /* Exact bold weight from image */
    color: #000000;
    line-height: 1.15;
    margin: 0 0 20px 0;
    letter-spacing: -1px;
}

.app-promo-subtitle {
    font-size: 16px;
    color: #4b5563; /* Professional grey */
    line-height: 1.6;
    margin: 0 0 40px 0;
}

/* --- App Store Buttons --- */
.app-store-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.app-btn-black {
    display: inline-flex;
    align-items: center;
    background-color: #000000;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.app-btn-black:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    background-color: #1a1a1a;
}

.app-btn-black i {
    font-size: 30px;
    margin-right: 12px;
}

.app-btn-text {
    display: flex;
    flex-direction: column;
}

.app-btn-small {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.app-btn-large {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* --- Visual Side (3D Isometric Mockups) --- */
.app-promo-visuals {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Soft glowing background spot behind phones */
    background: radial-gradient(circle at center, rgba(238, 242, 255, 0.8) 0%, transparent 60%);
}

/* The Stage sets the 3D Angle */
.isometric-stage {
    position: relative;
    width: 300px;
    height: 550px;
    /* Exact angles to match your reference image */
    transform: rotateX(60deg) rotateZ(-45deg);
    transform-style: preserve-3d;
}

/* --- Base Phone Design --- */
.iso-phone {
    position: absolute;
    width: 260px;
    height: 540px;
    background-color: #ffffff;
    border-radius: 35px;
    /* Thick white bezel */
    border: 10px solid #ffffff; 
    /* Multiple shadows to create realistic 3D Extrusion (Thickness) */
    box-shadow: 
        -1px 1px 0 #f1f5f9,
        -2px 2px 0 #e2e8f0,
        -3px 3px 0 #cbd5e1,
        -4px 4px 0 #94a3b8,
        -15px 15px 25px rgba(0, 0, 0, 0.1),
        -30px 30px 50px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.5s ease;
}

.iso-phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f8fafc; /* Placeholder loading color */
}

/* Dynamic Island / Notch for Realism */
.app-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 25px;
    background-color: #000000;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 10;
}

/* --- Positioning & Floating Depth --- */

/* 1. Main Bottom Phone (Closest) */
.phone-main {
    bottom: -15%;
    left: 15%;
    transform: translateZ(80px); /* Highest up */
    z-index: 3;
    animation: float-main 5s infinite ease-in-out;
}

/* 2. Top Left Phone (Furthest) */
.phone-top-left {
    top: -15%;
    left: -40%;
    transform: translateZ(0px); /* Lowest down */
    z-index: 1;
    animation: float-tl 6s infinite ease-in-out;
}

/* 3. Top Right Phone (Middle Depth) */
.phone-top-right {
    top: -30%;
    right: -40%;
    transform: translateZ(30px); /* Middle height */
    z-index: 2;
    animation: float-tr 5.5s infinite ease-in-out reverse;
}

/* Hover effect: Phones lift up when user hovers */
.isometric-stage:hover .phone-main { transform: translateZ(100px); }
.isometric-stage:hover .phone-top-right { transform: translateZ(50px); }
.isometric-stage:hover .phone-top-left { transform: translateZ(20px); }

/* Floating Keyframes */
@keyframes float-main {
    0%, 100% { transform: translateZ(80px) translateY(0); }
    50% { transform: translateZ(80px) translateY(-15px); }
}
@keyframes float-tl {
    0%, 100% { transform: translateZ(0px) translateY(0); }
    50% { transform: translateZ(0px) translateY(-10px); }
}
@keyframes float-tr {
    0%, 100% { transform: translateZ(30px) translateY(0); }
    50% { transform: translateZ(30px) translateY(-12px); }
}

/* ========================================= */
/* --- 100% RESPONSIVE UX FOR MOBILE ------- */
/* ========================================= */

@media (max-width: 1024px) {
    .app-promo-title { font-size: 36px; }
    /* Scale down the 3D stage on laptops */
    .isometric-stage { transform: scale(0.8) rotateX(60deg) rotateZ(-45deg); }
}

/* Mobile & Small Tablets */
@media (max-width: 768px) {
    .disha-app-promo {
        padding: 60px 15px 0 15px; /* Removed bottom padding for seamless cut-off */
    }

    .app-promo-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Left-aligned content exactly like your mobile reference image */
    .app-promo-content {
        max-width: 100%;
        text-align: left; 
    }

    .app-promo-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .app-store-buttons {
        gap: 12px;
    }

    /* Mobile Visual Area */
    .app-promo-visuals {
        height: 400px; /* Reduced height for mobile */
        margin-top: 10px;
    }

    /* *CRITICAL FIX FOR MOBILE*
     * We scale the stage down and securely anchor it to the center.
     * It will never break or overflow the screen width.
     */
    .isometric-stage {
        /* Centered perfectly, scaled down to 55% */
        transform: scale(0.55) rotateX(60deg) rotateZ(-45deg);
        transform-origin: center center;
    }
}

/* Extra Small Phones */
@media (max-width: 480px) {
    .app-promo-title { font-size: 28px; }
    .app-promo-visuals { height: 350px; }
    
    /* Scale down even further for very small phones */
    .isometric-stage {
        transform: scale(0.45) rotateX(60deg) rotateZ(-45deg);
    }
}





