/*==================================================
  1. PREMIUM ANNOUNCEMENT BAR
==================================================*/

.tm-announcement{

    position:relative;

    display:flex;

    align-items:center;

    height:48px;

    width:100%;

    background:linear-gradient(
        90deg,
        #2563EB,
        #3B82F6
    );

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

    overflow:hidden;

    z-index:1000;

}

/* Marquee */

.tm-announcement-marquee{

    flex:1;

    overflow:hidden;

    margin:0 24px;

}

.tm-announcement-track{

    display:flex;

    align-items:center;

    gap:36px;

    width:max-content;

    white-space:nowrap;

    will-change:transform;

    animation:tmTicker 28s linear infinite;

}

.tm-announcement:hover .tm-announcement-track{

    animation-play-state:paused;

}

.tm-announcement-track span{

    color:#fff;

    font-size:14px;

    white-space:nowrap;

}

.tm-announcement-track strong{

    font-weight:700;

}

/*==================================================
  HERO SECTION
==================================================*/
.tm-hero {
    position: relative;
    overflow: hidden;
    background-color: #F8FAFC;
    padding: 60px 0 80px;
}

/*==================================================
  HERO WRAPPER
==================================================*/
.tm-hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 3;
}

/*==================================================
  HERO CONTENT
==================================================*/
.tm-hero-content {
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 2;
}

/*==================================================
  HERO BACKGROUND
==================================================*/
.tm-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.tm-hero-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .45;
}

.tm-circle-1 {
    width: 460px;
    height: 460px;
    top: -180px;
    left: -160px;
    background: #DBEAFE;
}

.tm-circle-2 {
    width: 360px;
    height: 360px;
    bottom: -120px;
    right: -120px;
    background: #E0F2FE;
}

.tm-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37,99,235,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,.035) 1px, transparent 1px);
    background-size: 42px 42px;
}

/*==================================================
  HERO BADGE
==================================================*/
.tm-hero-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    position: relative;
    padding: 8px 24px 8px 48px;
    background: #FFFFFF;
    border: 1.5px solid #EFF6FF;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #2563EB;
    box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
    margin-left: 12px;
}

.tm-badge-icon-circle {
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px -3px rgba(37, 99, 235, 0.22), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #F1F5F9;
}

.tm-badge-svg {
    width: 25px;
    height: 25px;
    object-fit: contain;
    display: block;
}

/*==================================================
  HERO TITLE & SUBTITLE
==================================================*/
.tm-hero-title {
    text-align: left;
    font-size: 48px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
    max-width: 100%;
}

.tm-hero-title span {
    font-family: 'Comic Sans MS', sans-serif;
    font-style: italic;
    font-size: 40px;
    font-weight: 1000;
    color: #2563EB;
    letter-spacing: -0.5px;
}

.tm-hero-subtitle {
    text-align: left;
    font-size: 16px;
    color: #64748B;
    line-height: 1.5;
    margin-bottom: 32px;
}

/*==================================================
  FEATURE CARDS
==================================================*/
.tm-hero-features {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    width: 100%;
}

.tm-hero-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-right: 15px;
}

.tm-hero-feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 32px;
    background-color: #E2E8F0;
}

.tm-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.tm-custom-svg-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.tm-feature-info {
    display: flex;
    flex-direction: column;
}

.tm-feature-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 2px 0;
    line-height: 1.2;
    white-space: nowrap;
}

.tm-feature-info p {
    text-align: left;
    font-size: 11.5px;
    color: #64748B;
    margin: 0;
    line-height: 1.3;
    max-width: 110px;
}

/*==================================================
  ACTION BUTTONS & TAGLINE
==================================================*/
.tm-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.tm-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #2563EB;
    color: #FFFFFF;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.tm-btn-primary:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
    color: #FFFFFF;
}

.tm-btn-primary:focus,
.tm-btn-primary:focus-visible,
.tm-btn-primary:active {
    color: #FFFFFF;
}

.tm-btn-primary i {
    width: 24px;
    height: 24px;
    background: #FFFFFF;
    color: #2563EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.tm-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1.5px solid #2563EB;
    color: #2563EB;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tm-btn-outline:hover {
    background: #EFF6FF;
}

