/*
Theme Name: Astra Child
Theme URI: htttps://wpastra.com/
Template: astra
Author: Antigravity
Author URI: https://google.com
Description: Astra Child Theme for Modern Header & Footer
Version: 1.0.2
*/

@font-face {
    font-family: 'TAMIL-UNI001';
    src: url('../../plugins/semmai-aasan-admin/assets/fonts/TAMIL-UNI001.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TAMIL-UNI015';
    src: url('../../plugins/semmai-aasan-admin/assets/fonts/TAMIL-UNI015.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* Eduma Demo Main Variables */
:root {
    --primary-color: #7d221e;
    /* Semmai Red */
    --primary-hover: #5a1815;
    --ast-global-color-7: #7d221e;
    --ast-global-color-2: #0b0b0b;
    --secondary-color: #f7f7f7;
    /* Dark for Topbar/Footer */
    --text-main: #444444;
    --heading-color: #fffff;
    --white: #ffffff;
    --bg-light: #f5f5f5;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --header-height: 100px;
    --sticky-header-height: 70px;
    --topbar-height: 40px;
}

body.side-menu-open {
    overflow: hidden !important;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    font-size: 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', sans-serif;
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 20px;
}

/* --- Eduma Top Bar --- */
.eduma-top-bar {
    background: var(--secondary-color);
    height: var(--topbar-height);
    line-height: var(--topbar-height);
    color: #333 !important;
    font-size: 13px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.eduma-top-bar span {
    margin-right: 20px;
}

.eduma-top-bar i {
    color: var(--primary-color);
    margin-right: 8px;
}

.eduma-top-bar .social-links a {
    color: #333 !important;
    margin-left: 15px;
    transition: color 0.3s;
}

.eduma-top-bar .social-links a:hover {
    color: var(--primary-color);
}

/* --- Eduma Running Notification --- */
.eduma-running-notification {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 14px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-sm);
    z-index: 10;
    position: relative;
}

.eduma-running-notification .notification-container {
    display: flex;
    align-items: center;
    padding: 6px 15px;
}

.eduma-running-notification .notification-label {
    background: var(--secondary-color);
    color: black;
    padding: 3px 12px;
    border-radius: 4px;
    font-weight: 700;
    margin-right: 15px;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
    /* keep above marquee */
}

.eduma-running-notification .notification-marquee {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.eduma-running-notification .notification-marquee p {
    display: inline-block;
    margin: 0;
    padding-left: 100%;
    animation: marqueeScroll 25s linear infinite;
}

.eduma-running-notification .notification-marquee a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
}

.eduma-running-notification .notification-marquee a:hover {
    text-decoration: underline;
}

/* Notification meta badges (date / time / location) */
.eduma-running-notification .notif-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 13px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: 18px;
    white-space: nowrap;
}

.eduma-running-notification .notif-meta i {
    color: #333;
    font-size: 12px;
}

@keyframes marqueeScroll {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* --- Eduma Popular Classes Grid --- */
.eduma-popular-classes-wrapper {
    padding: 80px 0;
    max-width: 1240px;
    margin: 0 auto;
}

.eduma-section-heading {
    text-align: center;
    margin-bottom: 50px;
}

button {
    padding-right: 20px !important;
    padding-left: 20px !important;
}

.eduma-section-heading .section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--heading-color);
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 15px;
    text-transform: capitalize;
}

.eduma-section-heading .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.eduma-section-heading .section-subtitle {
    font-size: 15px;
    color: var(--text-main);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.eduma-popular-classes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 992px) {
    .eduma-popular-classes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .eduma-popular-classes-grid {
        grid-template-columns: 1fr;
    }
}

.eduma-class-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.eduma-class-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.eduma-class-card .class-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.eduma-class-card .class-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111;
    transition: transform 0.6s ease;
}

.eduma-class-card:hover .class-image img {
    transform: scale(1.1);
}

.class-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.class-price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.eduma-class-card .class-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.class-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.class-title {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.4;
    height: 50px;
    overflow: hidden;
}

.class-title a {
    color: var(--heading-color) !important;
    text-decoration: none;
}

.class-title a:hover {
    color: var(--primary-color) !important;
}

.class-meta {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
    font-size: 13px;
    color: #888;
}

.class-meta .meta-item i {
    margin-right: 5px;
    color: #ccc;
}

.eduma-class-card .class-footer {
    padding: 0 25px 25px 25px;
}

.eduma-class-card .join-btn {
    display: block;
    width: 100%;
    background: #f8f8f8;
    color: #444 !important;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.eduma-class-card:hover .join-btn {
    background: var(--primary-color);
    color: var(--white) !important;
}

/* --- Eduma Login Modal --- */
.eduma-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.eduma-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.eduma-modal-container {
    background: var(--white);
    width: 100%;
    max-width: 650px;
    border-radius: 8px;
    position: relative;
    padding: 0;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.eduma-modal-overlay.active .eduma-modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #eeeeee;
    border: none;
    font-size: 16px;
    color: #333333;
    cursor: pointer;
    z-index: 1100;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: none;
    /* Removed rotation as requested */
}

/* Hide mobile toggles on desktop by default */
.sub-menu-toggle {
    display: none !important;
}

.modal-tabs {
    display: flex;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    padding: 15px 20px;
    gap: 15px;
}

.modal-tab-item {
    padding: 12px 25px;
    border: 1px solid #eeeeee;
    background: #f9f9f9;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: #888888;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    flex: none;
    /* Don't grow, keep as button */
}

.modal-tab-item:hover:not(.active) {
    color: var(--primary-color);
    background: #ffffff;
    border-color: var(--primary-color);
}

.modal-tab-item.active {
    color: var(--white);
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(125, 34, 30, 0.2);
}

