:root {
    --primary-color: #006bf8;
    --secondary-color: #2d2d2d;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #666;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;

    --primary-blue: #1E88E5;
    --primary-green: #4CAF50;
    --light-gray: #F8F9FA;
    --dark-text: #2C3E50;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --primary-color: #4361ee;
    --primary-light: #4895ef;
    --success-color: #4cc9f0;
    --warning-color: #f72585;
    --danger-color: #e63946;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    --gradient-success: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
    --gradient-warning: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --border-radius-lg: 16px;

      --primary-color: #4361ee;
    --primary-gradient: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    --primary-dark: #3a56d4;
    --primary-light: rgba(67, 97, 238, 0.1);
    
    --text-primary: #2b2d42;
    --text-secondary: #6c757d;
    --text-light: #adb5bd;
    
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: rgba(67, 97, 238, 0.15);
    
    --success-color: #4cc9f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    
    --border-radius: 12px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

     /* Color System */
    --primary-color: #4361ee;
    --primary-light: #4895ef;
    --dark-text: #2C3E50;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --border-color: #E0E0E0;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
    
    /* Border Radius */
    --border-radius: 12px;
    --border-radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* ===== HEADER BASE STYLES ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    margin-bottom: 20px !important;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
}

/* ===== LOGO STYLES ===== */
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.1;
    left: -10px;
    transition: var(--transition-smooth);
    z-index: -1;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo:hover::before {
    opacity: 0.15;
    transform: scale(1.1);
}

/* ===== NAVIGATION CONTAINER ===== */
.nav-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    transition: var(--transition-smooth);
}

/* ===== NAVIGATION LINKS ===== */
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-smooth);
    display: inline-block;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: var(--transition-smooth);
    transform-origin: left;
}

.nav-links a::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--primary-color);
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: polygon(0 0, 0 100%, 0 100%, 0 0);
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a:hover::after {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* ===== BUTTON STYLES ===== */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    /* min-width: 140px; */
}

.btn-get-started {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    position: relative;
    z-index: 1;
}

.btn-get-started::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #3a56d4 0%, #2d1b69 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    /* border-radius: 50px; */
}

.btn-get-started::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn-get-started:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
    color: #fff;
}

.btn-get-started:hover::before {
    opacity: 1;
}

.btn-get-started:hover::after {
    width: 300px;
    height: 300px;
}

.btn-get-started:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-get-started .btn-icon {
    transition: transform 0.3s ease;
}

.btn-get-started:hover .btn-icon {
    transform: translateX(3px);
}

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
    transition: var(--transition-smooth);
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary-blue) !important;
    border-radius: 3px;
    transition: var(--transition-smooth);
    transform-origin: center;
    position: relative;
}

.mobile-menu-toggle:hover span {
    background: var(--primary-color);
    transform: scaleX(1.1);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
    background: var(--primary-color);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
    background: var(--primary-color);
}

/* ===== OVERLAY ===== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.overlay.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== MOBILE NAVIGATION STYLES ===== */
@media (max-width: 992px) {
    .header-container {
        padding: 0 1.5rem;
        height: 70px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 2rem 2rem;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
        transition: var(--transition-smooth);
    }
    
    .nav-container.active {
        right: 0;
        animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes slideIn {
        from {
            right: -100%;
            opacity: 0;
        }
        to {
            right: 0;
            opacity: 1;
        }
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateX(20px);
        animation: slideInItem 0.4s ease forwards;
    }
    
    @keyframes slideInItem {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .nav-links li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links li:nth-child(2) { animation-delay: 0.2s; }
    .nav-links li:nth-child(3) { animation-delay: 0.3s; }
    .nav-links li:nth-child(4) { animation-delay: 0.4s; }
    .nav-links li:nth-child(5) { animation-delay: 0.5s; }
    
    .nav-links a {
        padding: 1rem 0;
        font-size: 1.1rem;
        width: 100%;
        display: block;
        border-bottom: 1px solid rgba(67, 97, 238, 0.1);
    }
    
    .nav-links a::before {
        display: none;
    }
    
    .nav-links a:hover {
        padding-left: 10px;
        background: linear-gradient(90deg, var(--primary-light), transparent);
        border-radius: 8px;
    }
    
    .header-actions {
        width: 100%;
        /* margin-top: 2rem; */
        padding-top: 1rem;
        border-top: 1px solid rgba(67, 97, 238, 0.1);
    }
    
    .btn-get-started {
        width: 100%;
        justify-content: center;
    }
}

/* ===== TABLET RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1.25rem;
        height: 65px;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .nav-container {
        width: 300px;
        padding: 90px 1.5rem 1.5rem;
    }
    
    .nav-links a {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ===== SMALL MOBILE RESPONSIVE ===== */
@media (max-width: 480px) {
    .header-container {
        padding: 0 1rem;
        height: 60px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .nav-container {
        width: 280px;
        padding: 80px 1.25rem 1.25rem;
    }
    
    .mobile-menu-toggle {
        width: 28px;
        height: 20px;
    }
    
    .mobile-menu-toggle span {
        height: 2.5px;
    }
    
    .nav-links a {
        padding: 0.875rem 0;
        font-size: 0.95rem;
    }
    
    .header-actions {
        /* margin-top: 1rem; */
        padding-top: 1rem;
    }
}

/* ===== ACCESSIBILITY ===== */
.logo:focus-visible,
.nav-links a:focus-visible,
.btn:focus-visible,
.abtn-btn:focus-visible,
.mobile-menu-toggle:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ===== BODY SCROLL LOCK ===== */
body.menu-open {
    overflow: hidden;
}

body.menu-open .overlay.active {
    display: block;
}

/* ===== ACTIVE NAV LINK ===== */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-links a.active::before {
    width: 100%;
}

/* ===== HOVER EFFECTS ENHANCEMENT ===== */
.nav-links a {
    position: relative;
    overflow: hidden;
}

.nav-links a .link-text {
    position: relative;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover .link-text {
    transform: translateY(-100%);
}

/* ===== HEADER ANIMATIONS ===== */
header {
    animation: headerSlideDown 0.6s ease;
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== SCROLL EFFECTS ===== */
header.scrolled .logo {
    transform: scale(0.95);
}

header.scrolled .nav-links a {
    font-size: 0.95rem;
}

/* ===== GLASS MORPHISM EFFECT ===== */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== RIPPLE EFFECT FOR BUTTON ===== */
.btn-get-started {
    position: relative;
    overflow: hidden;
}

.btn-get-started .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== LOADING STATE ===== */
.btn-get-started.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-get-started.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f8f9fa;
        --text-secondary: #adb5bd;
        --white: #1a1a1a;
        --light-bg: #2d2d2d;
        --border-color: rgba(255, 255, 255, 0.1);
    }
    
    header {
        background: rgba(26, 26, 26, 0.9);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    header.scrolled {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .nav-links a {
        color: var(--text-primary);
    }
    
    .mobile-menu-toggle span {
        background: var(--text-primary);
    }
    
    .overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    
    @media (max-width: 992px) {
        .nav-container {
            background: var(--white);
        }
    }
}

.main-container {
    max-width: 1400px;
    margin: 80px 20px;
    padding: 20px;
    
}

/* Hero Section */
.hero {
    max-width: 1400px;
    background-color: white;
    margin: 0 30px;
    padding: 20px;
    border-radius: 16px;
}

.hero-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
}

.hero-container h1{
    text-align: left;
}

.search-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding: 10px 0;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 0 !important;
    color: #666;
    font-size: 18px;
    padding: 0;
    pointer-events: none;
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 8px 20px 8px 25px !important;
    background: transparent;
    color: #333;
}

.search-input::placeholder {
    color: #999;
    padding: 0 !important;
}

.clear-btn {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    padding: 0 12px;
    cursor: pointer;
    display: none; /* Hidden by default */
    transition: color 0.2s;
}

.clear-btn:hover {
    color: #666;
}

.clear-btn:active {
    color: #333;
}

/* Show clear button when input has text */
.search-input:not(:placeholder-shown) + .clear-btn {
    display: block;
}

/* Focus states */
.search-input:focus {
    outline: none;
}

.search-container:focus-within {
    /* border-bottom-color: #0056b3; */
}

/* Main Content */
.content-container {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

/* Sidebar Filters */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.filter-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 25px;
}

.filter-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.filter-option input {
    margin-right: 10px;
}

/* Template Grid */
.main-content {
    flex: 1;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.results-count {
    font-size: 18px;
    color: var(--dark-gray);
}

.sort-dropdown {
    padding: 10px 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--medium-gray);
    background-color: var(--white);
    font-size: 16px;
    cursor: pointer;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.template-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    transition: transform 0.3s, box-shadow 0.3s;
}

.template-info {
    padding: 20px;
}

.template-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.template-description {
    color: var(--dark-gray);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.template-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.template-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 60px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--medium-gray);
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn:hover:not(.active) {
    background-color: var(--light-gray);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 30px 30px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: white;
}

.footer-column ul {
    list-style: none;
    padding-left: 0;
}

.footer-column ul li {
    margin-bottom: 3px !important;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px !important;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .content-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .templates-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .templates-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .main-container {
        margin: 60px auto;
        padding: 0;
    }

    .container {
        padding: 0px;
    }

    .header-container {
        padding: 12px 0;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }

     h1.search-title {
        font-size: 18px;
     }
}

@media (max-width: 480px) {
    .container {
        padding: 0px;
    }

    .nav-container {
        width: 85%;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .mobile-menu-toggle {
        width: 26px;
        height: 20px;
    }

    h1.search-title {
        font-size: 18px;
    }
}

/*  */
 /* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    margin-top: -2px;
    border: 2px solid var(--primary-color);
    border-top: none;
}

.search-dropdown.active {
    display: block;
}

.search-dropdown-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--light-gray);
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 14px;
    text-align: left;
    background-color: #fafafa;
}

.search-suggestions {
    list-style: none;
    padding: 10px 0;
}

.search-suggestion-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: left;
}

.search-suggestion-item:hover {
    background-color: var(--light-gray);
}

.search-suggestion-item.active {
    background-color: rgba(0, 107, 248, 0.1);
}

.suggestion-icon {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.suggestion-text {
    flex: 1;
    font-size: 16px;
    color: var(--secondary-color);
}

.suggestion-category {
    font-size: 12px;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 10px;
}

.recent-searches {
    border-top: 1px solid var(--light-gray);
    margin-top: 10px;
    padding-top: 10px;
}

.recent-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.recent-search-item:hover {
    background-color: var(--light-gray);
}

.recent-search-text {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--dark-gray);
}

.recent-search-icon {
    margin-right: 10px;
    color: var(--dark-gray);
}

.remove-recent {
    background: none;
    border: none;
    color: var(--dark-gray);
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-recent:hover {
    background-color: var(--medium-gray);
    color: var(--secondary-color);
}

/* Main Content */
.content-container {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

/*  */
.search-suggestions {
    padding: 10px 0;
}

.search-result-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: var(--light-gray);
}


/* SHOW SINGLE VIDEO PAGE */
.featured-section, .categories-section {
  padding: 4rem 0;
}

/* ===== Case Video Layout ===== */
.case-video-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.video-column {
    position: sticky;
    top: 100px;
}

.info-column {
    display: flex;
    flex-direction: column; 
    gap: 1.5rem;
    /* margin-top: 26px; */
}

/* Case Info Card */
.case-info-card {
    background: var(--white);
    padding: 2rem;
    /* border-radius: 12px; */
    /* box-shadow: var(--shadow); */
}

.case-title {
    font-size: 1.6rem;
    color: var(--dark-text);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
    font-family: var(--font-heading);
}

.case-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    font-family: var(--font-body);
}

.case-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-text);
    font-family: var(--font-body);
}

/* ===== Contact Section Styles ===== */
.contact-title {
    font-size: 1.3rem;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.contact-subtitle {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.contact-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 0.75rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    min-height: 60px;
}

.contact-btn:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* WhatsApp Button */
.whatsapp-btn {
    background: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background: #128C7E;
    color: white;
}

/* Telegram Button */
.telegram-btn {
    background: #0088cc;
    color: white;
}

.telegram-btn:hover {
    background: #0077b5;
    color: white;
}

/* Email Button */
.email-btn {
    background: var(--primary-blue);
    color: white;
}

.email-btn:hover {
    background: #1565C0;
    color: white;
}

/* Phone Button */
.phone-btn {
    background: #4CAF50;
    color: white;
}

.phone-btn:hover {
    background: #45a049;
    color: white;
}

/* Contact Form Button */
.form-btn {
    background: #FF6B35;
    color: white;
}

.form-btn:hover {
    background: #e55a2b;
    color: white;
}

.btn-icon {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.btn-text {
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-body);
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
    font-family: var(--font-body);
}

.contact-info strong {
    color: var(--dark-text);
    font-family: var(--font-body);
}

/* ===== Contact Modal Styles ===== */
.contact-modal,
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 10px !important;
}

.contact-modal.active,
.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 100vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-text);
    margin: 0;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: var(--light-gray);
}