.tm-hero-tagline {
    font-family: 'Caveat', cursive !important;
    font-size: 24px !important;
    font-weight: 600;
    color: #1E293B;
}

.tm-hero-tagline span {
    font-family: 'Caveat', cursive !important;
    color: #2563EB;
    border-bottom: 2px solid #2563EB;
}

.tm-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
    opacity: 0.80;
}

.tm-hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.30);
}

/*==================================================
  TABLET LANDSCAPE & DESKTOP CENTER ALIGNMENT (≥768px)
==================================================*/
@media screen and (min-width: 768px) {
    .tm-hero-wrapper {
        justify-content: center;
    }

    .tm-hero-content {
        max-width: 760px;
        margin: 0 auto;
        align-items: center;
        text-align: center;
        transform: none; /* Purane translate offset ko reset kiya */
        flex: none;
    }

    .tm-hero-badge {
        align-self: center;
        margin-left: 0;
    }

    .tm-hero-title {
        text-align: center;
        font-size: 52px !important; /* Slightly enlarged */
    }

    .tm-hero-title span {
        font-size: 44px;
    }

    .tm-hero-subtitle {
        text-align: center;
        font-size: 18px !important; /* Slightly enlarged */
    }

    .tm-hero-features {
        justify-content: center;
        gap: 20px;
    }

    .tm-hero-actions {
        justify-content: center;
    }

    .tm-hero-tagline {
        text-align: center;
        font-size: 26px !important; /* Slightly enlarged */
    }
}

/*==================================================

   RESPONSIVE STYLES (TABLET & MOBILE)

==================================================*/

/* --- Large Tablets & Small Laptops (Max Width: 992px) --- */

@media screen and (max-width: 992px) {

    .tm-hero {

        padding: 50px 0 60px;

    }

    .tm-hero-wrapper {

        flex-direction: column;

        text-align: center;

        gap: 40px;

    }

    .tm-hero-content {

        max-width: 100%;

        align-items: center;

    }

    .tm-hero-badge {

        align-self: center;

        margin-left: 0;

    }

    .tm-hero-title {

        text-align: center;

        font-size: 38px;

    }

    .tm-hero-title span {

        font-size: 32px;

    }

    .tm-hero-subtitle {

        text-align: center;

        margin-bottom: 24px;

    }

    .tm-hero-features {

        justify-content: center;

        flex-wrap: wrap;

        gap: 20px;

    }

    .tm-hero-feature-item {

        padding-right: 0;

    }

    /* Remove vertical dividers on tablet when wrapping */

    .tm-hero-feature-item:not(:last-child)::after {

        display: none;

    }

    .tm-feature-info p {

        text-align: left;

    }

    .tm-hero-actions {

        justify-content: center;

    }

    .tm-wave-top {

        left: 50%;

        transform: translateX(-50%) rotate(-15deg);

        top: -100px;

        width: 180px;

        height: 160px;

    }

}

/* --- Mobile Devices (Max Width: 768px) --- */

@media screen and (max-width: 768px) {

    .tm-hero {

        padding: 40px 0 48px;

    }

    .tm-hero-badge {

        font-size: 13px;

        padding: 6px 18px 6px 42px;

    }

    .tm-badge-icon-circle {

        width: 42px;

        height: 42px;

        left: -10px;

    }

    .tm-badge-svg {

        width: 20px;

        height: 20px;

    }

    .tm-hero-title {

        font-size: 32px;

        line-height: 1.2;

    }

    .tm-hero-title span {

        font-size: 28px;

    }

    .tm-hero-subtitle {

        font-size: 15px;

        br {

            display: none; /* Hide forced linebreaks for fluid mobile text */

        }

    }

    .tm-hero-features {

        flex-direction: column;

        align-items: stretch;

        gap: 16px;

        max-width: 320px;

        margin: 0 auto 28px;

    }

    .tm-hero-feature-item {

        background: #FFFFFF;

        padding: 12px 16px;

        border-radius: 12px;

        border: 1px solid #E2E8F0;

        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);

    }

    .tm-feature-info p {

        max-width: 100%;

    }

    .tm-hero-actions {

        flex-direction: column;

        width: 100%;

        gap: 12px;

    }

    .tm-btn-primary,

    .tm-btn-outline {

        width: 100%;

        padding: 12px 20px;

        font-size: 14px;

    }

    .tm-hero-tagline {

        font-size: 20px !important;

    }

}