.modal-content {
    padding: 40px;
    max-height: 80vh;
    overflow-y: auto;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal Form Overrides */
.eduma-modal-container .semmai-form-card {
    margin: 0;
    padding: 0;
    box-shadow: none;
    border-top: none;
    max-width: 100%;
}

.eduma-modal-container .semmai-form-card h3 {
    display: none;
    /* Already have tabs */
}

@media (max-width: 600px) {
    .eduma-modal-container {
        width: 92%;
        margin: 0 4%;
    }

    .modal-tabs {
        padding: 10px;
        gap: 8px;
    }

    .modal-tab-item {
        padding: 8px 16px;
        font-size: 12px;
    }

    .modal-content {
        padding: 20px 15px 30px;
        max-height: 75vh;
    }

    .semmai-form-group {
        margin-bottom: 12px;
    }

    .semmai-form-control {
        padding: 10px 15px;
        font-size: 13px;
    }

    .semmai-btn {
        padding: 12px 20px;
        font-size: 13px;
        margin-top: 10px;
    }

    .modal-close {
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

.eduma-top-bar .header-container {
    display: flex;
    justify-content: space-between;
    height: 100%;
}

/* --- Eduma Hero Section & Entry Header --- */
/* Hide entry-header globally; shown only on contact page (slug: thodarpuku) */
.entry-header {
    display: none;
}

/* WordPress body class for contact page (ID: 156 = தொடர்புக்கு) */
body.page-id-156 .entry-header {
    display: block !important;
}

/* Also hide on home explicitly */
.home .entry-header {
    display: none;
}

.eduma-hero-section-wrapper {
    position: relative;
    overflow: visible;
}

.eduma-hero-section {
    position: relative;
    height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffff;
    margin-bottom: 0;
}

.eduma-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
}

.eduma-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-subtitle {
    font-family: 'TAMIL-UNI015', sans-serif;
    font-size: 34px;
    font-weight: 100;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 15px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-family: 'TAMIL-UNI001', sans-serif;
    font-size: 74px;
    font-weight: 100;
    margin-bottom: 40px;
    /* Space for search form */
    line-height: 1.2;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    color: #ffff;
}

.hero-search-form {
    position: relative;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-search-form input[type="text"] {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.hero-search-form button {
    background: var(--primary-color);
    color: #ffff;
    border: none;
    padding: 0 30px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-search-form button:hover {
    background: #ffff;
}

/* --- Eduma Features Section (Icon Boxes) --- */
.eduma-features-section {
    position: relative;
    z-index: 10;
    max-width: 740px;
    margin: 20px auto;
    padding: 0 20px;
}

.eduma-features-section.hero-overlap {
    margin-top: -50px;
    /* Strong overlap for hero section */
}

.eduma-features-container {
    display: flex;
    gap: 20px;
    /* Separated buttons */
    background: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    flex-wrap: wrap;
    justify-content: center;
}

.eduma-feature-box {
    flex: 1;
    background: #ffffff;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    /* Rounded buttons */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Premium shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Elastic feel */
    min-width: 260px;
    max-width: 340px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.eduma-feature-box:hover {
    background: #ffffff;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px rgba(125, 34, 30, 0.15);
    /* Primary color glow */
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-right: 18px;
    background: rgba(125, 34, 30, 0.1);
    /* Subtle circle bg */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.eduma-feature-box:hover .feature-icon {
    background: var(--primary-color);
    color: #333;
    transform: rotate(10deg);
}

.feature-content .feature-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.feature-content .feature-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}


/* Global Hero Banner Styles */
.eduma-page-title-area {
    position: relative;
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0f172a;
    text-align: center;
    color: #333;
    margin-bottom: 50px;
    height: 250px;
}

.eduma-page-title-area .eduma-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4));
}

.eduma-page-title-area .eduma-container {
    position: relative;
    z-index: 10;
}

.eduma-page-title-area .page-title {
    font-size: 56px;
    font-weight: 800;
    margin: 0 0 15px;
    letter-spacing: -1.5px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #333;
}

.eduma-page-title-area .eduma-breadcrumb {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.eduma-page-title-area .eduma-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.eduma-page-title-area .eduma-breadcrumb a:hover {
    color: #333;
}

.eduma-page-title-area .eduma-breadcrumb i {
    font-size: 10px;
    opacity: 0.6;
}

.eduma-page-title-area .eduma-breadcrumb .current {
    color: #7d221e;
    font-weight: 700;
}

@media (max-width: 768px) {
    .eduma-page-title-area {
        padding: 80px 0;
    }

    .eduma-page-title-area .page-title {
        font-size: 24px !important;
        letter-spacing: -0.5px;
    }
}

/* Reduce banner height on non-home pages for mobile */
@media (max-width: 768px) {
    body:not(.home) .eduma-page-title-area {
        padding: 30px 0 !important;
        min-height: unset !important;
        height: auto !important;
        margin-bottom: 20px !important;
    }

    body:not(.home) .eduma-page-title-area .page-title {
        font-size: 18px !important;
        margin: 0 0 6px !important;
        letter-spacing: -0.3px;
    }

    body:not(.home) .eduma-page-title-area .eduma-breadcrumb {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .eduma-page-title-area .page-title {
        font-size: 20px !important;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {

        font-size: 20px;
    }

    .hero-name {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    .entry-content {
        margin-top: 20px !important;
    }

    .eduma-features-container {
        flex-direction: column;
        gap: 15px;
        /* Spacing between stacked buttons */
        align-items: center;
    }

    .eduma-features-section {
        margin-top: 0;
    }

    .eduma-feature-box {
        width: 100%;
        max-width: 100%;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
}

/* --- Eduma Sticky Header JS --- */
.custom-header {
    background: var(--white);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1100;
    /* Higher than floating-side-menu (1001) */

    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
}

.custom-header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--sticky-header-height);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo & Branding */
.site-branding .logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    letter-spacing: 1px;
}

.site-branding .logo-text span {
    color: var(--primary-color);
}

.site-branding img {
    max-height: 100px;
    width: auto;
    transition: max-height 0.3s ease;
}

.custom-header.scrolled .site-branding img {
    max-height: 70px;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-navigation ul li {
    position: relative;
    margin: 0 15px;
}

/* Hide default Astra sub-menu arrows if they appear */
.main-navigation .ast-icon,
.main-navigation .menu-item-has-children>a::after {
    display: none !important;
}

.custom-header .main-navigation ul li a {
    text-decoration: none;
    color: #222 !important;
    font-weight: 600;
    font-size: 17px;
    text-transform: uppercase;
    padding: 35px 0;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

/* Eduma-style inline arrow for sub-menus if needed */
.main-navigation ul li.menu-item-has-children>a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 12px;
    display: inline-block;
}

.custom-header.scrolled .main-navigation ul li a {
    padding: 23px 0;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item>a {
    color: var(--primary-color) !important;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
}

/* --- Header Search Box --- */
.header-search {
    margin-right: 25px;
    display: flex;
    align-items: center;
    position: relative;
}

.header-search-toggle {
    background: none;
    border: none;
    color: #222 !important;
    font-size: 18px;
    cursor: pointer;
    padding: 6px 8px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    z-index: 2;
    position: relative;
}

.header-search-toggle:hover {
    color: #ffff !important;
}

/* Hidden search input box – slides in from right */
.header-search-box {
    position: absolute;
    right: 36px;
    /* sits just left of the toggle button */
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    overflow: hidden;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}

/* When search is open */
.header-search.search-open .header-search-box {
    width: 220px;
    opacity: 1;
    pointer-events: all;
}

.header-search-box form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(125, 34, 30, 0.2);
    margin: 0;
    white-space: nowrap;
}

.header-search-box input[type="text"] {
    flex: 1;
    border: none;
    padding: 8px 12px !important;
    font-size: 14px;
    outline: none;
    background: transparent;
    color: #333;
    min-width: 0;
    font-family: 'Roboto', sans-serif;
}

/* No submit button – search triggers on Enter key */

@media (max-width: 768px) {
    .header-search.search-open .header-search-box {
        width: 140px !important;
        right: 32px !important;
    }
}


.header-login .login-btn {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 12px 22px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.header-login .login-btn i {
    font-size: 15px;
}

.header-login .login-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(125, 34, 30, 0.3);
}

/* --- User Dropdown Menu --- */
.user-dropdown-container {
    position: relative;
    display: inline-block;
}

/* Invisible bridge to prevent closing when moving to menu */
.user-dropdown-container::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: 10;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    /* width: 230px; */
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    padding: 12px 0;
    visibility: hidden;
    opacity: 0;
    z-index: 99999 !important;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: visible;
}

/* Dropdown Arrow */
.user-dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 25px;
    border: 10px solid transparent;
    border-bottom-color: var(--white);
}

.user-dropdown-container:hover .user-dropdown-menu,
.user-dropdown-container.active-mobile .user-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: #444 !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: left;
}

.user-dropdown-menu a i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    font-size: 16px;
}

.user-dropdown-menu a:hover {
    background: #fff8e1;
    color: var(--primary-color) !important;
    padding-left: 30px;
}

.dropdown-divider {
    height: 1px;
    background: #f1f1f1;
    margin: 8px 0;
}

.user-dropdown-menu .logout-link {
    color: #ef4444 !important;
}

.user-dropdown-menu .logout-link i {
    color: #ef4444;
}

.user-dropdown-menu .logout-link:hover {
    background: #fef2f2;
    color: #ef4444 !important;
}

/* --- Mega Menu --- */
.main-navigation ul li.eduma-mega-menu {
    position: static;
    /* Full width container needs this */
}

.main-navigation ul li.eduma-mega-menu>.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 1170px;
    /* Standard Eduma width */
    max-width: calc(100vw - 40px);
    background: var(--white);
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    flex-wrap: wrap;
    padding: 30px 40px;
    /* Refined Eduma padding */
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    /* Premium shadow */
    border-top: 4px solid var(--primary-color);
    border-radius: 0 0 8px 8px;
    /* Subtle bottom rounding */
    z-index: 1101;

    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.main-navigation ul li.eduma-mega-menu:hover>.sub-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.main-navigation ul li:hover>.sub-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Standard Sub-menu Animation */
.main-navigation ul li:not(.eduma-mega-menu) .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    /* Slightly wider for Eduma feel */
    background: var(--white);
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    flex-direction: column;
    padding: 15px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    /* Enhanced shadow */
    border-top: 4px solid var(--primary-color);
    border-radius: 0 0 6px 6px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(15px);
}

/* --- Eduma Section Heads (100% Match) --- */
.eduma-section-heading {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.eduma-section-heading .section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 15px;
    text-transform: capitalize;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.eduma-section-heading .section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #7d221e;
    /* Eduma Yellow */
}

.eduma-section-heading .section-subtitle {
    font-size: 16px;
    color: #888;
    margin: 0;
    font-weight: 400;
}

.main-navigation ul li:not(.eduma-mega-menu):hover>.sub-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.main-navigation ul li:not(.eduma-mega-menu) .sub-menu li a {
    padding: 12px 25px;
    text-transform: none;
    color: #333 !important;
    /* Darker for better contrast */
    font-weight: 500;
    font-size: 16px;
    display: block;
    transition: all 0.25s ease;
}

.main-navigation ul li:not(.eduma-mega-menu) .sub-menu li a:hover {
    color: var(--primary-color) !important;
    background: #f9f9f9;
    padding-left: 32px;
    /* Smooth slide effect */
}

/* Form Feedback Animations */
.semmai-msg-fade {
    transition: opacity 0.5s ease;
}

.semmai-msg-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Base style for existing messages */
.semmai-error,
.semmai-success {
    margin: 15px 0;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Mega Menu Columns */
.main-navigation ul li.eduma-mega-menu>.sub-menu>li {
    flex: 1;
    min-width: 150px;
    /* More compact columns */
    margin: 0;
}

.main-navigation ul li.eduma-mega-menu>.sub-menu>li>a {
    padding: 0 0 15px 0;
    color: var(--heading-color) !important;
    border-bottom: none;
    /* Removed as requested */
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.main-navigation ul li.eduma-mega-menu>.sub-menu>li>a::after {
    display: none !important;
}

.main-navigation ul li.eduma-mega-menu>.sub-menu .sub-menu {
    position: static;
    display: block !important;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
}

.main-navigation ul li.eduma-mega-menu>.sub-menu .sub-menu li {
    margin: 0 0 8px 0;
}

.main-navigation ul li.eduma-mega-menu>.sub-menu .sub-menu li a {
    padding: 5px 0;
    text-transform: none;
    font-weight: 400;
    font-size: 16px;
    color: var(--text-main) !important;
    display: block;
}

.main-navigation ul li.eduma-mega-menu>.sub-menu .sub-menu li a:hover {
    color: var(--primary-color) !important;
    padding-left: 10px;
}


/* --- Eduma Testimonials Section --- */
.eduma-testimonials-section {
    padding: 80px 0;
    background: #fbfbfb;
    text-align: center;
}

.eduma-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: all 0.3s ease;
}

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

.qoute-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 5px 0;
}

.author-info span {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Eduma CTA Section --- */
.eduma-cta-section {
    background: var(--primary-color);
    padding: 80px 0;
    text-align: center;
    color: #333;
    margin-bottom: 0px;
    /* Connects to footer */
}

.eduma-cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.eduma-cta-content p {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.9;
}

.eduma-btn-white {
    display: inline-block;
    background: #fff;
    color: var(--heading-color);
    padding: 15px 40px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.eduma-btn-white:hover {
    background: #333;
    color: #333;
}

/* --- Eduma Footer --- */
.custom-footer {
    background: #111111;
    color: #999999;
    padding: 40px 0 0;
    font-size: 15px;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 15px;
    text-transform: capitalize;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-branding .logo-text {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 25px;
}

.footer-branding .logo-text span {
    color: var(--primary-color);
}

/* Footer Logo Visibility */
.footer-logo img,
.footer-logo .custom-logo {
    max-width: 200px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(1px 1px 0 rgba(255, 255, 255, 0.5)) drop-shadow(-1px -1px 0 rgba(255, 255, 255, 0.5)) drop-shadow(1px -1px 0 rgba(255, 255, 255, 0.5)) drop-shadow(-1px 1px 0 rgba(255, 255, 255, 0.5));
    transition: all 0.3s ease;
}

.footer-logo img:hover,
.footer-logo .custom-logo:hover {
    filter: drop-shadow(0 0 8px rgba(125, 34, 30, 0.6));
    /* Eduma Yellow glow on hover */
}

.footer-branding p {
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #222222;
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-icon:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-custom-btn {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff !important;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    margin-top: 15px;
    transition: all 0.3s ease;
    text-align: center;
}

.footer-custom-btn:hover {
    background: var(--heading-color);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(125, 34, 30, 0.3);
}

.footer-socials-with-labels {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.footer-socials-with-labels .social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none !important;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-socials-with-labels .social-item i {
    width: 32px;
    height: 32px;
    background: #222222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 16px;
    color: var(--primary-color);
}

.footer-socials-with-labels .social-item:hover {
    transform: translateX(5px);
}

/* Platform Brand Colors */
.social-item.fb i {
    background: #1877F2 !important;
    color: #ffffff !important;
}

.social-item.fb:hover {
    color: #1877F2 !important;
}

.social-item.tw i {
    background: #000000 !important;
    color: #ffffff !important;
}

.social-item.tw:hover {
    color: #000000 !important;
}

.social-item.ig i {
    background: #E4405F !important;
    color: #ffffff !important;
}

.social-item.ig:hover {
    color: #E4405F !important;
}

.social-item.yt i {
    background: #FF0000 !important;
    color: #ffffff !important;
}

.social-item.yt:hover {
    color: #FF0000 !important;
}

.social-item.wa i {
    background: #25D366 !important;
    color: #ffffff !important;
}

.social-item.wa:hover {
    color: #25D366 !important;
}

/* --- Astra Layout Fixes for Sticky & Banners --- */
#page,
.site,
.site-content,
.ast-container,
.hfeed {
    overflow: visible !important;
}

/* --- Semmai Main Layout Wrapper --- */
.semmai-main-layout-wrapper {
    display: flex;
    align-items: flex-start;
    width: 100%;
    position: relative;
    overflow: visible !important;
}

.semmai-main-layout-wrapper .site-content {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: calc(100% - 180px);
    /* Backup safety for desktop */
}

@media (max-width: 991px) {
    .semmai-main-layout-wrapper .site-content {
        max-width: 100% !important;
    }
}



/* --- Floating Side Menu Refined --- */
.floating-side-menu {
    position: sticky !important;
    top: 140px !important;
    /* Default: 140px for all inner pages */
    z-index: 1001 !important;
    flex: 0 0 180px;
    /* Fixed width increased from 150px */
    width: 180px;
    align-self: flex-start;
    padding-bottom: 30px;
}

/* Home page gets slightly lower start position */
.home .floating-side-menu {
    top: 160px !important;
}


ul#side-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
}

ul#side-menu li {
    margin: 0;
    background: #ffffff;
    border-radius: 0px 50px 50px 0px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    border-left: 3px solid transparent;
    /* accent placeholder */
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul#side-menu li:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(125, 34, 30, 0.2);
    border-left-color: var(--primary-color);
}

/* Active / current page highlight */
ul#side-menu li.current-menu-item,
ul#side-menu li.current-menu-parent,
ul#side-menu li.current-menu-ancestor {
    border-left-color: var(--primary-color);
    background: #fff8ee;
    box-shadow: 0 6px 20px rgba(125, 34, 30, 0.15);
    transform: translateX(6px);
}

ul#side-menu li.current-menu-item>a,
ul#side-menu li.current-menu-parent>a,
ul#side-menu li.current-menu-ancestor>a {
    color: var(--primary-color) !important;
}

ul#side-menu li a {
    text-decoration: none !important;
    color: #444 !important;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    padding: 12px 8px;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    background: transparent;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

ul#side-menu li a:hover {
    color: var(--primary-color) !important;
}

/* Hide Astra default icons or additions if any */
ul#side-menu li a i,
ul#side-menu li a .ast-icon,
ul#side-menu li a span[class*="fa-"] {
    display: none !important;
}

/* Ensure no arrows for submenus if accidentally added */
ul#side-menu li.menu-item-has-children>a::after {
    display: none !important;
}