.modal-body {
    padding: 1.5rem;
}

/* Form Styles */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-group a:hover {
    text-decoration: underline !important;
}

.btn-submit {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 1;
    font-family: var(--font-body);
}

.btn-submit:hover {
    background: #1976D2;
}

.btn-cancel {
    background: var(--light-gray);
    color: var(--dark-text);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    font-family: var(--font-body);
}

.btn-cancel:hover {
    background: #e9ecef;
    border-color: #ccc;
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid #28a745;
    font-family: var(--font-body);
}

/* ===== Mobile Responsive Contact Section ===== */
@media (max-width: 768px) {
    .contact-section {
        padding: 1.5rem;
    }
    
    .contact-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .contact-btn {
        padding: 0.875rem 0.5rem;
        min-height: 55px;
        font-size: 0.85rem;
    }
    
    .btn-icon {
        font-size: 1.2rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 1.25rem 1.25rem 0.75rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .contact-buttons {
        grid-template-columns: 1fr;
    }
    
    .contact-btn {
        min-height: 50px;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    .contact-info p {
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .contact-section {
        padding: 1.25rem;
    }
    
    .contact-btn {
        padding: 0.75rem 0.5rem;
    }
    
    .modal-content {
        margin: 0.5rem;
    }
}

.tiktok-btn {
    background: #000000;
    color: white;
}

.tiktok-btn:hover {
    background: #333333;
    color: white;
}

.email-btn {
    background: var(--primary-blue);
    color: white;
}

.email-btn:hover {
    background: #1565C0;
    color: white;
}

.btn-icon {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.btn-text {
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-body);
}

.contact-info {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
    font-family: var(--font-body);
}

.contact-info strong {
    color: var(--dark-text);
    font-family: var(--font-body);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    /* flex-wrap: wrap; */
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    /* box-shadow: var(--shadow); */
}

/* Share Dropdown */
.share-dropdown {
    position: relative;
    flex: 1;
    min-width: 120px;
}

.btn-share {
    width: 100%;
}

.share-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    padding: 0.5rem;
    display: none;
    z-index: 1000;
    margin-top: 0.5rem;
}

.share-dropdown:hover .share-menu {
    display: block;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.share-option:hover {
    background: var(--light-gray);
}

.share-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* ===== Mobile Responsive Layout ===== */
@media (max-width: 768px) {
    .case-video-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 7px;
    }
    
    iframe.video-frame {
        height:315px !important;
        width:100% !important;
    }

    .video-column {
        position: static;
        order: 1;
    }
    
    .info-column {
        order: 2;
        gap: 1.5rem;
    }
    
    .case-info-card {
        padding: 1.5rem;
    }
    
    .case-title {
        font-size: 1.4rem;
    }
    
    .case-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-section {
        padding: 1.5rem;
    }
    
    .contact-title {
        font-size: 1.2rem;
    }
    
    .contact-buttons {
        gap: 0.75rem;
    }
    
    .contact-btn {
        padding: 0.875rem 1.25rem;
    }
    
    .action-buttons {
        padding: 1.25rem;
        gap: 0.75rem;
    }
    
    .btn-like, .btn-save, .btn-share {
        padding: 0.875rem 1rem;
        min-width: calc(33.333% - 0.5rem);
        flex: none;
    }
    
    .share-dropdown {
        min-width: calc(33.333% - 0.5rem);
        flex: none;
    }
}

@media (max-width: 480px) {
    .case-video-page {
        padding: 1rem 0;
    }
    
    iframe.video-frame {
        height:315px !important;
        width:100% !important;
    }

    .case-info-card {
        padding: 1.25rem;
    }
    
    .case-title {
        font-size: 1.3rem;
    }
    
    .case-description {
        font-size: 0.95rem;
    }
    
    .contact-section {
        padding: 1.25rem;
    }
    
    .contact-title {
        font-size: 1.1rem;
    }
    
    .contact-btn {
        padding: 0.75rem 1rem;
    }
    
    .btn-icon {
        font-size: 1.2rem;
    }
    
    .action-buttons {
        padding: 1rem;
        gap: 0.5rem;
    }
        
    .breadcrumb {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 360px) {
    .case-info-card {
        padding: 1rem;
    }
    
    .contact-section {
        padding: 1rem;
    }
    
    .action-buttons {
        padding: 0.875rem;
    }
    
    .contact-buttons {
        gap: 0.5rem;
    }
    
    .contact-btn {
        padding: 0.675rem 0.875rem;
    }
}

/* Error Message */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid #dc3545;
    font-family: var(--font-body);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
    font-family: var(--font-body);
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 20px 25px;
}

.modal-title {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.3rem;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px 25px;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* Responsive Design */
@media (max-width: 992px) {
    .item-management {
        padding: 20px 15px;
    }
    
    .page-header {
        padding: 25px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .item-table {
        display: none;
    }

    .mobile-card {
        display: block;
    }

    .pagination-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .page-header .btn {
        width: 100%;
        text-align: center;
    }

    .modal-dialog {
        margin: 5px;
    }
}

@media (max-width: 576px) {
    .item-management {
        padding: 15px 0px;
    }

    .search-filters {
        padding: 20px;
    }

    .mobile-card-meta {
        grid-template-columns: 1fr;
    }

    .mobile-card-actions {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
        text-align: center;
    }

    .modal-body {
        padding: 20px;
    }

     .page-title {
        font-size: 1.4rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }
}

/* @media (max-width: 480px) {
     .page-title {
        font-size: 1.2rem;
    }
} */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/*  */
/* View Details Button Styles */
.view-details-btn {
    background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    line-height: 1;
    min-height: 48px;
}

/* Shine Effect */
.view-details-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

/* Hover States */
.view-details-btn:hover {
    box-shadow: 0 8px 25px rgba(77, 171, 247, 0.35);
    background: linear-gradient(135deg, #339af0 0%, #228be6 100%);
}

.view-details-btn:hover::before {
    left: 100%;
}

/* Active State */
.view-details-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(77, 171, 247, 0.3);
}

/* Focus State for Accessibility */
.view-details-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.3);
}

/* Button Text */
.btn-text {
    position: relative;
    z-index: 2;
    letter-spacing: 0.3px;
}

/* Button Icon */
.btn-icon {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    font-weight: 300;
}

.view-details-btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Loading State */
.view-details-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.view-details-btn.loading .btn-text::after {
    content: '...';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Disabled State */
.view-details-btn:disabled {
    background: linear-gradient(135deg, #adb5bd 0%, #868e96 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.view-details-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.view-details-btn:disabled:hover::before {
    left: -100%;
}

/* Alternative Color Variants */

/* Success Green */
.view-details-btn.success {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
}

.view-details-btn.success:hover {
    background: linear-gradient(135deg, #40c057 0%, #2f9e44 100%);
    box-shadow: 0 8px 25px rgba(64, 192, 87, 0.35);
}

.view-details-btn.success:focus {
    box-shadow: 0 0 0 3px rgba(64, 192, 87, 0.3);
}

/* Premium Purple */
.view-details-btn.premium {
    background: linear-gradient(135deg, #9c36b5 0%, #6741d9 100%);
}

.view-details-btn.premium:hover {
    background: linear-gradient(135deg, #862e9c 0%, #5f3dc4 100%);
    box-shadow: 0 8px 25px rgba(156, 54, 181, 0.35);
}

.view-details-btn.premium:focus {
    box-shadow: 0 0 0 3px rgba(156, 54, 181, 0.3);
}

/* Warning Orange */
.view-details-btn.warning {
    background: linear-gradient(135deg, #ffa94d 0%, #ff922b 100%);
    color: #000000;
}

.view-details-btn.warning:hover {
    background: linear-gradient(135deg, #ff922b 0%, #fd7e14 100%);
    box-shadow: 0 8px 25px rgba(255, 146, 43, 0.35);
}

.view-details-btn.warning:focus {
    box-shadow: 0 0 0 3px rgba(255, 146, 43, 0.3);
}

/* Outline Variant */
.view-details-btn.outline {
    background: transparent;
    color: #4dabf7;
    border: 2px solid #4dabf7;
}

.view-details-btn.outline:hover {
    background: #4dabf7;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(77, 171, 247, 0.25);
}

.view-details-btn.outline.success {
    color: #51cf66;
    border-color: #51cf66;
}

.view-details-btn.outline.success:hover {
    background: #51cf66;
    color: #ffffff;
}

/* Size Variants */
.view-details-btn.small {
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
    min-height: 40px;
    gap: 0.5rem;
}

.view-details-btn.small .btn-icon {
    font-size: 1rem;
}

.view-details-btn.large {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-height: 56px;
    gap: 1rem;
}

.view-details-btn.large .btn-icon {
    font-size: 1.2rem;
}

/* Full Width Variant */
.view-details-btn.full-width {
    width: 100%;
    justify-content: center;
}

/* With Icon Only */
.view-details-btn.icon-only {
    padding: 0.875rem;
    width: 48px;
    height: 48px;
    justify-content: center;
}

.view-details-btn.icon-only .btn-text {
    display: none;
}

.view-details-btn.icon-only .btn-icon {
    transform: none;
    margin: 0;
}

.view-details-btn.icon-only:hover .btn-icon {
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .view-details-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        min-height: 44px;
        gap: 0.625rem;
    }
    
    .view-details-btn .btn-icon {
        font-size: 1rem;
    }
    
    .view-details-btn.large {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-height: 48px;
    }
    
    .view-details-btn.small {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
        min-height: 36px;
    }
}

@media (max-width: 480px) {
    .view-details-btn {
        width: 100%;
        justify-content: center;
    }
    
    .view-details-btn:not(.full-width) {
        max-width: 200px;
    }
}

/* Animation for Button Press */
@keyframes buttonPress {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.view-details-btn:active {
    animation: buttonPress 0.2s ease;
}

/* Ripple Effect (Optional) */
.view-details-btn.ripple {
    position: relative;
    overflow: hidden;
}

.view-details-btn.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.view-details-btn.ripple:active::after {
    width: 300px;
    height: 300px;
}







/* sss */

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 20px 0 60px !important;
}

/* ===== VIDEO GRID ===== */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.template-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    margin: auto !important;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-frame {
    width: 100%;
    height: 220px;
    border: none;
    background-color: #000;
}

.template-info {
    padding: 20px;
}

.template-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.template-actions {
    display: flex;
    justify-content: flex-end;
}

/* ===== BUTTONS ===== */
.btn-select {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 600;
    font-size: 15px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-select:hover {
    background-color: #3a56d4;
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 18px !important;
    transition: transform 0.3s;
}

.btn-select:hover .btn-icon {
    transform: translateX(3px);
}

/* ===== LOADING STATES ===== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 20px;
}

.loading-spinner {
    border: 4px solid rgba(67, 97, 238, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ERROR STATES ===== */
.error-message {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff5f5;
    border-radius: var(--border-radius);
    color: #e53e3e;
    margin: 20px 0;
    grid-column: 1 / -1;
}

.error-message i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #e53e3e;
}

.error-message h3 {
    margin-bottom: 10px;
    color: #c53030;
}

.error-message .btn-select {
    margin-top: 20px;
    background-color: #e53e3e;
}

.error-message .btn-select:hover {
    background-color: #c53030;
}

.no-videos {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
    grid-column: 1 / -1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0 30px;
    }
    
    .search-title {
        font-size: 32px;
    }
    
    .search-input {
        padding: 15px 25px 15px 55px;
        font-size: 15px;
    }
    
    .search-icon {
        left: 20px;
        font-size: 18px;
    }
    
    .templates-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        justify-content: center;
        align-items: center;
    }
    
    .search-dropdown {
        position: fixed;
        top: auto;
        left: 20px;
        right: 20px;
        max-height: 60vh;
        margin-top: 5px;
    }
    
    .video-frame {
        height: 200px;
    }
}

@media (max-width: 576px) {
     .hero {
        padding: 10px;
        width: 100% !important;
        align-items: center;
        justify-content: center;
        margin: 30px auto 12px;
    }

    .hero-container {
        padding: 0 15px;
        width: 100% !important;
        align-items: center;
        justify-content: center;
    }

    .search-title {
        font-size: 28px;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
    }
    
    .template-title {
        font-size: 16px;
    }
    
    .btn-select {
        padding: 6px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .search-title {
        font-size: 24px;
    }
    
    .hero-container {
        padding: 0 15px;
    }
    
    .search-container {
        margin: 0 1px;
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a56d4;
}

/* ===== ACCESSIBILITY ===== */
.search-input:focus-visible {
    outline-offset: 2px;
}

.template-card:focus-visible {
    /* outline: 3px solid var(--primary-color); */
    outline-offset: 3px;
}

.btn-select:focus-visible {
    /* outline: 3px solid var(--primary-color); */
    outline-offset: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.template-card {
    animation: fadeIn 0.5s ease-out;
}

.template-card:nth-child(2) {
    animation-delay: 0.1s;
}

.template-card:nth-child(3) {
    animation-delay: 0.2s;
}

.template-card:nth-child(4) {
    animation-delay: 0.3s;
}

.template-card:nth-child(5) {
    animation-delay: 0.4s;
}

.template-card:nth-child(6) {
    animation-delay: 0.5s;
}

/* SHOW */
/* ===== CONTAINER & LAYOUT ===== */
.container {
    /* max-width: 1400px; */
    margin: 0 auto;
    padding: 0;
}

.featured-section {
    padding-top: 30px;
    min-height: calc(100vh - 200px);
}

/* ===== CASE VIDEO LAYOUT ===== */
.case-video-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
    margin-top: 20px;
}

.video-column {
    position: sticky;
    top: 100px;
}

.info-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* margin-top: 26px; */
}

/* ===== VIDEO PLAYER ===== */
/* Video Player Container */
.video-player-container {
    background: #000;
    /* border-radius: 12px; */
    /* overflow: hidden; */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
}

.video-element {
    width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
    border-radius: 12px 12px 0 0;
}

iframe.video-frame {
   height:220px !important;
   width:100% !important;
   border-radius: 12px 12px 0 0;
}

iframe.video-frame-sm {
   height:80px !important;
   width:100px !important;
}

.video-player-container iframe.video-frame {
   height:400px !important;
   width:100% !important;
   border-radius: 12px 12px 0 0;
}

/* ===== CASE INFO CARD ===== */
.case-info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 0 0 12px 12px;
    /* box-shadow: var(--shadow-md); */
    /* margin-top: 20px; */
}

.case-title {
    font-size: 1.8rem;
    color: var(--dark-text);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
    transition: all 0.3s ease;
}

.case-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--dark-text);
    opacity: 0.9;
    margin-top: 10px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--white);
    padding: 1.3rem;
    border-radius: 0 0 12px 12px;
    /* box-shadow: var(--shadow-md); */
    /* border-left: 4px solid var(--primary-color); */
    position: sticky;
    top: 120px;
    margin-bottom: 30px;
}

.contact-title {
    font-size: 1.5rem;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-subtitle {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

/* ===== CONTACT BUTTONS ===== */
.contact-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
    min-height: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.contact-btn:hover::before {
    left: 100%;
}

/* TikTok Button */
.tiktok-btn {
    background: #000000;
    color: white;
}

.tiktok-btn:hover {
    background: #222222;
}

/* Email Button */
.email-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.email-btn:hover {
    background: linear-gradient(135deg, #3a56d4 0%, #3a7bd5 100%);
}

.btn-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.contact-btn:hover .btn-icon {
    transform: scale(1.1);
}

.btn-text {
    font-size: 1rem;
    font-weight: 500;
}

/* ===== CONTACT INFO ===== */
.contact-info {
    background: var(--light-gray);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.contact-info strong {
    color: var(--dark-text);
}

/* ===== CONTACT MODAL ===== */
.contact-modal.active,
.modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(3px);
    }
}

/* Modal Content */
.modal-content {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 100vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--white);
    border-radius: 16px 16px 0 0;
    z-index: 1;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: var(--light-gray);
    color: var(--dark-text);
}

.modal-body {
    padding: 1.5rem;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 1.5rem !important;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    /* box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1); */
}

.input-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    font-size: 1rem;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #3a56d4 0%, #3a7bd5 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-cancel {
    background: var(--light-gray);
    color: var(--dark-text);
    border: 2px solid var(--border-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    font-size: 1rem;
    min-height: 48px;
}

.btn-cancel:hover {
    background: #e9ecef;
    border-color: #ccc;
}

/* ===== LOADING STATES ===== */
.btn-loading {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ===== TOAST MESSAGES ===== */
.toast-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
    font-weight: 600;
    max-width: 400px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-success {
    background: rgba(46, 204, 113, 0.95);
    color: white;
}

.toast-error {
    background: rgba(231, 76, 60, 0.95);
    color: white;
}

.toast-message.show {
    transform: translateY(0);
    opacity: 1;
}

/* ===== ERROR MESSAGES ===== */
.error-message {
    background: rgba(231, 76, 60, 0.1);
    color: #e53e3e;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #e53e3e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.error-close {
    background: none;
    border: none;
    color: #e53e3e;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0 0 1rem;
    line-height: 1;
}

.error-close:hover {
    opacity: 0.8;
}

.email-error {
    background: rgba(231, 76, 60, 0.1);
    color: #e53e3e;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #e53e3e;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.email-success {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #2ecc71;
    animation: fadeIn 0.3s ease;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .case-video-layout {
        grid-template-columns: 1fr 350px;
        gap: 1.5rem;
    }
    
    .contact-section {
        padding: 1.5rem;
    }
}

@media (max-width: 992px) {
    .case-video-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .video-column {
        position: static;
    }
    
    .contact-section {
        position: static;
    }
    
    .info-column {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .featured-section {
        padding-top: 20px;
    }
    
    .case-video-layout {
        gap: 1.5rem;
    }
    
    .case-info-card {
        padding: 1.5rem;
    }
    
    .case-title {
        font-size: 1.5rem;
    }
    
    .case-description {
        font-size: 1rem;
    }
    
    .contact-section {
        padding: 1.25rem;
    }
    
    .contact-title {
        font-size: 1.3rem;
    }
    
    .contact-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .contact-btn {
        padding: 0.875rem 1rem;
        min-height: 55px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-width: 500px;
        width: 90%;
        max-height: 100vh;
    }
    
    .modal-header {
        padding: 1.25rem 1.25rem 0.75rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .toast-message {
        left: 20px;
        right: 20px;
        max-width: none;
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0;
    }
    
    .case-info-card {
        padding: 1.25rem;
    }
    
    .case-title {
        font-size: 1.3rem;
    }
    
    .contact-title {
        font-size: 1.2rem;
    }
    
    .contact-buttons {
        grid-template-columns: 1fr;
    }
    
    .contact-btn {
        padding: 0.875rem;
        min-height: 50px;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    .contact-info p {
        font-size: 0.85rem;
    }
    
    .modal-content {
        margin: 0;
        border-radius: 12px;
        width: 100%;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }

    .video-element {
        width: 100%;
        height: auto;
        max-height: 300px;
        display: block;
        border-radius: 12px 12px 0 0;
    }

    iframe.video-frame {
        height:160px !important;
        width:100% !important;
        border-radius: 12px 12px 0 0;
    }

    .btn-select {
      padding: 6px 12px;
      font-size: 13px;
    }
}

@media (max-width: 480px) {
    .case-title {
        font-size: 1.2rem;
    }
    
    .case-description {
        font-size: 0.95rem;
    }
    
    .contact-section {
        padding: 1rem;
    }
    
    .contact-btn {
        padding: 0.75rem;
    }
    
    .btn-icon {
        font-size: 1.2rem;
    }
    
    .btn-text {
        font-size: 0.9rem;
    }
    
    .form-group input {
        padding: 0.75rem;
    }
    
    .btn-submit, .btn-cancel {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
}

/* ===== SCROLLBAR STYLING ===== */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #3a56d4;
}

/* ===== ACCESSIBILITY ===== */
.contact-btn:focus-visible,
.modal-close:focus-visible,
.form-group input:focus-visible,
.btn-submit:focus-visible,
.btn-cancel:focus-visible {
    outline-offset: 2px;
}

/* ===== BODY SCROLL LOCK ===== */
body.modal-open {
    overflow: hidden;
}

/* ===== UTILITY CLASSES ===== */
#videoPlayer:empty {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.1rem;
}

#videoPlayer:empty::after {
    content: 'Loading video...';
}

#caseTitle:empty::after {
    content: 'Loading case information...';
    color: #999;
    font-style: italic;
}

#caseDescription:empty::after {
    content: 'Loading case description...';
    color: #999;
    font-style: italic;
}

/*  */
.pa-container {
    width: 100%;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 10px;
    margin-top: 20px;
}

.pa-button-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.pa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.pa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pa-btn:active {
    transform: translateY(0);
}

.pa-preview-btn {
    background-color: #E0E0E0;
    color: #333;
}

.pa-preview-btn:hover {
    background-color: #d0d0d0;
}

.pa-pay-btn {
    background-color: #4361ee;
    color: white;
}

.pa-pay-btn:hover {
    background-color: #3a56d4;
}

.pa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pa-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pa-modal {
    background-color: white;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pa-modal-overlay.active .pa-modal {
    transform: translateY(0);
}

.pa-modal-header {
    padding: 20px 24px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pa-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.pa-close-icon {
    background: none;
    border: none;
    font-size: 20px;
    color: #777;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pa-close-icon:hover {
    background-color: #f0f0f0;
    color: #333;
}

.pa-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.pa-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.pa-case-details {
    display: grid;
    gap: 16px;
}

.pa-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pa-detail-label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.pa-detail-value {
    color: #333;
    padding: 8px 12px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #4361ee;
}

.pa-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: center;
}

.pa-close-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pa-close-btn:hover {
    background-color: #5a6268;
}

.pa-spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 3px solid #4361ee;
    width: 30px;
    height: 30px;
    animation: pa-spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes pa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pa-error-message {
    background-color: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    border-left: 3px solid #c33;
}

.pa-success-message {
    background-color: #e8f7ef;
    color: #2a8c5a;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    border-left: 3px solid #2a8c5a;
    margin-bottom: 15px;
}

.pa-video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.pa-video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/*  */
.pa-success-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    width: 100%;
    margin: auto !important;
    overflow: hidden;
}

.pa-success-header {
    background: linear-gradient(135deg, #2a8c5a 0%, #3aaf73 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.pa-success-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.pa-success-title {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
    color: #fff;
}

.pa-success-subtitle {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
    color: #f8f8f8;
}

.pa-success-content {
    padding: 30px;
}

.pa-order-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #4361ee;
}

.pa-order-id {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.pa-order-label {
    font-weight: 600;
    color: #555;
}

.pa-order-value {
    color: #333;
    font-weight: 600;
}

.pa-email-notification {
    background-color: #e8f4ff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #4361ee;
}

.pa-email-icon {
    color: #4361ee;
    font-size: 20px;
    flex-shrink: 0;
}

.pa-email-text {
    color: #333;
    line-height: 1.5;
}

.pa-downloads-section {
    margin-bottom: 30px;
}

.pa-section-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pa-section-icon {
    color: #4361ee;
}

.pa-downloads-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pa-download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.pa-download-item:hover {
    background-color: #f0f7ff;
    border-color: #cce0ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.pa-download-info {
    flex-grow: 1;
}

.pa-download-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.pa-download-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.pa-download-size {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pa-download-format {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pa-download-btn {
    background-color: #4361ee;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.pa-download-btn:hover {
    background-color: #3a56d4;
    text-decoration: none;
}

.pa-download-btn:active {
    transform: translateY(0);
}

.pa-success-footer {
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pa-home-btn {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.pa-home-btn:hover {
    background-color: #5a6268;
    text-decoration: none;
}

.pa-print-btn {
    background: none;
    border: 1px solid #6c757d;
    color: #6c757d;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pa-print-btn:hover {
    background-color: #6c757d;
    color: white;
    text-decoration: none;
}

.pa-countdown {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-top: 15px;
    font-style: italic;
}

@media (max-width: 768px) {
    .pa-download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .pa-download-btn {
        align-self: flex-end;
    }
    
    .pa-success-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .pa-home-btn, .pa-print-btn {
        width: 100%;
        text-align: center;
    }
}

@media print {
    .pa-download-btn, .pa-home-btn, .pa-print-btn {
        display: none;
    }
    
    .pa-success-header {
        background: #2a8c5a !important;
        -webkit-print-color-adjust: exact;
    }
}


/* ADMIN CSS */
/* Admin Navbar Styles with adm- prefix */
.adm-navbar {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.adm-navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
}

/* Left Section */
.adm-navbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.adm-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    transition: opacity 0.3s;
}

.adm-logo:hover {
    opacity: 0.9;
}

.adm-logo-icon {
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.adm-logo-text {
    display: flex;
    flex-direction: column;
}

.adm-logo-main {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.adm-logo-subtitle {
    font-size: 11px;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.adm-panel-text {
    font-size: 14px;
    opacity: 0.8;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Center Section - Navigation Menu */
.adm-navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.adm-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px;
}

.adm-nav-item {
    position: relative;
}

.adm-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.adm-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.adm-nav-link.adm-active {
    background: #4361ee;
    color: white;
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.3);
}

.adm-nav-icon {
    font-size: 16px;
}

.adm-nav-text {
    white-space: nowrap;
}

/* Right Section */
.adm-navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.adm-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.adm-user-avatar {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
}

.adm-user-details {
    display: flex;
    flex-direction: column;
}

.adm-user-name {
    font-size: 14px;
    font-weight: 600;
}

.adm-user-role {
    font-size: 12px;
    opacity: 0.7;
}

.adm-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.adm-logout-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.adm-logout-icon {
    font-size: 16px;
}

.adm-logout-text {
    white-space: nowrap;
}

/* Mobile Menu Toggle - IMPORTANT FIX */
.adm-mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.adm-mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu - IMPORTANT FIX */
.adm-mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #1a237e;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    margin: 15px;
}

/* Show mobile menu when active class is added */
.adm-mobile-menu.adm-active {
    transform: translateX(0);
    display: block; /* ADD THIS LINE */
}

.adm-mobile-menu-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.adm-mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.adm-mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.adm-mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.adm-mobile-nav-link:hover,
.adm-mobile-nav-link.adm-active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.adm-mobile-nav-link.adm-active {
    background: #4361ee;
    color: white;
}

.adm-mobile-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 20px;
}

.adm-mobile-user-avatar {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.8);
}

.adm-mobile-user-details {
    display: flex;
    flex-direction: column;
}

.adm-mobile-user-name {
    font-size: 16px;
    font-weight: 600;
}

.adm-mobile-user-role {
    font-size: 14px;
    opacity: 0.7;
}

.adm-mobile-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: auto;
    transition: all 0.3s ease;
}

.adm-mobile-logout-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .adm-panel-text {
        display: none;
    }
}

@media (max-width: 992px) {
    .adm-navbar-center {
        display: none;
    }
    
    .adm-mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .adm-navbar-container {
        padding: 0 15px;
    }
    
    .adm-user-info {
        display: none;
    }
    
    .adm-logout-btn {
        display: none;
    }
    
    .adm-logo-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .adm-navbar-container {
        height: 60px;
    }
    
    .adm-mobile-menu {
        top: 60px;
    }
}

/* ===== Centered Container ===== */
.login-center-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.login-center-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Login Header ===== */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.logo-icon {
    font-size: 2.5rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.login-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #666;
    font-size: 0.95rem;
}

/* ===== Form Styles ===== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-size: 0.9rem;
}

.form-input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
    transform: translateY(-1px);
}

/* ===== Button ===== */
.login-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.login-btn:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== Links ===== */
.login-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.forgot-password {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* ===== Messages ===== */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ===== Loading ===== */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .login-center-container {
        padding: 15px;
        align-items: flex-start;
        padding-top: 60px;
    }
    
    .login-center-card {
        padding: 2.5rem 2rem;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .login-center-container {
        padding: 10px;
        padding-top: 40px;
    }
    
    .login-center-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .logo-icon {
        font-size: 2rem;
    }
}

@media (max-width: 360px) {
    .login-center-card {
        padding: 1.5rem 1.25rem;
    }
}

/*  */
.admin-nav-heading {
    color: var(--dark-text);
    font-weight: 600;
    white-space: nowrap;
    font-family: var(--font-body);
    font-size: 1rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.stat-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.stat-card:hover {
    /* transform: translateY(-5px); */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-card.dashboard::before {
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
}

.stat-card.videos::before {
    background: linear-gradient(90deg, var(--success-color), #1abc9c);
}

.stat-card.contact-actions::before {
    background: linear-gradient(90deg, var(--warning-color), #e67e22);
}

.stat-card.contact-inquiries::before {
    background: linear-gradient(90deg, var(--danger-color), #c0392b);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stat-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-card.dashboard .stat-icon {
    background-color: rgba(52, 152, 219, 0.15);
    color: var(--primary-color);
}

.stat-card.videos .stat-icon {
    background-color: rgba(46, 204, 113, 0.15);
    color: var(--success-color);
}

.stat-card.contact-actions .stat-icon {
    background-color: rgba(243, 156, 18, 0.15);
    color: var(--warning-color);
}

.stat-card.contact-inquiries .stat-icon {
    background-color: rgba(231, 76, 60, 0.15);
    color: var(--danger-color);
}

.stat-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    flex-grow: 1;
}

.stat-item {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-item.today {
    border-left: 4px solid var(--primary-color);
}

.stat-item.total {
    border-left: 4px solid var(--secondary-color);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
}

.stat-card.dashboard .stat-value {
    color: var(--primary-color);
}

.stat-card.videos .stat-value {
    color: var(--success-color);
}

.stat-card.contact-actions .stat-value {
    color: var(--warning-color);
}

.stat-card.contact-inquiries .stat-value {
    color: var(--danger-color);
}

.stat-label {
    font-size: 14px;
    color: #777;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-change {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

.stat-change i {
    margin-right: 4px;
    font-size: 12px;
}

/* Mobile-specific styles */
@media (max-width: 1200px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 18px;
    }
    
    .stat-header {
        margin-bottom: 15px;
    }
    
    .stat-title {
        font-size: 16px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .stat-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .dashboard-stats {
        gap: 12px;
    }
    
    .stat-card {
        padding: 15px;
        border-radius: 10px;
    }
    
    .stat-header {
        margin-bottom: 12px;
    }
    
    .stat-title {
        font-size: 15px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .stat-content {
        gap: 10px;
    }
    
    .stat-item {
        padding: 10px;
        border-radius: 8px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .stat-change {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .stat-value {
        font-size: 20px;
    }
    
    .stat-card {
        padding: 12px;
    }
}

/* Orientation-specific adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-content {
        grid-template-columns: 1fr 1fr;
    }
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: #ccc !important;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    /* box-shadow: var(--shadow-sm); */
}

/* Search Filters */
.search-filters {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 30px;
    border: 1px solid rgba(67, 97, 238, 0.1);
}

.filter-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.filter-header h5{
    font-size: 1.0rem;
}

.filter-header i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 10px;
    font-size: 1.0rem;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form-control, 
.form-select, 
.abtn-form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 8px 16px !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus, 
.form-select:focus, 
.abtn-form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.input-group .btn {
    border-radius: 0 10px 10px 0;
    background: var(--gradient-primary);
    border: none;
    padding: 0 20px;
}

.abtn-btn {
  padding: 12px !important;
  font-size: 0.95rem;
  border: 2px solid var(--border-color) !important;
}

.abtn-input-group {
    padding: 0 !important;
}

/* Table Container */
.table-container {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(67, 97, 238, 0.1);
}

.table-header {
    padding: 25px 30px 0;
    display: flex;
    justify-content: between;
    align-items: center;
}

.table-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.table-responsive {
    overflow-x: auto;
}

.item-table {
    width: 100%;
}

table .item-table td:first-child {
    width: 50% !important;
    min-width: 250px !important;
}

.item-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--primary-color);
    font-weight: 700;
    color: var(--dark-color);
    padding: 18px 20px;
    font-size: 0.9rem;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.item-table td {
    padding: 20px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

.item-table tbody tr {
    transition: all 0.3s ease;
}

.item-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(67, 97, 238, 0.03) 0%, transparent 100%);
}

.item-table tbody tr:hover td {
    border-color: rgba(67, 97, 238, 0.2);
}

.item-thumb {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.item-thumb:hover {
    box-shadow: var(--shadow-md);
}

.item-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.item-description,
.item-created-at {
    color: #6c757d;
    font-size: 0.95rem !important;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-created-at {
    font-size: 0.8rem !important;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.status-active {
    background: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 201, 240, 0.3);
}

.status-inactive {
    background: linear-gradient(135deg, #e63946 0%, #f72585 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-action {
    padding: 8px 12px !important;
    border-radius: 10px;
    font-size: 0.85rem !important;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-edit {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.btn-edit:hover {
    background: var(--primary-color);
    color: white;
}

.btn-delete {
    background: rgba(230, 57, 70, 0.1);
    color: var(--danger-color);
}

.btn-delete:hover {
    background: var(--danger-color);
    color: white;
}

.btn-edit-price {
    background: rgba(227, 237, 226, 0.8);
    color: green;
}

.btn-edit-price:hover {
    background: green;
    color: white;
}

.btn-edit-zip {
    background: rgba(165, 124, 0, 0.1);
    color: #B4843E;
}

.btn-edit-zip:hover {
    background: #B4843E;
    color: white;
}

.btn-disable {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.btn-disable:hover {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

.btn-enable {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.btn-enable:hover {
    background: var(--primary-color);
    color: white;
}

/* Mobile Cards */
.mobile-card {
    display: none;
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    /* overflow: hidden; */
}

.mobile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    /* background: var(--gradient-primary); */
}

.mobile-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0px;
}

.mobile-card-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.mobile-card-thumb {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.mobile-card-body {
    margin-bottom: 15px;
}

.mobile-card-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.mobile-card-meta {
    grid-template-columns: 1fr;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--dark-color);
}

.mobile-card-meta > div {
    white-space: normal;
    word-break: break-word;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.mobile-card-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #e9ecef;
}

.pagination-info {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.pagination {
    margin: 0;
    gap: 8px;
}

.page-item .page-link {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 8px 16px;
    color: var(--dark-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
}

.page-item:not(.active) .page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Loading States */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--dark-color);
}

.loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
}

.empty-state h4 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 20px 25px;
}

.modal-title {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.3rem;
}

.modal-body {
    padding: 25px;
}

.modal-dialog.modal-content {
    align-items: center !important;
    justify-content: center !important; 
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px 25px;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.modal-footer .btn {
  width: 100% !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .item-management {
        padding: 20px 5px;
    }
    
    .page-header {
        padding: 25px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .item-table {
        display: none;
    }

    .mobile-card {
        display: block;
    }

    .pagination-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .page-header .btn {
        width: 100%;
        text-align: center;
    }

    .modal-dialog {
        margin: 5px;
    }
}

@media (max-width: 576px) {
    .item-management {
        padding: 15px 0px;
    }

    .search-filters {
        padding: 20px;
    }

    .mobile-card-meta {
        grid-template-columns: 1fr;
    }

    .mobile-card-actions {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
        text-align: center;
    }

    .modal-body {
        padding: 20px;
    }

     .page-title {
        font-size: 1.4rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .abtn-btn, .abtn-form-control {
        width: 100%;
        margin-top: 6px;
    } 

    .abtn-btn {
        text-align: center !important;
    }

    .btn-action {
        padding: 6px 12px !important;
        font-size: 14px !important;
    }

    .btn-action i {
        font-size: 12px !important;
    }

    .status-badge {
        padding: 2px 14px !important;
        border-radius: 20px;
        font-size: 0.7rem !important;
    }

    .form-control, 
    .abtn-form-control {
        padding: 10px 12px !important;
        font-size: 0.9rem !important;
    }

    .abtn-btn {
        padding: 12px 14px !important;
        font-size: 0.9rem !important;
        background: rgba(67, 97, 238, 0.1);
        border-color: rgba(67, 97, 238, 0.1) !important;
    }

    .modal-footer {
        padding: 0px;
    }

    .modal-footer .btn {
     width: 100% !important;
     margin-bottom: 3px !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/*  */
/* View Details Button Styles */
.view-details-btn {
    background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    line-height: 1;
    min-height: 48px;
}

/* Shine Effect */
.view-details-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

/* Hover States */
.view-details-btn:hover {
    box-shadow: 0 8px 25px rgba(77, 171, 247, 0.35);
    background: linear-gradient(135deg, #339af0 0%, #228be6 100%);
}

.view-details-btn:hover::before {
    left: 100%;
}

/* Active State */
.view-details-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(77, 171, 247, 0.3);
}

/* Focus State for Accessibility */
.view-details-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.3);
}

/* Button Text */
.btn-text {
    position: relative;
    z-index: 2;
    letter-spacing: 0.3px;
}

/* Button Icon */
.btn-icon {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    font-weight: 300;
}

.view-details-btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Loading State */
.view-details-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.view-details-btn.loading .btn-text::after {
    content: '...';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Disabled State */
.view-details-btn:disabled {
    background: linear-gradient(135deg, #adb5bd 0%, #868e96 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.view-details-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.view-details-btn:disabled:hover::before {
    left: -100%;
}

/* Alternative Color Variants */

/* Success Green */
.view-details-btn.success {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
}

.view-details-btn.success:hover {
    background: linear-gradient(135deg, #40c057 0%, #2f9e44 100%);
    box-shadow: 0 8px 25px rgba(64, 192, 87, 0.35);
}

.view-details-btn.success:focus {
    box-shadow: 0 0 0 3px rgba(64, 192, 87, 0.3);
}

/* Premium Purple */
.view-details-btn.premium {
    background: linear-gradient(135deg, #9c36b5 0%, #6741d9 100%);
}

.view-details-btn.premium:hover {
    background: linear-gradient(135deg, #862e9c 0%, #5f3dc4 100%);
    box-shadow: 0 8px 25px rgba(156, 54, 181, 0.35);
}

.view-details-btn.premium:focus {
    box-shadow: 0 0 0 3px rgba(156, 54, 181, 0.3);
}

/* Warning Orange */
.view-details-btn.warning {
    background: linear-gradient(135deg, #ffa94d 0%, #ff922b 100%);
    color: #000000;
}

.view-details-btn.warning:hover {
    background: linear-gradient(135deg, #ff922b 0%, #fd7e14 100%);
    box-shadow: 0 8px 25px rgba(255, 146, 43, 0.35);
}

.view-details-btn.warning:focus {
    box-shadow: 0 0 0 3px rgba(255, 146, 43, 0.3);
}

/* Outline Variant */
.view-details-btn.outline {
    background: transparent;
    color: #4dabf7;
    border: 2px solid #4dabf7;
}

.view-details-btn.outline:hover {
    background: #4dabf7;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(77, 171, 247, 0.25);
}

.view-details-btn.outline.success {
    color: #51cf66;
    border-color: #51cf66;
}

.view-details-btn.outline.success:hover {
    background: #51cf66;
    color: #ffffff;
}

/* Size Variants */
.view-details-btn.small {
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
    min-height: 40px;
    gap: 0.5rem;
}

.view-details-btn.small .btn-icon {
    font-size: 1rem;
}

.view-details-btn.large {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-height: 56px;
    gap: 1rem;
}

.view-details-btn.large .btn-icon {
    font-size: 1.2rem;
}

/* Full Width Variant */
.view-details-btn.full-width {
    width: 100%;
    justify-content: center;
}

/* With Icon Only */
.view-details-btn.icon-only {
    padding: 0.875rem;
    width: 48px;
    height: 48px;
    justify-content: center;
}

.view-details-btn.icon-only .btn-text {
    display: none;
}

.view-details-btn.icon-only .btn-icon {
    transform: none;
    margin: 0;
}

.view-details-btn.icon-only:hover .btn-icon {
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .view-details-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        min-height: 44px;
        gap: 0.625rem;
    }
    
    .view-details-btn .btn-icon {
        font-size: 1rem;
    }
    
    .view-details-btn.large {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-height: 48px;
    }
    
    .view-details-btn.small {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
        min-height: 36px;
    }
}

@media (max-width: 480px) {
    .view-details-btn {
        width: 100%;
        justify-content: center;
    }
    
    .view-details-btn:not(.full-width) {
        max-width: 200px;
    }
}

/* Animation for Button Press */
@keyframes buttonPress {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.view-details-btn:active {
    animation: buttonPress 0.2s ease;
}

/* Ripple Effect (Optional) */
.view-details-btn.ripple {
    position: relative;
    overflow: hidden;
}

.view-details-btn.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.view-details-btn.ripple:active::after {
    width: 300px;
    height: 300px;
}


/*  */
 /* ===== CSS VARIABLES ===== */
:root {
    /* Admin Color Scheme */
    --admin-primary: #2b2d42;
    --admin-secondary: #4361ee;
    --admin-accent: #4cc9f0;
    --admin-light: #f8f9fa;
    --admin-dark: #1a1a2e;
    --admin-success: #2ecc71;
    --admin-warning: #f39c12;
    --admin-danger: #e74c3c;
    
    /* Gradients */
    --admin-gradient: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-dark) 100%);
    --admin-gradient-accent: linear-gradient(135deg, var(--admin-secondary) 0%, var(--admin-accent) 100%);
    
    /* Shadows */
    --admin-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --admin-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --admin-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Borders */
    --admin-border-radius: 10px;
    --admin-border-color: rgba(255, 255, 255, 0.1);
    
    /* Transitions */
    --admin-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #f5f7fb;
    color: #333;
    min-height: 100vh;
}

/* ===== ADMIN NAVBAR ===== */
.admin-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--admin-gradient);
    color: white;
    z-index: 1000;
    box-shadow: var(--admin-shadow-md);
    border-bottom: 1px solid var(--admin-border-color);
}

.admin-navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 70px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== LEFT SECTION: LOGO & ADMIN PANEL TEXT ===== */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: var(--admin-transition);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--admin-gradient-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: var(--admin-transition);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.admin-logo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, white, #e0e7ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    color: #cbd5e1;
    opacity: 0.9;
}

.admin-panel-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    position: relative;
    padding-left: 1.5rem;
    margin-left: 1.5rem;
}

.admin-panel-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 24px;
    background: linear-gradient(to bottom, var(--admin-accent), rgba(76, 201, 240, 0.5));
    border-radius: 1px;
}

/* ===== RIGHT SECTION: USER INFO & LOGOUT ===== */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--admin-border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--admin-transition);
}

.admin-user-info:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--admin-gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.8rem;
    color: #cbd5e1;
    opacity: 0.9;
}

/* ===== LOGOUT BUTTON ===== */
.logout-btn {
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--admin-border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--admin-transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.logout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4);
}

.logout-btn:hover::before {
    left: 100%;
}

.logout-btn:active {
    transform: translateY(0);
}

.logout-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.logout-btn:hover .logout-icon {
    transform: translateX(2px);
}

.logout-text {
    font-size: 0.95rem;
}

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: var(--admin-transition);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--admin-gradient);
    padding: 1.5rem;
    box-shadow: var(--admin-shadow-lg);
    border-top: 1px solid var(--admin-border-color);
    animation: slideDown 0.3s ease;
    z-index: 999;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--admin-border-radius);
}

.mobile-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--admin-gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

.mobile-user-details {
    flex: 1;
}

.mobile-logout-btn {
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--admin-border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--admin-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.mobile-logout-btn:hover {
    background: #c0392b;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .admin-navbar-container {
        padding: 0 1.5rem;
    }
    
    .admin-panel-text {
        font-size: 1.1rem;
    }
    
    .logout-btn .logout-text {
        display: none;
    }
    
    .logout-btn {
        padding: 0.75rem;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .admin-navbar-container {
        padding: 0 1.25rem;
        height: 65px;
    }
    
    .admin-panel-text {
        display: none;
    }
    
    .admin-user-info {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo-main {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
    
    .logout-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .admin-navbar-container {
        padding: 0 1rem;
        height: 60px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    
    .logo-main {
        font-size: 1.1rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }
    
    .mobile-menu-toggle {
        width: 26px;
        height: 20px;
    }
    
    .mobile-menu {
        top: 60px;
    }
}

/* ===== ACCESSIBILITY ===== */
.admin-logo:focus-visible,
.logout-btn:focus-visible,
.mobile-logout-btn:focus-visible,
.mobile-menu-toggle:focus-visible {
    outline: 3px solid var(--admin-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===== MAIN CONTENT AREA ===== */
.admin-content {
    margin-top: 30px;
    padding: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .admin-content {
        margin-top: 65px;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .admin-content {
        margin-top: 60px;
        padding: 1rem;
    }
}

/* ===== DEMO CONTENT STYLES ===== */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: var(--admin-primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: #666;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--admin-border-radius);
    box-shadow: var(--admin-shadow-sm);
    transition: var(--admin-transition);
    border: 1px solid #e9ecef;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--admin-shadow-md);
}

.stat-card h3 {
    color: var(--admin-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--admin-secondary);
    margin-bottom: 0.5rem;
}

.stat-desc {
    color: #666;
    font-size: 0.9rem;
}


/* ABOUT US */
  :root {
    /* Medical/Nursing Theme Colors */
    --primary-blue: #1a73e8;
    --primary-blue-dark: #0d47a1;
    --primary-blue-light: #e8f0fe;
    --nursing-green: #2e7d32;
    --nursing-green-light: #e8f5e9;
    --medical-teal: #00695c;
    --medical-teal-light: #e0f2f1;
    --accent-orange: #ff6d00;
    --accent-orange-light: #fff3e0;
    --text-dark: #2c3e50;
    --text-medium: #546e7a;
    --text-light: #78909c;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
    
    /* Gradients */
    --hero-gradient: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    --card-gradient: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    --success-gradient: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-blue-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    /* background: var(--accent-orange); */
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    color: var(--medical-teal);
}

p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--medical-teal-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%231a73e8' fill-opacity='0.05' d='M44.7,-76.4C58.8,-69.2,71.8,-59.1,79.6,-45.8C87.4,-32.6,90,-16.3,89.8,-0.1C89.7,16.2,86.8,32.4,80.1,46.6C73.4,60.7,62.9,72.8,49.8,80.4C36.7,88,18.3,91,0.7,89.9C-16.9,88.9,-33.7,83.9,-47.5,76.1C-61.3,68.3,-72,57.7,-79.5,44.8C-87,31.9,-91.3,16.9,-91.2,0C-91.1,-16.9,-86.6,-33.8,-78.3,-48.2C-70.1,-62.5,-58.1,-74.4,-44.4,-81.9C-30.6,-89.5,-15.3,-92.7,-0.7,-91.5C13.9,-90.4,27.9,-84.9,44.7,-76.4Z' transform='translate(100 100)'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* ===== MISSION SECTION ===== */
.mission-section {
    padding: 5rem 0;
    background: var(--white);
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mission-statement {
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 500;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 15px;
    border-left: 5px solid var(--accent-orange);
    margin: 2rem 0;
    position: relative;
}

.mission-statement::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-blue);
    opacity: 0.2;
    font-family: serif;
}

/* ===== TEAM SECTION ===== */
.team-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-medium);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.member-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--medical-teal-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.member-image i {
    font-size: 6rem;
    color: var(--primary-blue);
    opacity: 0.3;
}

.member-info {
    padding: 2rem;
}

.member-role {
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.member-description {
    font-size: 1rem;
    color: var(--text-medium);
}

/* ===== VALUES SECTION ===== */
.values-section {
    padding: 5rem 0;
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--light-gray);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.value-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    background: var(--white);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.value-card:nth-child(2) .value-icon {
    background: var(--nursing-green);
}

.value-card:nth-child(3) .value-icon {
    background: var(--medical-teal);
}

.value-card:nth-child(4) .value-icon {
    background: var(--accent-orange);
}

/* ===== SCHOOLS SECTION ===== */
.schools-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--nursing-green-light) 0%, var(--primary-blue-light) 100%);
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.school-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.school-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.school-logo {
    width: 100px;
    height: 100px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.school-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.school-stat {
    text-align: center;
}

.school-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.school-stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 5rem 0;
    background: var(--hero-gradient);
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn, 
.abtn-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.abtn-btn{
 border-radius: 12px;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--white);
}

.btn-primary:hover {
    background: #e65100;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 109, 0, 0.3);
}

.btn-secondary {
    background: #ccc !important;
    color: var(--white);
    border-color: #ccc !important;
}

.btn-secondary:hover {
    transform: translateY(-3px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .team-grid,
    .values-grid,
    .schools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .team-grid,
    .values-grid,
    .schools-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .mission-section,
    .team-section,
    .values-section,
    .schools-section,
    .cta-section {
        padding: 3rem 0;
    }
    
    .hero-stats {
        justify-content: space-between;
    }
    
    .stat-item {
        flex: 1;
        min-width: 120px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/*  */
  /* ===== CSS VARIABLES ===== */
:root {
    /* Medical/Nursing Theme Colors */
    --primary-blue: #1a73e8;
    --primary-blue-dark: #0d47a1;
    --primary-blue-light: #e8f0fe;
    --nursing-green: #2e7d32;
    --nursing-green-light: #e8f5e9;
    --medical-teal: #00695c;
    --medical-teal-light: #e0f2f1;
    --accent-orange: #ff6d00;
    --accent-orange-light: #fff3e0;
    --text-dark: #2c3e50;
    --text-medium: #546e7a;
    --text-light: #78909c;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
    
    /* Gradients */
    --hero-gradient: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    --card-gradient: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    --success-gradient: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-blue-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    /* background: var(--accent-orange); */
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    color: var(--medical-teal);
}

p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--medical-teal-light) 100%);
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%231a73e8' fill-opacity='0.05' d='M44.7,-76.4C58.8,-69.2,71.8,-59.1,79.6,-45.8C87.4,-32.6,90,-16.3,89.8,-0.1C89.7,16.2,86.8,32.4,80.1,46.6C73.4,60.7,62.9,72.8,49.8,80.4C36.7,88,18.3,91,0.7,89.9C-16.9,88.9,-33.7,83.9,-47.5,76.1C-61.3,68.3,-72,57.7,-79.5,44.8C-87,31.9,-91.3,16.9,-91.2,0C-91.1,-16.9,-86.6,-33.8,-78.3,-48.2C-70.1,-62.5,-58.1,-74.4,-44.4,-81.9C-30.6,-89.5,-15.3,-92.7,-0.7,-91.5C13.9,-90.4,27.9,-84.9,44.7,-76.4Z' transform='translate(100 100)'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    font-weight: 500;
}

/* ===== CONTACT GRID ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ===== CONTACT INFO CARDS ===== */
.contact-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    position: relative;
    /* overflow: hidden; */
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue-light);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-orange);
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-blue-dark);
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.contact-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.contact-link:hover {
    color: var(--accent-orange);
}

.business-hours {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.hours-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.hours-list {
    list-style: none;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

/* ===== CONTACT FORM ===== */
.contact-form-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: var(--light-gray);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
    background: var(--white);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23546e7a' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 16px;
    padding-right: 3rem;
}

.abtn-form-control {
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: var(--light-gray);
}

.abtn-form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
    background: var(--white);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-blue);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.form-check-label a {
    color: var(--primary-blue);
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    border: none;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* ===== RESPONSE TIME BANNER ===== */
.response-banner {
    /* background: linear-gradient(135deg, var(--nursing-green-light) 0%, var(--medical-teal-light) 100%); */
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.response-icon {
    width: 60px;
    height: 60px;
    background: var(--nursing-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.response-content h4 {
    color: var(--nursing-green);
    margin-bottom: 0.5rem;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.faq-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 1.5rem;
    background: var(--primary-blue-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h4 {
    color: var(--primary-blue-dark);
    margin: 0;
}

.faq-icon {
    color: var(--primary-blue);
    transition: var(--transition-smooth);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 5rem 0;
    margin-bottom: 30px;
    background: var(--hero-gradient);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-content h2::after {
    background: var(--accent-orange);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-secondary {
    background: #ccc !important;
    color: var(--white);
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .contact-card,
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .response-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .contact-section,
    .faq-section {
        padding: 3rem 0;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== SUCCESS MESSAGE ===== */
.success-message {
    display: none;
    background: var(--nursing-green-light);
    border-left: 4px solid var(--nursing-green);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.3s ease;
}

.success-message.show {
    display: block;
}

.success-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.success-icon {
    color: var(--nursing-green);
    font-size: 1.5rem;
    flex-shrink: 0;
}


/*  */
/* Hero Section */
.hero-section {
    padding: 4rem 0 3rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    color: #1a365d;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 2rem 1.2rem 4rem;
    border-radius: 12px;
}

/* Response Banner */
.response-banner {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(26, 115, 232, 0.1);
    border: 1px solid rgba(26, 115, 232, 0.15);
    max-width: 900px;
    margin: 0 auto;
}

.banner-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(26, 115, 232, 0.1);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.2);
}

.banner-title {
    font-size: 1.8rem;
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.banner-subtitle {
    color: #4a5568;
    font-size: 1.1rem;
}

/* Response Details */
.response-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .response-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Response Time */
.response-time {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.time-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.time-item:last-child {
    border-bottom: none;
}

.time-label {
    color: #4a5568;
    font-weight: 500;
    font-size: 1rem;
}

.time-value {
    color: #1a73e8;
    font-weight: 600;
    font-size: 1.1rem;
    background: #e8f0fe;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

/* Contact Info */
.contact-method {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.method-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.method-header i {
    color: #1a73e8;
    font-size: 1.3rem;
}

.method-header h4 {
    color: #1a365d;
    font-size: 1.3rem;
    margin: 0;
}

.contact-method p {
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    background: #e8f0fe;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Animation */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Text Center Utility */
.text-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .response-banner {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .banner-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .banner-title {
        font-size: 1.5rem;
    }

    .banner-subtitle {
        font-size: 1rem;
    }

    .icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .response-banner {
        padding: 1.25rem;
    }

    .time-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .email-link {
        width: 100%;
        justify-content: center;
    }
}

/*  */
/* Base component styles */
.am-page-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 10px;
}

.am-fade-in {
    animation: am-fade-in 0.5s ease-in-out;
}

@keyframes am-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.am-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.am-page-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
}

.am-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-size: 0.875rem;
}

.am-btn-primary {
    background-color: #3b82f6;
    color: white;
}

.am-btn-primary:hover {
    background-color: #2563eb;
}

/* Utility class */
.am-me-2 {
    margin-right: 0.5rem;
}

/* Tablet: 768px and up */
@media (min-width: 768px) {
    .am-page-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .am-page-title {
        font-size: 1.75rem;
    }
    
    .am-page-subtitle {
        font-size: 0.9375rem;
    }
    
    .am-btn {
        width: auto;
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Desktop: 1024px and up */
@media (min-width: 1024px) {
    .am-page-header {
        padding: 1.5rem 2rem;
    }
    
    .am-page-title {
        font-size: 1.875rem;
    }
    
    .am-page-subtitle {
        font-size: 1rem;
    }
    
    .am-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Large Desktop: 1280px and up */
@media (min-width: 1280px) {
    .am-page-header {
        padding: 1.75rem 2.5rem;
    }
    
    .am-page-title {
        font-size: 2rem;
    }
}

/* Small Mobile: 375px and below */
@media (max-width: 375px) {
    .am-page-header {
        padding: 0.75rem;
        gap: 1rem;
    }
    
    .am-page-title {
        font-size: 1.25rem;
    }
    
    .am-page-subtitle {
        font-size: 0.8125rem;
    }
    
    .am-btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* Accessibility: Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .am-fade-in {
        animation: none;
        opacity: 1;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .am-page-header {
        background-color: #1f2937;
        border-bottom-color: #374151;
    }
    
    .am-page-title {
        color: #f9fafb;
    }
    
    .am-page-subtitle {
        color: #d1d5db;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .am-page-header {
        padding: 0.75rem;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .am-btn {
        width: auto;
        min-width: 160px;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .am-btn {
        border: 0.5px solid transparent;
    }
}

/*  */


 /* Additional styles for pagination and lazy loading */
    .load-more-container {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        padding: 30px 0;
    }

    .load-more-btn {
        padding: 12px 24px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s;
    }

    .load-more-btn:hover:not(:disabled) {
        background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    }

    .load-more-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* Video player styles */
    .video-container {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%;
        height: 0;
        overflow: hidden;
        background: #000;
        border-radius: 8px 8px 0 0;
    }

    .video-thumbnail-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
        transition: opacity 0.3s;
    }

    .video-thumbnail-wrapper:hover {
        opacity: 0.9;
    }

    .video-thumbnail {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .play-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 48px;
        color: white;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
        transition: transform 0.3s;
        pointer-events: none;
    }

    .video-thumbnail-wrapper:hover .play-button {
        transform: translate(-50%, -50%) scale(1.1);
    }

    .video-iframe-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: none;
    }

    .video-frame {
        width: 100%;
        height: 100%;
        border: none;
    }

    .video-close-button {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(0,0,0,0.7);
        color: white;
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        cursor: pointer;
        font-size: 16px;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s;
    }

    .video-close-button:hover {
        background: rgba(255,0,0,0.8);
    }

    .video-placeholder {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        color: #666;
        padding: 20px;
        text-align: center;
    }

    .video-placeholder a {
        margin-top: 10px;
        color: #ff0000;
        text-decoration: none;
        font-weight: bold;
        padding: 8px 16px;
        border: 2px solid #ff0000;
        border-radius: 6px;
        transition: all 0.3s;
    }

    .video-placeholder a:hover {
        background: #ff0000;
        color: white;
        text-decoration: none;
    }

    .template-card.video-playing {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        z-index: 10;
    }

    /* Lazy loading placeholder */
    img.lazy {
        background: #f5f5f5;
        min-height: 180px;
    }

    /* Grid layout - adjust based on your existing grid */
    .templates-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    @media (max-width: 768px) {
        .templates-grid {
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 16px;
        }
    }

    @media (max-width: 480px) {
        .templates-grid {
            grid-template-columns: 1fr;
            gap: 12px;
        }
    }


    /*  */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    margin-top: 8px;
}

.search-dropdown.active {
    display: block;
}


/*  */

   /* Search dropdown styling */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-dropdown.active {
    display: block;
}

.search-result-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8f9fa;
    padding-left: 25px;
}

.search-result-title {
    flex: 1;
    font-size: 15px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 15px;
}

.search-result-action {
    font-size: 13px;
    color: #667eea;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.search-result-item:hover .search-result-action {
    opacity: 1;
    transform: translateX(0);
}

/* Loading spinner for search items */
.search-result-item .loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

/* Grid layout for 4 columns */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 30px;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .templates-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .templates-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0;
    }
}

/* Loading state - spans full width */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error message - spans full width */
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

/* No videos message - spans full width */
.no-videos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* Pagination container - spans full width */
.pagination-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #eee;
}

/* Pagination buttons */
.pagination-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    color: #333;
}

.pagination-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

.pagination-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/*  */
.c-border{
    border: 1px solid red !important;
}


/*  */
/* Main container */
.ftr-main-container {
    max-width: 800px;
    margin: 100px auto 80px;
    padding: 20px;
}

.ftr-main-container h1 {
    color: #1a365d;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.ftr-content-block {
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #fff;
    font-size: 1rem;
}

/* Middle div styling */
.ftr-middle-block {
    background-color: #e6f0ff; /* or #dbeafe */
    border-color: #93c5fd;
    padding: 28px; /* Slightly larger padding */
}

/* Text alignment classes */
.ftr-text-left { text-align: left; }
.ftr-text-center { text-align: center; }
.ftr-text-right { text-align: right; }

/* Button styling */
.ftr-help-button {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 24px;
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.ftr-help-button:hover {
    background-color: #1d4ed8;
}

.ftr-button-container {
    text-align: center;
}

/* Center Section - Navigation Menu */
.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link.active {
    background: #4361ee;
    color: white;
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.3);
}

.nav-icon {
    font-size: 16px;
}

.nav-text {
    white-space: nowrap;
}


/*  */
.pa-case-details {
    max-width: 100%;
}

.pa-text-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pa-case-title {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

.pa-meta-info {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
    flex-wrap: wrap;
}

.pa-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.pa-meta-item i {
    color: #4361ee;
}

.pa-description-title {
    margin: 0 0 15px 0;
    color: #444;
    font-size: 18px;
    font-weight: 600;
}

.pa-description-content {
    color: #555;
    line-height: 1.6;
    font-size: 15px;
    white-space: pre-line;
}

/* Full Width Gallery Styles */
.pa-full-gallery {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pa-gallery-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eaeaea;
    background: #f8f9fa;
}

.pa-gallery-title {
    margin: 0;
    color: #444;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pa-gallery-title i {
    color: #4361ee;
}

.pa-full-grid {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pa-full-image-item {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e1e5e9;
    background: white;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pa-full-image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.pa-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.pa-full-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.pa-image-container:hover .pa-full-image {
    transform: scale(1.02);
}

.pa-image-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;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
}

.pa-image-container:hover .pa-image-overlay {
    opacity: 1;
}

.pa-overlay-content {
    color: white;
    text-align: center;
    transform: translateY(10px);
    transition: transform 0.3s;
}

.pa-image-container:hover .pa-overlay-content {
    transform: translateY(0);
}

.pa-overlay-content i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.pa-overlay-content span {
    font-size: 14px;
    display: block;
}

.pa-image-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eaeaea;
}

.pa-image-name {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.pa-image-number {
    font-size: 12px;
    color: #888;
    background: #eaeaea;
    padding: 4px 10px;
    border-radius: 12px;
}

.pa-full-gallery-nav {
    padding: 20px 30px;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.pa-full-prev,
.pa-full-next {
    background: #4361ee;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

.pa-full-prev:hover,
.pa-full-next:hover {
    background: #3a56d4;
}

.pa-full-prev:disabled,
.pa-full-next:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.pa-gallery-dots {
    display: flex;
    gap: 8px;
}

.pa-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.pa-dot.active {
    background: #4361ee;
}

.pa-dot:hover {
    background: #bbb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pa-text-section {
        padding: 20px;
    }
    
    .pa-case-title {
        font-size: 24px;
    }
    
    .pa-meta-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .pa-image-container {
        height: 300px;
    }
    
    .pa-full-grid {
        padding: 20px;
        gap: 20px;
    }
    
    .pa-image-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .pa-full-gallery-nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .pa-full-prev,
    .pa-full-next {
        width: 100%;
        justify-content: center;
    }
}


/*  */
.pa-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.pa-lightbox.active {
    display: flex;
    opacity: 1;
}

.pa-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.pa-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.pa-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

.pa-lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    padding: 10px;
    font-size: 14px;
}


/*  */
.pa-terms-section {
    margin-top: 25px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e1e5e9;
}

.pa-terms-header {
    margin-bottom: 15px;
}

.pa-terms-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.pa-terms-title i {
    color: #4361ee;
}

.pa-select-all-container {
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #e1e5e9;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.pa-select-all-container:hover {
    border-color: #4361ee;
    background: #f0f7ff;
    cursor: pointer;
}

.pa-select-all-container.active {
    border-color: #2a8c5a;
    background: #f0f9f4;
}

.pa-select-all-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.pa-select-all-checkbox {
    display: none;
}

.pa-select-all-checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #4361ee;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    background: white;
    transition: all 0.3s ease;
}

.pa-select-all-checkbox:checked + .pa-select-all-checkmark {
    background-color: #2a8c5a;
    border-color: #2a8c5a;
}

.pa-select-all-checkbox:checked + .pa-select-all-checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 11px;
    font-weight: bold;
}

.pa-select-all-text {
    color: #4361ee;
    font-size: 14px;
    font-weight: 600;
}

.pa-terms-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.pa-term-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
}

.pa-term-item:hover {
    border-color: #4361ee;
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.1);
}

.pa-term-item.selected {
    border-color: #2a8c5a;
    background: #f0f9f4;
    border-width: 2px;
}

.pa-term-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.pa-term-text {
    color: #444;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.pa-term-number {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #f0f0f0;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
    color: #666;
}

.pa-term-item.selected .pa-term-number {
    background: #2a8c5a;
    color: white;
}

.pa-term-tick {
    width: 24px;
    height: 24px;
    border: 2px solid #e1e5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pa-term-item.selected .pa-term-tick {
    background: #2a8c5a;
    border-color: #2a8c5a;
    color: white;
}

.pa-terms-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
}

.pa-terms-link {
    color: #4361ee;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.pa-terms-link:hover {
    color: #3a56d4;
    text-decoration: underline;
}

.pa-terms-link i {
    font-size: 12px;
}

.pa-terms-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #dc3545;
    font-weight: 500;
}

.pa-terms-status.completed {
    color: #2a8c5a;
}

.pa-terms-status i {
    font-size: 14px;
}

.pa-terms-status.completed i {
    color: #2a8c5a;
}

/* Disabled button style */
.pa-pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #6c757d !important;
}

.pa-pay-btn:disabled:hover {
    background: #6c757d !important;
    transform: none;
}

/* Enabled button style */
.pa-pay-btn:not(:disabled) {
    background: #2a8c5a;
}

.pa-pay-btn:not(:disabled):hover {
    background: #248053;
}

/* Responsive design */
@media (max-width: 768px) {
    .pa-terms-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pa-term-text {
        font-size: 13px;
    }
    
    .pa-term-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pa-term-tick {
        align-self: flex-start;
    }
}


/*  */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.payment-spinner {
    animation: spin 1s linear infinite;
}

/*  */
    /* Form styling */
    .form-label {
        font-weight: 500;
        margin-bottom: 0.5rem;
        color: #333;
    }
    
    .form-control, .form-select {
        border: 1px solid #e1e5e9;
        border-radius: 8px;
        padding: 10px 15px;
        transition: all 0.3s ease;
    }
    
    .form-control:focus, .form-select:focus {
        border-color: #4361ee;
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    }
    
    /* Current uploads container */
    .current-uploads-container {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 15px;
        border: 1px dashed #dee2e6;
        min-height: 100px;
    }
    
    .uploaded-images-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
        margin-top: 10px;
    }
    
    .uploaded-image-item {
        position: relative;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        padding: 5px;
    }
    
    .uploaded-image-item:hover {
        box-shadow: var(--shadow-hover);
    }

    .uploaded-image-item img {
        width: 100%;
        height: auto;
        max-height: 240px;
        object-fit: cover;
        display: block;
    }
    
    .uploaded-image-name {
        font-size: 10px;
        padding: 4px;
        background: rgba(0,0,0,0.7);
        color: white;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .uploaded-image-remove {
        position: absolute;
        top: 5px;
        right: 5px;
        background: rgba(220, 53, 69, 0.9);
        color: white;
        border: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        font-size: 10px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .remove-image-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #666;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-right: 20px;
    margin-top: 20px;
    cursor: pointer;
}

.remove-image-btn:hover {
    background: #dc3545;
    color: white;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
    transform: translate(50%, -50%) scale(1.1);
}

.remove-image-btn i {
    line-height: 1;
}

    /* Table styling for images */
    .item-images {
        margin-top: 5px;
        color: #666;
        font-size: 16px !important;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .item-images i {
        color: #4361ee;
    }
    
    .mobile-card-images {
        margin: 8px 0;
        color: #666;
        font-size: 13px;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .mobile-card-images i {
        color: #4361ee;
    }
    
    /* Action buttons */
    .btn-view {
        background-color: rgb(23, 162, 184, 0.1);
        color: #17a2b8;
    }
    
    .btn-view:hover {
        background-color: #138496;
        color: white;
    }
    
    .btn-preview {
      background: rgba(100, 149, 237, 0.1);
      color: #6495ED;
    }

    .btn-preview:hover {
      background: #6495ED;
      color: white;
    }

    /* Modal styling */
    .modal-content {
        border-radius: 12px;
        border: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    
    .modal-header {
        border-bottom: 1px solid #e1e5e9;
        padding: 20px 30px;
    }
    
    .modal-body {
        padding: 25px 30px;
    }
    
    .modal-footer {
        border-top: 1px solid #e1e5e9;
        padding: 20px 30px;
    }
    
    .modal-title {
        font-weight: 600;
        color: #333;
    }
    
    /* Button styling */
    .btn-primary {
        background: linear-gradient(135deg, #4361ee, #3a56d4);
        border: none;
        padding: 10px 20px;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .btn-primary:hover {
        background: linear-gradient(135deg, #3a56d4, #2f4ac8);
        transform: translateY(-1px);
    }
    
    .btn-secondary {
        background: #6c757d;
        border: none;
        padding: 10px 20px;
        font-weight: 500;
    }
    
    .btn-secondary:hover {
        background: #5a6268;
    }
    
    /* Required field indicator */
    .required::after {
        content: " *";
        color: #dc3545;
    }
    
    /* Loading state */
    .loading {
        text-align: center;
        padding: 40px;
        color: #666;
    }
    
    .loading i {
        font-size: 24px;
        margin-bottom: 10px;
        color: #4361ee;
    }
    
    /* Empty state */
    .empty-state {
        text-align: center;
        padding: 40px 20px;
        color: #666;
    }
    
    .empty-state i {
        font-size: 48px;
        margin-bottom: 20px;
        color: #adb5bd;
    }
    
    .empty-state h4 {
        color: #495057;
        margin-bottom: 10px;
    }
    
    /* Responsive design */
    @media (max-width: 768px) {
        .modal-dialog {
            margin: 10px;
        }
        
        .modal-body, .modal-header, .modal-footer {
            padding: 15px 20px;
        }
        
        .uploaded-images-grid {
            grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        }
    }

    /*  */
    /* Video dropdown styling */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-select option {
    padding: 10px;
    white-space: normal;
}

/* Loading and error states */
.loading-videos {
    color: #4361ee;
    font-size: 14px;
}

.error-videos {
    font-size: 14px;
}

/* Video option styling */
.video-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
}

.video-option-icon {
    color: #4361ee;
    font-size: 14px;
}

.video-option-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-option-id {
    color: #666;
    font-size: 12px;
    background: #f1f3f5;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Searchable dropdown enhancement */
.video-search-container {
    position: relative;
    margin-bottom: 10px;
}

.video-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
}

.video-search-input:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/*  */
/* Video dropdown styling for edit modal */
.video-search-container {
    position: relative;
    margin-bottom: 10px;
}

.video-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.video-search-input:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.video-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.video-info .btn-link {
    color: #4361ee;
    text-decoration: none;
    font-size: 13px;
}

.video-info .btn-link:hover {
    color: #3a56d4;
    text-decoration: underline;
}

.current-video-info {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enhanced select styling */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Loading animation */
.loading-videos {
    color: #4361ee;
    font-size: 14px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.error-videos {
    font-size: 14px;
}

/*  */
.payment-container {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.payment-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4361ee, #3a0ca3, #7209b7);
}

.form-group {
    margin-bottom: 30px;
}

.amount-label {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 700;
    color: #333;
    font-size: 18px;
}

.amount-label i {
    margin-right: 12px;
    color: #4361ee;
    font-size: 22px;
}

.amount-display {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 12px;
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    color: #2b2d42;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
    box-shadow: 
        inset 0 4px 8px rgba(0, 0, 0, 0.05),
        0 6px 15px rgba(67, 97, 238, 0.15);
    letter-spacing: 1px;
    position: relative;
    cursor: default;
    user-select: none;
    transition: all 0.3s ease;
}

.amount-display:hover {
    transform: translateY(-3px);
    box-shadow: 
        inset 0 4px 8px rgba(0, 0, 0, 0.05),
        0 10px 20px rgba(67, 97, 238, 0.2);
}

.amount-display:focus {
    outline: none;
    animation: pulse 1.5s infinite;
}

.currency-symbol {
    color: #4361ee;
    font-size: 32px;
    margin-right: 5px;
}

.decoration {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.decoration-1 {
    background-color: #4361ee;
    top: -50px;
    right: -50px;
}

.decoration-2 {
    background-color: #7209b7;
    bottom: -70px;
    left: -70px;
    width: 180px;
    height: 180px;
}

@keyframes pulse {
    0% { box-shadow: 0 6px 15px rgba(67, 97, 238, 0.15); }
    50% { box-shadow: 0 6px 25px rgba(67, 97, 238, 0.3); }
    100% { box-shadow: 0 6px 15px rgba(67, 97, 238, 0.15); }
}

@media (max-width: 600px) {
    .payment-container {
        padding: 30px 25px;
    }
    
    .amount-display {
        font-size: 32px;
        padding: 18px;
    }
    
    .currency-symbol {
        font-size: 28px;
    }
}


/*  */
.payment-form-container {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.payment-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4361ee, #3a0ca3, #7209b7);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: #2b2d42;
    margin-bottom: 8px;
    font-size: 28px;
}

.form-header p {
    color: #666;
    font-size: 16px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    color: #444;
    font-size: 16px;
}

.form-label i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.amount-label i {
    color: #4361ee;
}

.amount-display-container {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 12px;
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    color: #2b2d42;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
    letter-spacing: 1px;
    position: relative;
    cursor: default;
    user-select: none;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.currency-symbol {
    color: #4361ee;
    font-size: 32px;
    margin-right: 5px;
}

.form-input {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
}

.form-input:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    background-color: white;
}

.email-label i {
    color: #4cc9f0;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #4361ee, #3a56d4);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.25);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.35);
    background: linear-gradient(135deg, #3a56d4, #2e48c9);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.2);
}

.security-notice {
    text-align: center;
    margin-top: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    color: #666;
    font-size: 14px;
    border-left: 4px solid #4cc9f0;
}

.security-notice i {
    color: #4361ee;
    margin-right: 8px;
}

.paystack-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #00a859, #00b894);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.decoration {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.decoration-1 {
    background-color: #4361ee;
    top: -50px;
    right: -50px;
}

.decoration-2 {
    background-color: #7209b7;
    bottom: -70px;
    left: -70px;
    width: 180px;
    height: 180px;
}

@keyframes pulse {
    0% { box-shadow: 0 6px 15px rgba(67, 97, 238, 0.15); }
    50% { box-shadow: 0 6px 25px rgba(67, 97, 238, 0.3); }
    100% { box-shadow: 0 6px 15px rgba(67, 97, 238, 0.15); }
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .payment-form-container {
        padding: 30px 25px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .amount-display-container {
        font-size: 32px;
        padding: 18px;
    }
    
    .currency-symbol {
        font-size: 28px;
    }
    
    .submit-btn {
        padding: 16px;
        font-size: 16px;
    }
}

/*  */
/* File upload styling */
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.file-upload-area:hover {
    border-color: #4361ee;
    background-color: #f0f4ff;
}

.file-upload-area.dragover {
    border-color: #4361ee;
    background-color: #e8eeff;
}

/* Modal responsive adjustments */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-footer .row {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer .col-md-6 {
        width: 100% !important;
    }
}

/* Loading spinner */
.spinner-border {
    vertical-align: middle;
}

/*  */
  .empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
    max-width: 400px;
    margin: 2rem auto;
  }
  
  .empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
  }
  
  .empty-state h3 {
    margin: 0.5rem 0;
    color: #343a40;
  }
  
  .empty-state p {
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }
  
  .primary-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 1.0rem 2.0rem !important;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
  }
  
  .primary-button:hover {
    background: #0056b3;
  }

/*  */
.ftr-container {
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

.ftr-header {
    text-align: center;
    padding-bottom: 10px;
}

.ftr-last-updated {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 24px;
}

.ftr-welcome-section {
    background: #f1f5f9;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 32px;
    border-left: 4px solid #2563eb;
}

.ftr-section-title {
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    padding-top: 8px;
}

.ftr-section {
    margin-bottom: 32px;
}

.ftr-section-subtitle {
    color: #2563eb;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.ftr-paragraph {
    margin-bottom: 16px;
    color: #475569;
}

.ftr-list-item {
    margin-bottom: 24px;
    padding-left: 20px;
    position: relative;
}

.ftr-list-item strong {
    color: #1e293b;
}

.ftr-list-item::before {
    content: "•";
    color: #2563eb;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.ftr-numbered-list {
    list-style-type: decimal;
    padding-left: 24px;
    margin-bottom: 24px;
}

.ftr-numbered-list li {
    margin-bottom: 16px;
    padding-left: 8px;
}

.ftr-highlight-box {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    padding: 16px;
    margin: 20px 0;
}

.ftr-contact-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-blue) 100%);
    color: white !important;
    padding: 32px;
    border-radius: 12px;
    margin-top: 40px;
    text-align: center;
}

.ftr-contact-title {
    color: white;
    margin-bottom: 16px;
}

.ftr-contact-email {
    display: inline-block;
    background: white;
    color: #2563eb;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 16px;
    transition: transform 0.2s;
}

.ftr-contact-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ftr-acceptance-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid #e2e8f0;
}

.ftr-acceptance-box {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 16px;
}

/* Button styles with ftr- prefix */
.ftr-btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.ftr-btn-primary {
    background-color: #4dabf7;
    color: white;
}

.ftr-btn-secondary {
    background-color: #e9ecef;
    color: #495057;
}

/* Responsive styles */
@media (max-width: 768px) {
    .ftr-container {
        padding: 24px;
        margin: 0;
    }
    
    .ftr-section {
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .ftr-container {
        padding: 20px;
    }
    
    .ftr-header {
        padding-bottom: 20px;
        margin-bottom: 30px;
    }
    
    .ftr-contact-section {
        padding: 24px 16px;
    }
    
    .ftr-contact-email {
        width: 100%;
        text-align: center;
    }
    
    .ftr-acceptance-box {
        width: 100%;
    }
}

/* Print styles */
@media print {  
    .ftr-container {
        box-shadow: none;
        max-width: 100%;
    }
    
    .ftr-contact-email, .ftr-acceptance-box {
        border: 2px solid #000;
    }
    
    .ftr-contact-section {
        background: #f1f5f9 !important;
        color: #000 !important;
    }
    
    .ftr-contact-title {
        color: #000 !important;
    }
}

/* Animation classes */
.ftr-fade-in {
    animation: ftr-fadeIn 0.5s ease-in;
}

@keyframes ftr-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ftr-pulse {
    animation: ftr-pulse 2s infinite;
}

@keyframes ftr-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


/*  */
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.file-upload-area:hover {
    border-color: #4361ee;
    background: #f0f4ff;
}

.file-upload-area.dragover {
    border-color: #4361ee;
    background: #e8eeff;
    transform: scale(1.01);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

/*  */
/* Responsive display classes */
.desktop-view {
    display: block;
}

.mobile-view {
    display: none;
}

/* Show/hide based on screen size */
@media (max-width: 768px) {
    .desktop-view {
        display: none !important;
    }
    
    .mobile-view {
        display: block !important;
    }
    
    /* Adjust mobile cards */
    #mobileCardsContainer .card {
        border: 1px solid #dee2e6;
        margin-bottom: 1rem;
    }
    
    /* Adjust mobile buttons */
    .mobile-buttons {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .mobile-buttons .btn {
        flex: 1;
        min-width: 60px;
    }
}

/* Desktop table adjustments */
@media (min-width: 769px) {
    .table-container {
        overflow-x: auto;
    }
    
    .item-table {
        width: 100%;
        border-collapse: collapse;
    }
    
    /* Hide mobile container on desktop */
    #mobileCardsContainer {
        display: none !important;
    }
}

/* Mobile-specific styles */
.mobile-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.mobile-card-title {
    font-weight: bold;
    font-size: 1rem;
    margin: 0;
    flex: 1;
}

.mobile-card-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.mobile-card-body {
    margin-bottom: 0.75rem;
}

.mobile-card-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.mobile-card-meta {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mobile-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Fix modal responsiveness */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-footer .row {
        margin: 0 -0.5rem;
    }
    
    .modal-footer .col-md-6 {
        padding: 0 0.5rem;
    }
}

/* Fix image previews on mobile */
.preview-item {
    position: relative;
    margin-bottom: 1rem;
}

.preview-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.remove-preview {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    z-index: 10;
}