/* --- Small Mobile Screens (Max Width: 480px) --- */

@media screen and (max-width: 480px) {

    .tm-hero-title {

        font-size: 26px;

    }

    .tm-hero-title span {

        font-size: 24px;

    }

    .tm-hero-subtitle {

        font-size: 14px;

    }

    .tm-hero-badge {

        font-size: 12px;

    }

}

/*==================================================
  LATEST TUITION REQUIREMENTS (COMPACT & SLEEK)
==================================================*/

.tm-requirements {
    position: relative;
    padding: 24px 0 80px; /* Reduced overall section padding */
    background: #ffffff;
    overflow: hidden;
}

/*----------------------------------
Top Row
-----------------------------------*/

.tm-requirements-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.tm-requirements-top h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.5px;
}

/*----------------------------------
Filter Pills
-----------------------------------*/

.tm-requirement-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.tm-requirement-filters button {
    padding: 8px 18px;
    border: none;
    border-radius: 999px;
    background: #F1F5F9;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
}

.tm-requirement-filters button:hover {
    background: #DBEAFE;
    color: var(--color-primary);
}

.tm-requirement-filters button.active {
    background: linear-gradient(135deg, var(--color-primary), #3B82F6);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37,99,235,.18);
}

/*----------------------------------
Requirement Grid
-----------------------------------*/

.tm-requirement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* Reduced gap between cards */
}

/*==================================================
  REQUIREMENT CARD (COMPACT SIZE)
==================================================*/

.tm-requirement-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px; /* Reduced from 32px */
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 18px; /* Slightly tighter rounded corners */
    box-shadow: 0 8px 24px rgba(15,23,42,.04);
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

/* Decorative Glow */
.tm-requirement-card::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(37,99,235,.05);
    filter: blur(60px);
    opacity: 0;
    transition: opacity .35s ease;
}

/*==================================================
  REQUIREMENT BADGES
==================================================*/

.tm-requirement-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    padding: 4px 10px; /* Compact badge padding */
    margin-bottom: 12px; /* Reduced margin */
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.tm-requirement-badge i {
    font-size: 13px;
}

.tm-requirement-badge.urgent { background: #FEF2F2; color: #DC2626; }
.tm-requirement-badge.new { background: #ECFDF5; color: #16A34A; }
.tm-requirement-badge.featured { background: #FFF7ED; color: #EA580C; }
.tm-requirement-badge.online { background: #EFF6FF; color: #2563EB; }

/*==================================================
  REQUIREMENT CONTENT
==================================================*/

.tm-requirement-card h3 {
    margin-bottom: 4px;
    font-size: 18px; /* Slightly tighter font */
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.tm-requirement-card h4 {
    margin-bottom: 14px; /* Reduced from 26px */
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.4;
}

/*==================================================
  REQUIREMENT META
==================================================*/

.tm-requirement-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Reduced space between items (was 16px) */
    margin-bottom: 16px; /* Reduced from 28px */
}

.tm-requirement-meta li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--color-text-secondary);
}

.tm-requirement-meta i {
    font-size: 16px;
    color: var(--color-primary);
    flex-shrink: 0;
}

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

.tm-requirement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 14px; /* Reduced border-top padding */
    margin-top: auto;
    border-top: 1px solid rgba(15,23,42,.08);
}

.tm-requirement-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.tm-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 8px rgba(34,197,94,.40);
}

.tm-parent-verified {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #16A34A;
}

.tm-parent-verified i {
    font-size: 15px;
}

/*==================================================
  APPLY BUTTON
==================================================*/

.tm-requirement-card .tm-btn-primary {
    width: 100%;
    margin-top: 14px; /* Reduced from 24px */
    padding: 10px 16px; /* Smaller button height */
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.tm-requirement-card .tm-btn-primary i {
    transition: transform .3s ease;
}

.tm-requirement-card:hover .tm-btn-primary i {
    transform: translateX(4px);
}

/*==================================================
  CARD HOVER EFFECT
==================================================*/

.tm-requirement-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-primary), #60A5FA);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .35s ease;
}

.tm-requirement-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37,99,235,.18);
    box-shadow: 0 20px 40px rgba(15,23,42,.08);
}