/* Responsive: Transform into elegant slide-out Left Drawer under 991px */
@media (max-width: 991px) {

    .floating-side-menu,
    .home .floating-side-menu {
        position: fixed !important;
        top: 0 !important;
        left: -320px !important;
        /* hidden off-screen */
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        z-index: 99999 !important;
        padding: 90px 20px 30px 0;
        /* paddings, no left padding because side-menu li wraps */
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        flex: none;
        display: block !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .floating-side-menu.active,
    .home .floating-side-menu.active {
        left: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    ul#side-menu {
        width: 100%;
        gap: 15px;
    }

    ul#side-menu li {
        border-radius: 0px 50px 50px 0px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    ul#side-menu li a {
        padding: 14px 25px;
        font-size: 13px;
        text-align: left;
        /* Align text beautifully inside drawer */
    }
}

/* Floating Action Button (FAB) Trigger */
.side-menu-trigger {
    display: none;
    position: fixed;
    bottom: 95px;
    /* Sits beautifully above the scroll-to-top button */
    left: 25px;
    width: 55px;
    height: 55px;
    background: var(--primary-color);
    color: #fff !important;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(125, 34, 30, 0.4);
    z-index: 10006;
    /* Under the drawer (10008) but above content */
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.side-menu-trigger i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.side-menu-trigger:hover {
    background: var(--primary-hover);
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 25px rgba(125, 34, 30, 0.5);
}

@media (max-width: 991px) {
    .side-menu-trigger {
        display: flex;
        /* Visible only on tablet and mobile */
    }
}

/* Slide Drawer Overlay Backdrop */
.side-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    /* Just below the left drawer */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.side-menu-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.footer-links ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-contact .contact-item {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.footer-contact .contact-item i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 18px;
    width: 25px;
    text-align: center;
}

.footer-contact .contact-item p {
    margin: 0;
    line-height: 1.6;
}

.footer-bottom {
    background: #000000;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    width: 100%;
}

.footer-bottom .footer-container {
    max-width: 100%;
    padding: 0 20px;
}

.footer-bottom p {
    margin: 0;
    color: #888888;
    font-size: 14px;
}

/* --- Eduma-style Scroll to Top --- */
#ast-scroll-top {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    width: 45px !important;
    height: 45px !important;
    line-height: 45px !important;
    transition: all 0.3s ease !important;
    bottom: 30px !important;
    right: 30px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

#ast-scroll-top:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-5px);
}

