/* css/pages/dethi-thptqg.css - Premium UI for Exam Repository */

:root {
    --bg-deep: #0f172a;
    --accent-primary: #3b82f6;
    --accent-secondary: #0ea5e9;
    --text-light: #f8fafc;
    --font-heading: 'Montserrat', 'sf pro display', sans-serif;
    --radius-md: 24px;
}

body {
    background-color: #f8fafc;
    color: #334155;
    font-family: 'Roboto', sans-serif;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
}

/* --- Hero Section --- */
.dt-hero {
    position: relative;
    padding: 100px 40px 100px;
    background: linear-gradient(-45deg, #0f172a, #1e293b, #0f172a, #090a57);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    color: white;
    text-align: center;
    border-radius: var(--radius-md);
    margin-bottom: 50px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatingShape 20s infinite linear;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -50px;
    animation-duration: 25s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 5%;
    animation-duration: 30s;
    animation-direction: reverse;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 20%;
    animation-duration: 15s;
}

@keyframes floatingShape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(30px, 30px) rotate(180deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.dt-hero-content {
    position: relative;
    z-index: 10;
}

.page-title-new {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: white !important;
}

.page-subtitle-new {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* --- Program Tabs --- */
.program-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-button {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 35px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* very light border */
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
    color: #64748b;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    border-color: transparent;
    transform: translateY(-2px);
}

.tab-button:hover:not(.active) {
    background-color: #f1f5f9;
    transform: translateY(-2px);
}

/* --- Subject Grid & Cards --- */
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Redefine subject-card to match 'glass-card' style */
.subject-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.subject-card:hover::before {
    opacity: 1;
}

.subject-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background: none !important;
    padding: 0;
}

.subject-card-header i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--accent-primary);
    border-radius: 16px;
    font-size: 1.5rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.subject-card:hover .subject-card-header i {
    background: var(--accent-primary);
    color: white;
}

.subject-card-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.subject-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.subject-card-body p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #f8fafc;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.cta-button:hover {
    background-color: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Specific Subject Colors for Icons (Optional override) */
.literature-header i {
    color: #ec4899;
    background: #fdf2f8;
}

.subject-card:hover .literature-header i {
    background: #ec4899;
    color: white;
}

.math-header i {
    color: #3b82f6;
    background: #eff6ff;
}

.subject-card:hover .math-header i {
    background: #3b82f6;
    color: white;
}

.physics-header i {
    color: #8b5cf6;
    background: #f5f3ff;
}

.subject-card:hover .physics-header i {
    background: #8b5cf6;
    color: white;
}

.chemistry-header i {
    color: #10b981;
    background: #ecfdf5;
}

.subject-card:hover .chemistry-header i {
    background: #10b981;
    color: white;
}