.tm-requirement-card:hover::before { opacity: 1; }
.tm-requirement-card:hover::after { transform: scaleY(1); }

/* Content Hover */
.tm-requirement-card h3,
.tm-requirement-card h4 {
    transition: color .3s ease;
}

.tm-requirement-card:hover h3 {
    color: var(--color-primary);
}

/*==================================================
  LOAD MORE BUTTON
==================================================*/

.tm-requirements-load {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.tm-requirements-load .tm-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 999px;
    transition: all .35s ease;
}

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

@media (max-width: 1200px) {
    .tm-requirement-grid { gap: 16px; }
}

@media (max-width: 992px) {
    .tm-requirements { padding: 20px 0 60px; }
    .tm-requirement-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .tm-requirements { padding: 16px 0 40px; }
    .tm-requirement-grid { grid-template-columns: 1fr; gap: 16px; }
    .tm-requirement-card { padding: 18px; }
}

/*==================================================
  CLEAN FULL PAGE HERO SECTION (CARDS REMOVED)
==================================================*/

.tm-fullpage-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #FFFFFF 0%, #F8FAFC 100%);
    padding: 60px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.tm-page-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

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

/* Header Section */
.tm-why-header {
    max-width: 680px;
}

.tm-why-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: #EFF6FF;
    color: #2563EB;
    font-size: 13px;
    font-weight: 600;
    border-radius: 30px;
    margin-bottom: 16px;
}

.tm-why-title {
    font-size: 42px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.tm-why-title span {
    color: #2563EB;
}

.tm-why-subtitle {
    font-size: 16px;
    color: #64748B;
    line-height: 1.6;
}

/* Central Image Area */
.tm-image-canvas {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tm-central-illustration {
    position: relative;
     width: min(100%, 1100px);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Subtle Glowing Ring Behind 3D Image */
.tm-glow-backdrop {
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(219, 234, 254, 0.05) 70%, transparent 100%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 1;
}

.tm-main-3d-img {
    position: relative;
    width: 1000px;
    height: auto;
    max-height: none;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(37, 99, 235, 0.12));
    animation: gentleFloat 6s ease-in-out infinite;
}

/* Subtle Up & Down Floating Effect on Main Image */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Action Buttons */
.tm-action-btns {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-primary {
    padding: 14px 32px;
    background: #2563EB;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
    transition: all 0.3s ease;
}

.btn-secondary {
    padding: 14px 32px;
    background: #FFFFFF;
    color: #0F172A;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #CBD5E1;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
    color: #FFFFFF;
}

.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active {
    color: #FFFFFF;
}

.btn-secondary:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tm-why-title {
        font-size: 32px;
    }

    .tm-why-subtitle {
        font-size: 14px;
    }

    .tm-central-illustration {
    position: relative;
    width: 100%;
    /* Pehle 480px tha, isko badha kar 800px se 1000px kar dein */
    max-width: 900px; /* <--- YE VALUE BADHAYEIN */
    display: flex;
    justify-content: center;
    align-items: center;
}

    .tm-main-3d-img {
        max-height: 280px;
    }

    .tm-action-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        box-sizing: border-box;
    }
}

/*==================================================
  GLOBAL VARIABLES & BASE STYLES
==================================================*/
:root {
    --color-primary: #2563eb;
    --color-text-primary: #0f172a;
    --color-text-secondary: #64748b;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.tm-subjects {
    padding: 60px 0;
    background: #f8fafc;
    font-family: var(--font-family);
}

/*==================================================
  TOP HEADER (COMPACT)
==================================================*/
.tm-subjects-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
}

.tm-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.tm-title-group h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.5px;
}

.tm-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    transition: all 0.2s ease;
}

.tm-view-all:hover {
    gap: 10px;
}

/*==================================================
  COMPACT GRID (4 COLUMNS)
==================================================*/
.tm-subject-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tm-subject-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
}