#ast-scroll-top .ast-icon {
    color: #ffffff !important;
    font-size: 20px !important;
}

/* --- Mobile Responsiveness --- */
.mobile-toggle {
    display: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

@media (max-width: 991px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1199px) {
    .header-container {
        padding: 0 15px;
    }

    .eduma-top-bar {
        display: none;
    }

    .custom-header {
        height: 70px;
        z-index: 10005;
        overflow: visible !important;
    }

    .custom-header .logo-text {
        font-size: 20px;
    }

    .custom-header .logo-text span {
        font-size: 20px;
    }

    .custom-header .site-branding img {
        max-height: 40px;
        width: auto;
    }

    .mobile-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 10001;
        transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: var(--shadow-md);
        overflow-y: auto;
        padding-top: 60px;
        pointer-events: auto;
        /* Ensure clicks work */
    }

    .main-navigation.active {
        left: 0;
    }

    /* Removed restrictive overlay that was blocking interaction */

    .main-navigation ul {
        flex-direction: column;
    }

    .main-navigation ul li {
        margin: 0;
        width: 100%;
        position: relative;
    }

    .main-navigation ul li a {
        padding: 15px 25px !important;
        border-bottom: 1px solid #f5f5f5;
        font-size: 15px;
        color: #333 !important;
        display: block;
        position: relative;
        z-index: 10;
        pointer-events: auto;
    }

    /* Mobile Sub-menu Toggle - Eduma Style */
    .sub-menu-toggle {
        display: flex !important;
        /* Show on mobile only */
        position: absolute;
        top: 0;
        right: 0;
        width: 50px;
        height: 52px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border-left: 1px solid #f0f0f0;
        background: #fdfdfd;
        color: #999;
        font-size: 11px;
        z-index: 15;
        pointer-events: auto;
        transition: all 0.3s ease;
    }

    .sub-menu-toggle i {
        transition: transform 0.3s ease;
    }

    .sub-menu-toggle.active i {
        transform: rotate(180deg);
        color: var(--primary-color);
    }

    .main-navigation .sub-menu {
        position: static !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: #fdfdfd !important;
    }

    .main-navigation .sub-menu li a {
        padding-left: 40px !important;
        font-size: 14px;
        text-transform: none;
    }

    /* Mega Menu Resets for Mobile */
    .main-navigation ul li.eduma-mega-menu {
        position: relative;
    }

    .main-navigation ul li.eduma-mega-menu>.sub-menu {
        flex-direction: column !important;
        padding: 0 !important;
    }

    .main-navigation ul li.eduma-mega-menu>.sub-menu>li {
        width: 100%;
        min-width: 0;
    }

    .main-navigation ul li.eduma-mega-menu>.sub-menu>li>a {
        padding-left: 40px !important;
        border: none;
        margin: 0;
        font-size: 14px;
        font-weight: 700;
        background: #fdfdfd;
    }

    .main-navigation ul li.eduma-mega-menu>.sub-menu .sub-menu li a {
        padding-left: 55px !important;
    }

    /* Header Mobile Layout */
    .custom-header .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 70px;
    }

    .mobile-toggle {
        order: 3;
        font-size: 26px;
        position: relative;
        z-index: 10005;
        /* Above everything */
        pointer-events: auto;
    }

    .header-right {
        display: flex !important;
        align-items: center !important;
        order: 2;
        margin-right: 10px;
    }

    .header-login {
        order: 1 !important;
        margin-right: 10px !important;
    }

    .header-search {
        order: 2 !important;
        margin-right: 0 !important;
    }

    .header-login .login-btn span {
        display: none;
        /* Hide text on mobile button */
    }

    .header-login .login-btn {
        padding: 8px 12px;
    }

    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 10000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .menu-backdrop.active {
        opacity: 1;
        pointer-events: all;
    }
}

@media (max-width: 767px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* --- Eduma-style Form Polish --- */
.semmai-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    max-width: 500px;
    margin: 60px auto;
    border-top: 4px solid var(--primary-color);
}

.semmai-form-card h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.semmai-form-group {
    margin-bottom: 20px;
}

.semmai-form-group label {
    display: block;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.semmai-form-control {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #eeeeee;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #444;
}

.semmai-form-control:focus {
    border-color: var(--primary-color);
    background: var(--white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(125, 34, 30, 0.1);
}

.semmai-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 16px 25px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(125, 34, 30, 0.2);
    display: inline-block;
    text-align: center;
}

.semmai-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 15px rgba(125, 34, 30, 0.4);
    transform: translateY(-2px);
}

