body {
    font-family: 'Inter', var(--font, sans-serif);
    background-color: #ffffff;
    color: #2B2350;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hero-banner {
    position: relative;
    padding: 140px 20px 60px;
    background: white;
    text-align: center;
    overflow: hidden;
}

/* Removed hero-banner::after ellipse background as per request */

.hero-banner * {
    position: relative;
    z-index: 1;
}

.hero-banner h1 {
    font-size: 3.5rem;
    color: #2B2350;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-alt, serif);
}

.hero-banner p {
    font-size: 1.125rem;
    color: #2B2350;
    max-width: 600px;
    margin: 0 auto;
}

.content-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    gap: 40px;
    background-color: #ffffff;
    box-sizing: border-box;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding-top: 40px;
    min-height: 800px;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.search-box {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.95rem;
    margin-bottom: 30px;
    outline: none;
}

.search-box:focus {
    border-color: #713AD3;
    box-shadow: 0 0 0 2px rgba(113, 58, 211, 0.2);
}

.filter-section {
    margin-bottom: 30px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.filter-header h3 {
    font-size: 1.1rem;
    color: #2B2350;
    margin: 0;
    font-weight: 700;
}

.filter-header button {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.85rem;
    cursor: pointer;
}

.filter-header button:hover {
    color: #2B2350;
    text-decoration: underline;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 12px;
    color: #475569;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s;
}

.filter-list li:hover,
.filter-list li.active {
    color: #713AD3;
    font-weight: 400;
}

.main-content {
    flex-grow: 1;
    margin-bottom: 40px;
}

.filtering-status {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 6px;
    background: #ffffff;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.template-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    background-color: #ffffff;
    transition: box-shadow 0.3s, transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.template-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.template-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.template-card h4 {
    font-size: 1rem;
    color: #2B2350;
    margin: 0 0 10px 0;
    font-weight: 600;
    line-height: 1.4;
}

.template-card p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: auto 0 0 0;
}

/* Animation class to prevent jumping and to give smooth fade upon filtering */
@keyframes fadeInDrop {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.template-card.fade-in {
    animation: fadeInDrop 0.4s ease forwards;
}

.inner-hero {
    padding: 160px 20px 80px;
    background-color: #f8fafc;
    text-align: center;
}

.inner-hero img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.inner-hero h1 {
    font-size: 3.5rem;
    color: #2B2350;
    font-weight: 700;
    margin: 0 auto 15px;
    max-width: 900px;
    line-height: 1.2;
}

.inner-hero p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 30px;
    font-weight: 500;
}

.primary-btn {
    background-color: #6366f1;
    color: white;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.primary-btn:hover {
    background-color: #4f46e5;
}

.inner-content {
    background-color: #ffffff;
    padding: 60px 20px;
    border-top: 1px solid #e2e8f0;
}

.inner-container {
    max-width: 800px;
    margin: 0 auto;
}

.inner-container h2 {
    font-size: 1.8rem;
    color: #2B2350;
    margin-bottom: 20px;
    margin-top: 30px;
}

.inner-container p.desc {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 40px;
}

.question-card {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    background: #ffffff;
}

.question-card .icon-box {
    background-color: #2B2350;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.question-card p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
}

@media (max-width: 900px) {
    .content-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .inner-hero h1 {
        font-size: 2.5rem;
    }
}

/* New Eye-Catching Search & Filter Styling */
.sidebar {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.search-box {
    border-radius: 30px !important;
    padding: 15px 25px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0 !important;
    transition: all 0.3s;
    background: #f8fafc;
}

.search-box:focus {
    box-shadow: 0 0 0 3px rgba(113, 58, 211, 0.2) !important;
    background: #ffffff;
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e2e8f0;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-header h3 {
    color: #713AD3 !important;
}

.filter-list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-list li {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 6px 14px !important;
    border-radius: 20px;
    font-size: 0.85rem !important;
    transition: all 0.2s;
    margin-bottom: 0 !important;
}

.filter-list li:hover,
.filter-list li.active {
    background: #713AD3 !important;
    color: #fff !important;
    border-color: #713AD3 !important;
}

/* Card Styling inspired by UI Elements image */
.grid-container {
    gap: 30px !important;
}

.template-card {
    position: relative;
    border: none !important;
    border-top: 3px solid #713AD3 !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    padding: 30px 20px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff !important;
    z-index: 1;
    min-height: 280px;
}

.template-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-5px) !important;
}

/* Background squares for decoration */
.bg-square {
    position: absolute;
    background: #f8fafc;
    z-index: -1;
}

.bg-square-1 {
    top: 10%;
    left: 10%;
    width: 60px;
    height: 60px;
}

.bg-square-2 {
    top: 20%;
    right: 15%;
    width: 40px;
    height: 40px;
}

.bg-square-3 {
    bottom: 25%;
    left: 20%;
    width: 50px;
    height: 50px;
}

.bg-square-4 {
    top: 40%;
    right: 5%;
    width: 30px;
    height: 30px;
}

/* Number in top left */
.template-card-num {
    position: absolute;
    top: 25px;
    left: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #475569;
}

/* Base image */
.template-card img {
    width: 60px !important;
    height: 60px !important;
    margin-top: 10px !important;
    margin-bottom: 30px !important;
    z-index: 2;
}

/* Title and description text */
.template-card h4 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #2B2350 !important;
    margin-bottom: 12px !important;
    z-index: 2;
}

.template-card p.card-desc {
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    z-index: 2;
    text-align: center;
}

/* Dynamic Read More Button with offset border effect */
.read-more-wrapper {
    position: relative;
    margin-top: auto;
    z-index: 2;
    padding-bottom: 5px;
    padding-right: 5px;
}

.read-more-btn {
    display: inline-block;
    background: #713AD3;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 28px;
    position: relative;
    z-index: 2;
    transition: background 0.3s;
}

.template-card:hover .read-more-btn {
    background: #5b2eb3;
}

/* Offset border layer behind the button */
.read-more-border {
    position: absolute;
    top: 5px;
    left: 5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid #713AD3;
    z-index: 1;
    pointer-events: none;
}