/* Accent Palette */
.tm-subject-card[data-accent="blue"] { --accent: #2563eb; --accent-bg: #eff6ff; }
.tm-subject-card[data-accent="purple"] { --accent: #8b5cf6; --accent-bg: #f5f3ff; }
.tm-subject-card[data-accent="emerald"] { --accent: #10b981; --accent-bg: #ecfdf5; }
.tm-subject-card[data-accent="amber"] { --accent: #f59e0b; --accent-bg: #fffbeb; }
.tm-subject-card[data-accent="indigo"] { --accent: #6366f1; --accent-bg: #eef2ff; }
.tm-subject-card[data-accent="rose"] { --accent: #f43f5e; --accent-bg: #fff1f2; }

/* Header Elements */
.tm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.tm-subject-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent-bg);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.25s ease;
}

.tm-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: var(--color-text-secondary);
}

/* Body Content */
.tm-card-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.tm-card-body p {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.4;
    margin-bottom: 16px;
    display: -webkit-box;
    line-clamp: 2; 
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer Action */
.tm-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    padding-top: 10px;
    border-top: 1px dashed #f1f5f9;
}

.tm-card-footer i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

/*==================================================
  HOVER EFFECTS
==================================================*/
.tm-subject-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.08);
}

.tm-subject-card:hover .tm-subject-icon {
    background: var(--accent);
    color: #ffffff;
}

.tm-subject-card:hover .tm-card-footer i {
    transform: translateX(4px);
}

/*==================================================
  RESPONSIVE SETUP
==================================================*/
@media (max-width: 1024px) {
    .tm-subject-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1025px) {
    .tm-subject-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tm-subject-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .tm-subject-grid {
        grid-template-columns: 1fr;
    }
}

/*==================================================
  HOW IT WORKS (COMPACT VERSION)
==================================================*/

.tm-how-it-works {
    position: relative;
    padding: 80px 0;
    background: #F8FAFC;
    overflow: hidden;
}

/*----------------------------------
Wrapper
-----------------------------------*/

.tm-how-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

/*----------------------------------
Card
-----------------------------------*/

.tm-how-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    overflow: hidden;
}

.tm-how-card::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .05);
    filter: blur(50px);
    opacity: 0;
    transition: opacity .35s ease;
}

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

.tm-how-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.tm-how-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary), #3B82F6);
    color: #ffffff;
    flex-shrink: 0;
}

.tm-how-icon i {
    font-size: 24px;
}

.tm-how-card-header h3 {
    margin-bottom: 4px;
    font-size: 19px;
    font-weight: 800;
    color: var(--color-text-primary);
}

.tm-how-card-header p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

/*==================================================
  TIMELINE STEPS
==================================================*/

.tm-how-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tm-how-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

/* Vertical Line Adjustment */
.tm-how-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 21px; /* Centered with 44px step-number */
    top: 48px;
    width: 2px;
    height: calc(100% - 24px);
    background: linear-gradient(180deg, #DBEAFE, rgba(37, 99, 235, .12));
}

/* Step Number */
.tm-step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary), #3B82F6);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .20);
    position: relative;
    z-index: 2;
    transition: all .35s ease;
}

/* Step Content */
.tm-step-content {
    flex: 1;
    padding-top: 2px;
}

.tm-step-content h4 {
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
    transition: color .3s ease;
}

.tm-step-content p {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

/* Hover Effects */
.tm-how-step:hover .tm-step-number {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(37, 99, 235, .30);
}

.tm-how-step:hover h4 {
    color: var(--color-primary);
}

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

.tm-how-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: max-content;
    margin-top: 24px;
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary), #3B82F6);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .18);
    transition: all .35s ease;
}

.tm-how-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .25);
    color: #ffffff;
}

.tm-how-btn i {
    transition: transform .35s ease;
}

.tm-how-btn:hover i {
    transform: translateX(4px);
}

/* Card Hover */
.tm-how-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, .18);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.tm-how-card:hover::before {
    opacity: 1;
}

.tm-how-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-primary), #60A5FA);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .35s ease;
}

.tm-how-card:hover::after {
    transform: scaleY(1);
}

/*==================================================
  TRUST NOTE
==================================================*/

.tm-how-note {
    margin-top: 40px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    border-radius: 14px;
}

.tm-how-note i {
    font-size: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.tm-how-note p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    text-align: center;
}