.semmai-error {
    color: #b91c1c;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #b91c1c;
    font-size: 14px;
}

/* --- Eduma Popular Course Slider (100% Fidelity) --- */

.eduma-popular-classes-wrapper {
    position: relative;
    padding-bottom: 40px;
}

.eduma-course-slider-container {
    position: relative;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.eduma-course-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 5px;
    /* Space for shadow */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
    scroll-behavior: smooth;
}

.eduma-course-slider::-webkit-scrollbar {
    display: none;
}

.eduma-course-card {
    flex: 0 0 calc(25% - 23px);
    /* 4 items desktop */
    scroll-snap-align: start;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    /* Soft shadow default */
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.eduma-course-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Thumbnail Area */
.course-thumbnail-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
    background: #111;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.eduma-course-card:hover .course-image {
    transform: scale(1.04);
}

.read-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
}

.eduma-course-card:hover .read-more-overlay {
    opacity: 1;
}

/* Instructor Avatar Overlap */
.instructor-avatar {
    position: absolute;
    bottom: -15px;
    left: 20px;
    z-index: 2;
}

.instructor-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Content Area */
.course-content {
    padding: 25px 20px 20px;
    text-align: left;
}

.course-author-name {
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
    margin-left: 60px;
    /* Space for avatar overlap */
}

.course-title {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0;
    line-height: 1.4;
    min-height: 44px;
    /* Ensure 2 lines alignment */
}

.course-title a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.2s;
}

.course-title a:hover {
    color: var(--primary-color);
}

.course-meta-data {
    display: flex;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
    color: #666;
    font-size: 13px;
    gap: 15px;
}

.course-meta-item i {
    color: #ccc;
    margin-right: 5px;
}

/* Footer Price */
.course-footer {
    display: flex;
    justify-content: flex-end;
    /* Price on right */
    align-items: center;
    margin-top: 15px;
}

.course-price-wrapper .price {
    font-weight: 700;
    font-size: 18px;
    color: #444;
}

.course-price-wrapper .price.free {
    color: #65bc7b;
    /* Green for Free */
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
}