/* Performance Performance */
.tm-how-card, .tm-step-number, .tm-how-btn {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/*==================================================
  RESPONSIVE (COMPACT)
==================================================*/

@media (max-width: 992px) {
    .tm-how-it-works {
        padding: 60px 0;
    }
    .tm-how-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .tm-how-card {
        padding: 20px;
        border-radius: 16px;
    }
    .tm-how-card-header {
        gap: 12px;
    }
    .tm-how-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    .tm-how-icon i {
        font-size: 20px;
    }
    .tm-how-card-header h3 {
        font-size: 17px;
    }
    .tm-step-number {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
    .tm-how-step:not(:last-child)::after {
        left: 18px;
        top: 42px;
    }
    .tm-how-btn {
        width: 100%;
    }
}

/*==================================================
  FEATURED TUTORS (COMPACT VERSION)
==================================================*/

.tm-featured-tutors {
    position: relative;
    padding: 80px 0;
    background: #ffffff;
    overflow: hidden;
}

/*----------------------------------
Section Header
-----------------------------------*/

.tm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 36px;
}

.tm-section-header > div {
    max-width: 600px;
}

.tm-section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    transition: all .35s ease;
}

.tm-section-link:hover {
    gap: 12px;
}

.tm-section-link i {
    font-size: 16px;
}

/*==================================================
  TUTOR GRID
==================================================*/

.tm-tutor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/*==================================================
  TUTOR CARD
==================================================*/

.tm-tutor-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

/* Glow */
.tm-tutor-card::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .05);
    filter: blur(50px);
    opacity: 0;
    transition: .35s ease;
}

/*==================================================
  VERIFIED BADGE
==================================================*/

.tm-tutor-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: #EFF6FF;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
}

.tm-tutor-badge i {
    font-size: 13px;
}

/*==================================================
  TUTOR AVATAR
==================================================*/

.tm-tutor-avatar {
    position: relative;
    width: 76px;
    height: 76px;
    margin-bottom: 14px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    border: 3px solid #ffffff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .10), inset 0 0 0 1px rgba(37, 99, 235, .08);
    transition: transform .35s ease;
}

.tm-tutor-avatar i {
    font-size: 36px;
    color: var(--color-primary);
}

/*==================================================
  ONLINE STATUS
==================================================*/

.tm-online-status {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22C55E;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .12);
    animation: tmOnlinePulse 2s infinite;
}

@keyframes tmOnlinePulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .35); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/*==================================================
  TUTOR NAME & SUBJECT
==================================================*/

.tm-tutor-card h3 {
    margin-bottom: 4px;
    font-size: 17px;
    font-weight: 800;
    text-align: center;
    color: var(--color-text-primary);
    transition: color .35s ease;
}

.tm-tutor-subject {
    margin-bottom: 12px;
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-text-secondary);
}

/*==================================================
  RATING
==================================================*/

.tm-tutor-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
    transition: transform .35s ease;
}

.tm-tutor-rating i {
    font-size: 13px;
    color: #F59E0B;
}

.tm-tutor-rating span {
    margin-left: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

/*==================================================
  TUTOR STATS
==================================================*/

.tm-tutor-info {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px solid rgba(15, 23, 42, .06);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    transition: all .35s ease;
}

.tm-tutor-info div {
    text-align: center;
}

.tm-tutor-info strong {
    display: block;
    margin-bottom: 2px;
    font-size: 16px;
    font-weight: 800;
    color: var(--color-text-primary);
    transition: color .35s ease;
}

.tm-tutor-info span {
    display: block;
    font-size: 11.5px;
    color: var(--color-text-secondary);
}

/*==================================================
  VIEW PROFILE BUTTON
==================================================*/

.tm-tutor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), #3B82F6);
    color: #ffffff;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    transition: all .35s ease;
}

.tm-tutor-btn i {
    font-size: 14px;
    transition: transform .35s ease;
}

.tm-tutor-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, .20);
    color: #ffffff;
}

.tm-tutor-btn:hover i {
    transform: translateX(4px);
}

/*==================================================
  CARD HOVER
==================================================*/

.tm-tutor-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, .18);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}

.tm-tutor-card:hover::before {
    opacity: 1;
}

.tm-tutor-card:hover .tm-tutor-avatar {
    transform: scale(1.05);
}

.tm-tutor-card:hover h3,
.tm-tutor-card:hover .tm-tutor-info strong {
    color: var(--color-primary);
}

.tm-tutor-card:hover .tm-tutor-rating {
    transform: scale(1.02);
}

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

.tm-featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px 24px;
    background: #F8FAFC;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 16px;
}

.tm-featured-footer p {
    margin: 0;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--color-text-secondary);
    line-height: 1.5;
    max-width: 600px;
}

/*==================================================
  RESPONSIVE (COMPACT)
==================================================*/

@media (max-width: 1200px) {
    .tm-tutor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .tm-featured-tutors {
        padding: 60px 0;
    }
    .tm-section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 30px;
    }
    .tm-featured-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .tm-featured-tutors {
        padding: 50px 0;
    }
    .tm-tutor-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .tm-tutor-card {
        padding: 18px 16px;
    }
    .tm-featured-footer {
        padding: 18px;
        text-align: center;
        align-items: center;
    }
    .tm-featured-footer p {
        font-size: 13.5px;
    }
    .tm-featured-footer .tm-btn-primary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tm-tutor-avatar {
        width: 68px;
        height: 68px;
    }
    .tm-tutor-avatar i {
        font-size: 30px;
    }
    .tm-tutor-card h3 {
        font-size: 16px;
    }
    .tm-tutor-subject {
        font-size: 12.5px;
    }
    .tm-tutor-info strong {
        font-size: 15px;
    }
    .tm-tutor-info span {
        font-size: 11px;
    }
    .tm-tutor-btn {
        height: 38px;
        font-size: 13px;
    }
}

/*==================================================
  PERFORMANCE & ACCESSIBILITY
==================================================*/

.tm-tutor-card,
.tm-tutor-avatar,
.tm-tutor-btn {
    will-change: transform, box-shadow;
}

.tm-tutor-card {
    backface-visibility: hidden;
    transform: translateZ(0);
}

.tm-tutor-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .25);
    outline-offset: 3px;
}

/* ==========================================================================
   TutorMatch - Split Card & Modern Input Component (Contact Page Style)
   ========================================================================== */

/* Hero Banner matching Contact Page Gradient */
.tm-hero-banner-sm {
    background: linear-gradient(180deg, #E0F2FE 0%, #F8FAFC 100%);
    padding: 60px 0 40px 0;
}

.tm-eyebrow {
    display: inline-block;
    color: var(--tm-primary, #2563EB);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.tm-hero-title {
    font-size: 40px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.2;
}

.tm-text-highlight {
    color: var(--tm-primary, #2563EB);
}

.tm-hero-subtitle {
    color: #64748B;
    font-size: 16px;
    margin-top: 10px;
}

/* Split Card Layout Container */
.tm-split-card-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-top: -20px;
    border: 1px solid #F1F5F9;
}

/* Left Form Side */
.tm-split-form-side {
    padding: 48px;
}

/* Input Wrappers with Icons inside (Like Contact Page) */
.tm-input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.tm-input-icon {
    position: absolute;
    left: 16px;
    color: #94A3B8;
    font-size: 18px;
    pointer-events: none;
}

.tm-input-icon-wrapper .tm-form-input,
.tm-input-icon-wrapper .tm-form-select {
    padding-left: 46px;
    width: 100%;
    height: 48px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background-color: #F8FAFC;
    font-size: 14px;
    transition: all 0.2s ease;
}

.tm-input-icon-wrapper .tm-form-input:focus,
.tm-input-icon-wrapper .tm-form-select:focus {
    border-color: var(--tm-primary, #2563EB);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Right Side Solid Blue Box (Matching Contact Page Right Side) */
.tm-split-info-side {
    background: #2563EB;
    color: #FFFFFF;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tm-info-title {
    font-size: 26px;
    font-weight: 700;
    color: #FFFFFF;
}

.tm-info-subtitle {
    color: #93C5FD;
    font-size: 15px;
    margin-top: 8px;
    margin-bottom: 36px;
}

.tm-info-features-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.tm-info-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tm-feature-icon-box {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #FFFFFF;
    flex-shrink: 0;
}

.tm-info-feature-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.tm-info-feature-item p {
    font-size: 13px;
    color: #BFDBFE;
    line-height: 1.4;
}

.tm-info-contact-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #EFF6FF;
}

/* Responsive adjustments for Mobile/Tablet */
@media (max-width: 991px) {
    .tm-split-card-container {
        grid-template-columns: 1fr;
    }
    .tm-split-form-side, .tm-split-info-side {
        padding: 28px;
    }
}