/* Slider Controls (Arrows - 100% Eduma Style) */
.eduma-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    font-size: 18px;
    color: #aeaeae;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.eduma-slider-nav:hover {
    background: #7d221e;
    /* Eduma Yellow */
    color: #333;
    box-shadow: 0 10px 20px rgba(125, 34, 30, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.eduma-slider-nav.prev {
    left: -25px;
}

.eduma-slider-nav.next {
    right: -25px;
}

/* View More Section Button */
.eduma-view-more-container {
    margin-top: 50px;
}

.eduma-btn-warning {
    background: #7d221e;
    color: #333;
    padding: 15px 40px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 3px;
    display: inline-block;
    transition: all 0.3s ease;
}

.eduma-btn-warning:hover {
    background: #333;
    color: #333;
}

/* Responsive */
@media (max-width: 1024px) {

    /* Tablet */
    .eduma-course-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {

    /* Mobile */
    .eduma-course-card {
        flex: 0 0 100%;
    }

    .eduma-slider-nav {
        display: none;
        /* Hide arrows on mobile, simplify UX */
    }
}


.semmai-success {
    background: #f0fff4;
    color: #38a169;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
    border-left: 3px solid #38a169;
}

/* Global Polish */
.ast-container {
    max-width: 1200px !important;
    padding: 0 15px;
}

/* .entry-content padding intentionally removed */

a {
    color: var(--primary-hover);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
}

/* --- Eduma Events Section --- */
.eduma-events-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.eduma-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.eduma-event-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.eduma-event-card:hover {
    transform: translateY(-5px);
}

.event-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-content {
    padding: 25px;
}

.event-meta {
    font-size: 13px;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.event-title {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.event-title a {
    color: var(--heading-color) !important;
    text-decoration: none;
}

.event-title a:hover {
    color: var(--primary-color) !important;
}

.event-location {
    font-size: 14px;
    color: #888;
}

.event-location i {
    margin-right: 5px;
}

/* --- Eduma Announcements Section --- */
.eduma-announcements-section {
    padding: 80px 0;
    background: #fff;
}

.eduma-announcements-list {
    margin-top: 40px;
}

.eduma-announcement-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    transition: background 0.3s ease;
}

.eduma-announcement-item:hover {
    background: #f0f0f0;
}

.announcement-icon {
    font-size: 24px;
    color: var(--primary-color);
}

.announcement-date {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.announcement-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.announcement-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.no-data {
    text-align: center;
    color: #999;
    font-style: italic;
    margin-top: 50px;
}

/* --- Eduma Events & Announcements Pages --- */

/* --- Eduma Events Page (Horizontal Row Layout Parity) --- */

.tp-event-archive.horizontal-layout {
    padding-bottom: 80px;
}

/* Tab Filtering (Happening, Upcoming, Expired) */
.thim-event-filters {
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
}

.thim-event-filters ul.tab-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 40px;
}

.thim-event-filters ul.tab-list li {
    position: relative;
    padding-bottom: 15px;
}

.thim-event-filters ul.tab-list li a {
    font-size: 16px;
    font-weight: 700;
    color: #999;
    text-decoration: none;
    transition: 0.3s;
    text-transform: capitalize;
}

.thim-event-filters ul.tab-list li.active a,
.thim-event-filters ul.tab-list li:hover a {
    color: #333;
}

.thim-event-filters ul.tab-list li.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #7d221e;
}

/* Horizontal Event Row */
.eduma-events-horizontal-list {
    display: flex;
    flex-direction: column;
}

.eduma-event-horizontal-row {
    display: flex;
    align-items: flex-start;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
    transition: 0.3s;
    position: relative;
}

.eduma-event-horizontal-row:last-child {
    border-bottom: none;
}

.eduma-event-horizontal-row:hover {
    background: #fafafa;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: -20px;
    margin-right: -20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

/* Col 1: Date Block */
.event-date-block {
    width: 120px;
    flex-shrink: 0;
    text-align: center;
    padding-right: 30px;
}

.event-date-block .day {
    display: block;
    font-size: 56px;
    font-weight: 800;
    color: #7d221e;
    line-height: 1;
}

.event-date-block .month {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* Col 2: Content Block */
.event-content-block {
    flex: 1;
    padding: 0 30px;
}

.event-content-block .event-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.event-content-block .event-title a {
    color: #333;
    text-decoration: none;
    transition: 0.3s;
}

.eduma-event-horizontal-row:hover .event-title a {
    color: #7d221e;
}

.event-content-block .event-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #888;
}

.event-content-block .event-meta i {
    color: #7d221e;
    margin-right: 8px;
}

.event-content-block .event-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* ==========================================================================
   GLOBAL AJAX LOADER (DARK LUXURY)
   ========================================================================== */
#semmai-global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.semmai-loader-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.semmai-loader-content {
    position: relative;
    z-index: 10;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 60px 80px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: loaderPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.semmai-premium-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.spinner-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    background: var(--primary-color, #7d221e);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--primary-color, #7d221e);
    animation: corePulse 1.5s ease-in-out infinite;
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--primary-color, #7d221e);
    border-radius: 50%;
    animation: ringRotate 2s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #333;
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: var(--primary-color, #7d221e);
    animation-duration: 1s;
}

.semmai-loader-text {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 15px;
    opacity: 0.9;
    font-family: 'Poppins', 'Noto Sans Tamil', sans-serif;
}

@keyframes ringRotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes corePulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }
}

@keyframes loaderPopIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Improved Accessibility for Speeches Buttons --- */
.btn-speech-fav,
.btn-speech-completed {
    min-width: 44px !important;
    min-height: 44px !important;
    font-size: 18px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-speech-fav:hover {
    transform: scale(1.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-speech-fav.active i {
    animation: heartBeat 0.4s ease-out;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/* Col 3: Image Block */
.event-image-block {
    width: 260px;
    flex-shrink: 0;
}

.event-image-block .thumb {
    display: block;
    height: 170px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.event-image-block .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111;
    transition: transform 0.5s ease;
}

.eduma-event-horizontal-row:hover .event-image-block .thumb img {
    transform: scale(1.1);
}

/* Sidebar Precision */
.sidebar .widget-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.sidebar .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #7d221e;
}

/* Responsive Stacking */
@media (max-width: 991px) {
    .eduma-event-horizontal-row {
        flex-wrap: wrap;
    }

    .event-content-block {
        flex: 1;
        padding-right: 0;
    }

    .event-image-block {
        width: 100%;
        margin-top: 30px;
    }

    .event-image-block .thumb {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .eduma-event-horizontal-row {
        flex-direction: column;
    }

    .event-date-block {
        width: 100%;
        text-align: left;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .event-date-block .day {
        display: inline-block;
        font-size: 40px;
    }

    .event-date-block .month {
        display: inline-block;
        margin-left: 10px;
        font-size: 16px;
    }

    .event-content-block {
        padding: 0;
    }
}

/* --- Eduma Events & Announcements Pages (100% Parity) --- */

.eduma-page-title-area {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}

.eduma-page-title-area .eduma-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.eduma-page-title-area .eduma-container {
    position: relative;
    z-index: 2;
}

.eduma-page-title-area .page-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffff;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.eduma-breadcrumb {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.eduma-breadcrumb a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.eduma-breadcrumb a:hover {
    color: #7d221e;
}

.eduma-breadcrumb .current {
    color: #7d221e;
}

/* Event Archive (Grid) */
.tp-event-archive .eduma-events-full-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.eduma-event-card-full {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
}

.eduma-event-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.event-thumb-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.event-thumb-wrapper .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111;
    transition: transform 0.5s ease;
}

.eduma-event-card-full:hover .thumbnail img {
    transform: scale(1.1);
}

.event-date-box {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #7d221e;
    color: #333;
    padding: 10px 15px;
    text-align: center;
    border-radius: 4px;
    min-width: 65px;
    z-index: 3;
}

.event-date-box .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.event-date-box .month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

.event-info {
    padding: 25px;
}

.event-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
}

.event-title a {
    color: #333;
    text-decoration: none;
    transition: 0.3s;
}

.event-title a:hover {
    color: #7d221e;
}

.event-meta-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #888;
}

.event-meta-items .meta-item i {
    color: #7d221e;
    margin-right: 5px;
}

.event-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover {
    color: #7d221e;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Announcements Archive */
.thim-announcement-tabs {
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
}

.thim-announcement-tabs ul.tab-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 40px;
}

.thim-announcement-tabs ul.tab-list li {
    position: relative;
    padding-bottom: 15px;
}

.thim-announcement-tabs ul.tab-list li a {
    font-size: 16px;
    font-weight: 700;
    color: #999;
    text-decoration: none;
    transition: 0.3s;
}

.thim-announcement-tabs ul.tab-list li.active a,
.thim-announcement-tabs ul.tab-list li:hover a {
    color: #333;
}

.thim-announcement-tabs ul.tab-list li.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #7d221e;
}

.modern-announcement-card {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.modern-announcement-card:hover {
    transform: translateY(-3px);
}

.modern-announcement-card .card-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.modern-announcement-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111;
}

.modern-announcement-card .card-content {
    flex: 1;
}

.modern-announcement-card .meta-row {
    margin-bottom: 10px;
    font-size: 13px;
    color: #888;
}

.modern-announcement-card .meta-row span {
    margin-right: 20px;
}

.modern-announcement-card .meta-row i {
    color: #7d221e;
    margin-right: 5px;
}

.modern-announcement-card .title {
    margin-bottom: 15px;
}

.modern-announcement-card .title a {
    color: #333;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.modern-announcement-card .title a:hover {
    color: #7d221e;
}

.read-more-link {
    color: #7d221e;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    text-decoration: none;
}

/* Sidebar Styling */
.sidebar .widget {
    margin-bottom: 50px;
}

.sidebar .widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 3px solid #7d221e;
    line-height: 1;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 12px 0;
    border-bottom: 1px dotted #eee;
}

.sidebar ul li:last-child {
    border-bottom: none;
}

.sidebar ul li a {
    color: #666;
    text-decoration: none;
    transition: 0.3s;
}

.sidebar ul li a:hover {
    color: #7d221e;
    padding-left: 5px;
}

/* Single Pages Parity */
.eduma-single-event-container,
.eduma-single-announce-container {
    max-width: 870px;
    margin: 0 auto;
    padding: 50px 0 100px;
}

.event-details-block {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

/* Responsiveness */
@media (max-width: 991px) {
    .tp-event-archive .eduma-events-full-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modern-announcement-card {
        flex-direction: column;
    }

    .modern-announcement-card .card-image {
        width: 100%;
        height: 250px;
    }
}

/* --- Phase 5: FAQ Page Redesign (Eduma Parity) --- */

.thim-modern-faq {
    padding-bottom: 100px;
}

.faq-split-intro-row {
    display: flex;
    margin-bottom: 100px;
}

.intro-left-col {
    width: 60%;
    background: #f9f9f9;
    padding: 80px 100px;
    display: flex;
    align-items: center;
}

.intro-right-col {
    width: 40%;
    background: #4caf50;
    /* Institutional Green */
    padding: 80px 60px;
    color: #333;
}

.intro-inner .intro-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.intro-inner .intro-desc {
    font-size: 16px;
    color: #777;
    margin-bottom: 40px;
    max-width: 400px;
}

.intro-features-list .feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item .feat-num {
    font-size: 50px;
    font-weight: 300;
    color: #e0e0e0;
    line-height: 1;
    min-width: 60px;
}

.feature-item .feat-text {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* Institutional Green Panel */
.institutional-panel .panel-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.contact-mini-form .form-group {
    margin-bottom: 20px;
}

.contact-mini-form input,
.contact-mini-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
}

.contact-mini-form .submit-btn {
    width: 100%;
    padding: 15px;
    background: #7d221e;
    color: #333;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.contact-mini-form .submit-btn:hover {
    background: #e6a405;
}

/* Accordion Grid */
.faq-accordion-grid {
    display: flex;
    gap: 60px;
}

.faq-col {
    width: 50%;
}

.faq-col-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 35px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.faq-col-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #7d221e;
}

/* Thim Accordion Styling */
.thim-accordion .accordion-item {
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    margin-bottom: 15px;
    background: #fff;
    overflow: hidden;
}

.accordion-title {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 700;
    color: #333;
}

.accordion-title:hover {
    background: #fbfbfb;
}

.accordion-title i {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-title {
    color: #7d221e;
}

.accordion-item.active .accordion-title i {
    transform: rotate(90deg);
    color: #7d221e;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease-out;
}

.accordion-content .content-inner {
    padding: 0 25px 25px;
    color: #777;
    line-height: 1.8;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 991px) {
    .faq-split-intro-row {
        flex-direction: column;
    }

    .intro-left-col,
    .intro-right-col {
        width: 100%;
        padding: 60px 30px;
    }

    .faq-accordion-grid {
        flex-direction: column;
        gap: 40px;
    }

    .faq-col {
        width: 100%;
    }
}

/* --- Phase 4: Modern Activities Split Layout --- */

.thim-modern-activities {
    padding-bottom: 100px;
}

.thim-activity-filters {
    margin-bottom: 60px;
    text-align: center;
}

.thim-activity-filters ul.filter-list {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    gap: 30px;
}

.thim-activity-filters ul.filter-list li a {
    font-size: 15px;
    font-weight: 700;
    color: #999;
    text-decoration: none;
    padding-bottom: 10px;
    position: relative;
    transition: 0.3s;
    text-transform: uppercase;
}

.thim-activity-filters ul.filter-list li.active a,
.thim-activity-filters ul.filter-list li:hover a {
    color: #333;
}

.thim-activity-filters ul.filter-list li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #7d221e;
}

.modern-activities-split-list {
    padding: 0;
}

.activity-split-row {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    gap: 60px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 80px;
}

.activity-split-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.activity-split-row.row-reverse {
    flex-direction: row-reverse;
}

.activity-split-row .activity-image-side {
    width: 50%;
    flex-shrink: 0;
}

.activity-split-row .activity-image-side .image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.activity-split-row .activity-image-side .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.activity-split-row:hover .activity-image-side .image-wrapper img {
    transform: scale(1.1);
}

.activity-split-row .activity-content-side {
    width: 50%;
}

.activity-split-row .activity-content-side .activity-label {
    display: inline-block;
    color: #7d221e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.activity-split-row .activity-content-side .activity-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.2;
    transition: color 0.3s;
}

.activity-split-row:hover .activity-content-side .activity-title {
    color: #7d221e;
}

.activity-split-row .activity-content-side .activity-description {
    font-size: 16px;
    color: #777;
    line-height: 1.8;
    margin-bottom: 30px;
}

.activity-split-row .activity-content-side .learn-more-btn {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.activity-split-row .activity-content-side .learn-more-btn:hover {
    color: #7d221e;
    gap: 15px;
}

/* Admin Controls in Split Layout */
.activity-admin-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: 0.3s;
    z-index: 10;
}

.activity-image-side:hover .activity-admin-controls {
    opacity: 1;
    transform: translateY(0);
}

.ctl-btn {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.ctl-btn:hover {
    background: #7d221e;
    color: #333;
}

.ctl-btn.delete:hover {
    background: #e74c3c;
}

/* Responsive Redesign Activities */
@media (max-width: 1024px) {
    .activity-split-row {
        flex-direction: column !important;
        gap: 30px;
        padding-bottom: 60px;
        margin-bottom: 60px;
    }

    .activity-split-row .activity-image-side,
    .activity-split-row .activity-content-side {
        width: 100%;
    }

    .activity-split-row .activity-image-side .image-wrapper {
        height: 350px;
    }

    .activity-split-row .activity-content-side .activity-title {
        font-size: 28px;
    }
}

/* ==========================================================
   SEARCH RESULTS PAGE – Hide author / posted-by details
   ========================================================== */
.search-results .entry-meta,
.search-results .posted-by,
.search-results .ast-author-meta,
.search-results .author-name,
.search-results .byline,
.search-results .entry-footer,
.search-results .ast-post-cats,
.search-results .ast-tags-list,
.search-results .ast-posted-on,
.search-results .post-author,
.search-results .entry-date,
.search-results article .ast-article-post .entry-header .entry-meta,
.search-results .ast-meta-date,
.search-results .comments-link,
.search-results .post-edit-link {
    display: none !important;
}

/* Keep search result titles and excerpts clean */
.search-results .entry-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.search-results .entry-title a {
    color: var(--heading-color) !important;
}

.search-results .entry-title a:hover {
    color: var(--primary-color) !important;
}

.search-results .entry-summary,
.search-results .entry-content p {
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.7;
}

/* ==========================================================================
   SEMMAI HEYZINE FLIPBOOK & PDF VIEWER SYSTEM — Premium High-Fidelity UI
   ========================================================================== */

.semmai-flipbook-outer {
    margin: 20px 0 45px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Toolbar / Header */
.semmai-flipbook-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(135deg, #111111 0%, #1e1e1e 100%);
    border-bottom: 4px solid var(--primary-color, #7d221e);
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.semmai-flipbook-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.semmai-flipbook-icon-badge {
    width: 40px;
    height: 40px;
    background: var(--primary-color, #7d221e);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(125, 34, 30, 0.25);
    transition: transform 0.2s ease;
}

.semmai-flipbook-icon-badge i {
    font-size: 18px;
    color: #ffffff;
}

.semmai-flipbook-outer:hover .semmai-flipbook-icon-badge {
    transform: scale(1.05);
}

.semmai-flipbook-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.semmai-flipbook-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--primary-color, #7d221e);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.semmai-flipbook-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Roboto', sans-serif;
}

/* Actions Section */
.semmai-flipbook-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.semmai-control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 14px;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.semmai-control-btn:hover {
    background: var(--primary-color, #7d221e) !important;
    border-color: var(--primary-color, #7d221e) !important;
    color: #ffffff !important;
    transform: scale(1.05);
}

.semmai-page-indicator {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 60px;
    text-align: center;
    letter-spacing: 0.5px;
}

.semmai-fullscreen-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: none !important;
    line-height: 1 !important;
    margin-left: 6px;
}

.semmai-fullscreen-btn:hover {
    background: var(--primary-color, #7d221e) !important;
    border-color: var(--primary-color, #7d221e) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(125, 34, 30, 0.3) !important;
}

.semmai-fullscreen-btn i {
    font-size: 13px;
}

/* Embed Wrapper & 3D Flipbook Container */
.semmai-flipbook-embed-wrapper {
    position: relative;
    background: #0b0f19;
    /* Sleek premium dark canvas background */
    width: 100%;
    height: 80vh;
    min-height: 550px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px 0;
    box-sizing: border-box;
}

/* StPageFlip Main Target element */
.semmai-3d-flipbook {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    background: transparent;
    transition: opacity 0.3s ease;
}

/* Individual page items */
.semmai-flip-page {
    background: #ffffff;
    box-shadow: inset 3px 0 10px rgba(0, 0, 0, 0.15), 0 0 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    box-sizing: border-box;
}

/* Hard cover pages rendering rules */
.semmai-flip-page[data-density="hard"] {
    background: #f8fafc;
    border: 2px solid #334155;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.semmai-flip-page canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    /* absolute protection against copying/context click on images */
}

/* Elegant Spinner Overlay */
.semmai-flipbook-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0b0f19;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    gap: 15px;
    color: #ffffff;
}

.semmai-spin-ring {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(125, 34, 30, 0.2);
    border-top: 3px solid var(--primary-color, #7d221e);
    border-radius: 50%;
    animation: semmai-spin-rotation 1s linear infinite;
}

.semmai-flipbook-spinner p {
    font-size: 15px;
    color: #f8fafc;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'Roboto', sans-serif;
}

@keyframes semmai-spin-rotation {
    0% {
        transform: rotate(0deg);
    }

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

/* Secure Info Footer Bar */
.semmai-flipbook-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    padding: 12px 24px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.semmai-flipbook-footer i {
    color: var(--primary-color, #7d221e);
    font-size: 13px;
}

/* Premium Fullscreen Viewport Mode */
.semmai-fs {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
}

.semmai-fs .semmai-flipbook-embed-wrapper {
    height: calc(100vh - 110px) !important;
    max-height: none !important;
    min-height: unset !important;
}

.semmai-fs-active {
    overflow: hidden !important;
}

/* Mobile Responsive Optimization */
@media (max-width: 768px) {
    .semmai-flipbook-outer {
        margin: 10px 0 25px 0;
        border-radius: 8px;
    }

    .semmai-flipbook-header {
        padding: 12px 16px;
        gap: 12px;
        flex-direction: column;
        align-items: flex-start;
    }

    .semmai-flipbook-controls {
        width: 100%;
        justify-content: space-between;
    }

    .semmai-flipbook-embed-wrapper {
        height: 60vh;
        min-height: 380px;
        padding: 10px 0;
    }

    .semmai-flipbook-icon-badge {
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }

    .semmai-flipbook-icon-badge i {
        font-size: 14px;
    }

    .semmai-flipbook-title {
        font-size: 13px;
    }

    .semmai-fullscreen-btn span {
        display: none;
        /* Show only icon on mobile viewports */
    }

    .semmai-fullscreen-btn {
        padding: 8px 10px !important;
    }
}

/* =============================================================================
   SEMMAI DEARFLIP 3D FLIPBOOK — THEME INTEGRATION
   ============================================================================= */

/* Outer wrapper */
.semmai-flipbook-outer.is-dearflip {
    background: #111111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
    margin-bottom: 32px;
    font-family: 'Roboto', sans-serif;
    user-select: none;
    -webkit-user-select: none;
}

/* Premium Header Bar */
.semmai-flipbook-outer.is-dearflip .semmai-flipbook-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1a1a1a 0%, #111111 100%);
    border-bottom: 2px solid #7d221e;
    padding: 12px 20px;
    gap: 12px;
}

.semmai-flipbook-outer.is-dearflip .semmai-flipbook-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.semmai-flipbook-outer.is-dearflip .semmai-flipbook-icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #7d221e, #e08000);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(125, 34, 30, 0.4);
    flex-shrink: 0;
}

.semmai-flipbook-outer.is-dearflip .semmai-flipbook-icon-badge i {
    color: #111;
    font-size: 16px;
}

.semmai-flipbook-outer.is-dearflip .semmai-flipbook-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.semmai-flipbook-outer.is-dearflip .semmai-flipbook-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #7d221e;
}

.semmai-flipbook-outer.is-dearflip .semmai-flipbook-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 420px;
}

.semmai-flipbook-outer.is-dearflip .semmai-flipbook-header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* DearFlip container sizing — full width, centered */
.semmai-dearflip-wrapper {
    width: 100%;
    background: #1a1a1a;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* DearFlip root element — stretch to fill */
.semmai-dearflip-wrapper .df-container,
.semmai-dearflip-wrapper #semmai-dflip-book {
    width: 100% !important;
    min-height: 600px !important;
}

/* Override DearFlip background to match dark theme */
.semmai-dearflip-wrapper .df-bg {
    background: #1a1a1a !important;
}

/* Hide download, print and share controls (security) */
.semmai-dearflip-wrapper .df-btn-download,
.semmai-dearflip-wrapper .df-btn-print,
.semmai-dearflip-wrapper .df-btn-share,
.semmai-dearflip-wrapper [title*="Download"],
.semmai-dearflip-wrapper [title*="Print"],
.semmai-dearflip-wrapper [title*="Share"] {
    display: none !important;
    pointer-events: none !important;
}

/* Style DearFlip toolbar to match Semmai theme */
.semmai-dearflip-wrapper .df-controls {
    background: rgba(17, 17, 17, 0.95) !important;
    border-top: 1px solid #2a2a2a !important;
}

.semmai-dearflip-wrapper .df-btn {
    color: #ffffff !important;
}

.semmai-dearflip-wrapper .df-btn:hover {
    color: #7d221e !important;
}

/* Footer bar */
.semmai-flipbook-outer.is-dearflip .semmai-flipbook-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0a0a0a;
    border-top: 1px solid #222222;
    padding: 10px 20px;
    font-size: 12px;
    color: #64748b;
}

.semmai-flipbook-outer.is-dearflip .semmai-flipbook-footer i {
    color: #7d221e;
    font-size: 11px;
}

/* Responsive — mobile */
@media (max-width: 600px) {
    .semmai-dearflip-wrapper {
        min-height: 420px;
    }

    .semmai-flipbook-outer.is-dearflip .semmai-flipbook-title {
        font-size: 13px;
        max-width: 200px;
    }

    .semmai-flipbook-outer.is-dearflip .semmai-flipbook-header-right span {
        display: none;
    }
}

/* Primary content area top margin override — wide screens */
@media (min-width: 1200px) {
    .ast-plain-container.ast-no-sidebar #primary {
        margin-top: 20px;
    }
}

/* --- Audio Control Improvements (Mobile) --- */
audio {
    width: 100% !important;
    height: 60px !important;
    /* Increased further for Chrome Android */
    min-height: 60px !important;
    display: block !important;
    box-sizing: border-box !important;
    border-radius: 30px !important;


    padding: 0 !important;
    outline: none !important;
}

/* Ensure the audio player doesn't hide controls on Chrome */
audio::-webkit-media-controls-panel {
    background-color: transparent !important;
}

@media (max-width: 768px) {
    .audio-file-item {
        padding: 8px 5px !important;
    }

    .col-audio {
        width: 100% !important;
        flex: 1 0 100% !important;
        margin: 10px 0 !important;
    }

    /* Ensure table rows stack properly to show audio in knowledge grid */
    .semmai-premium-table .semmai-table-row {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .semmai-premium-table .semmai-table-row \u003e div {
        width: 100% !important;
        text-align: left !important;
    }
}

/* --- Uraigal Page Responsiveness Fixes --- */
@media (max-width: 768px) {
    .speeches-main-container {
        margin-top: -20px !important;
    }

    .personal-filters-bar {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .personal-filter-btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
        flex: 1 1 auto !important;
        justify-content: center !important;
    }

    .semmai-table-row {
        padding: 10px 12px !important;
        gap: 8px !important;
    }

    .col-info .item-title {
        white-space: normal !important;
        font-size: 14px !important;
    }

    .col-thumb {
        flex: 0 0 45px !important;
        height: 45px !important;
    }

    .col-sno {
        display: none !important;
    }

    .col-actions {
        width: 100% !important;
        justify-content: space-around !important;
        margin-top: 5px !important;
    }

    .col-audio {
        width: 100% !important;
        flex: 1 1 100% !important;
        /* Force full row width */
        max-width: 100% !important;
        margin-top: 5px !important;
    }

    .col-audio audio {
        min-width: 100% !important;
        /* Ensure it doesn't shrink */
    }

    /* Sub-tabs wrappers and containers wrapping fix */
    .speeches-tabs-wrapper {
        overflow-x: auto !important;
        display: block !important;
        -webkit-overflow-scrolling: touch;
    }

    .sub-tabs-container,
    .subsub-tabs-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        overflow-x: auto !important;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .speech-subtab-btn,
    .speech-subsubtab-btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
        flex: 1 1 auto !important;
        min-width: calc(50% - 10px) !important;
        text-align: center !important;
    }
}

/* --- Aasan Palli Specific Styles --- */
.palli-main-desc {
    background-color: #f8f1f1;
    color: #444;
    /* Semmai red default requires white text, if gold consider dark */
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-top: 20px;
    margin-bottom: 30px;
    border-left: 5px solid #7d221e;
}

/* --- Student Dashboard Responsiveness Fixes --- */
@media (max-width: 768px) {
    .profile-actions-area {
        flex-direction: column !important;
    }

    .profile-actions-area button.eduma-btn-fill,
    .profile-actions-area button.eduma-btn-outline {
        width: 100% !important;
        justify-content: center !important;
    }

    #fullNotificationList .full-notification-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .full-notification-content {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .full-notification-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .full-notification-meta>div {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .full-notification-meta .reply-btn,
    .full-notification-meta .view-all-link {
        flex: 1 1 auto !important;
        text-align: center !important;
        padding: 8px !important;
    }

    .course-navigation {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .course-navigation .nav-btn {
        max-width: 100% !important;
        width: 100% !important;
        padding: 15px 20px !important;
        box-sizing: border-box !important;
    }
}