/* ================================
   Modern Web App Design Styles
   Mobile-First Responsive Design
   ================================ */

/* === Root Variables === */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --success-color: #06d6a0;
    --danger-color: #ef476f;
    --warning-color: #ffc300;
    --info-color: #4cc9f0;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Global Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* === Navbar Modern Design - Compact === */
.navbar {
    /* Main navbar styling now controlled by includes/theme_colors.php */
    /* This prevents CSS conflicts and ensures proper positioning */
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.35rem 0;
    min-height: 55px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.25rem 0;
}

.navbar-brand img {
    border-radius: 6px;
    height: 35px !important;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 14px !important;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
}

.nav-link i {
    font-size: 0.9rem;
    margin-right: 4px;
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

/* === Cards === */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1.25rem;
}

/* === Buttons === */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 24px;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    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;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #00b894 100%);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #d63031 100%);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #f39c12 100%);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #0984e3 100%);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* === Feature Cards === */
.feature-card {
    background: white;
    padding: 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.feature-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 3px 10px rgba(67, 97, 238, 0.25);
}

/* === Fee Cards === */
.fee-card {
    transition: var(--transition);
}

.fee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.fee-card .card-header {
    padding: 0.5rem 0.75rem;
}

.fee-card .card-header h5 {
    font-size: 1rem;
    margin: 0;
}

.fee-card .card-body {
    padding: 1rem;
}

.fee-amount h2 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.fee-amount p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.fee-card .card-footer {
    padding: 0.75rem;
}

.fee-card p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.fee-card small {
    font-size: 0.8rem;
}

/* === Tables === */
.table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    border: none;
    padding: 1rem;
    color: var(--dark-color);
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: rgba(67, 97, 238, 0.05);
    transform: scale(1.01);
}

.table-responsive {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* === Badges === */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* === Forms === */
.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* === Alerts === */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--box-shadow);
    border-left: 4px solid;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left-color: var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left-color: var(--danger-color);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left-color: var(--warning-color);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left-color: var(--info-color);
}

/* === Sidebar (Admin/Student Panel) === */
.sidebar {
    background: linear-gradient(180deg, #2b2d42 0%, #1a1b2e 100%);
    min-height: calc(100vh - 56px);
    padding: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 15px 20px;
    margin: 5px 10px;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.sidebar .nav-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* === Dashboard Stats Cards === */
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-card.success {
    background: linear-gradient(135deg, var(--success-color) 0%, #00b894 100%);
}

.stat-card.danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #d63031 100%);
}

.stat-card.warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #f39c12 100%);
}

.stat-card.info {
    background: linear-gradient(135deg, var(--info-color) 0%, #0984e3 100%);
}

/* === Modal === */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-footer {
    border-top: none;
    padding: 1.5rem;
}

/* === Footer === */
footer {
    background: linear-gradient(135deg, #2b2d42 0%, #1a1b2e 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* === Breadcrumb === */
.breadcrumb {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

/* === Loading Spinner === */
.spinner-border {
    border-width: 3px;
}

/* === Pagination === */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 4px;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

/* === Responsive Design === */

/* Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Tablet (768px to 1199px) */
@media (max-width: 1199px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Mobile (767px and below) */
@media (max-width: 767px) {
    body {
        font-size: 14px;
    }
    
    .navbar {
        padding: 0.4rem 0;
        min-height: 50px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        height: 28px !important;
    }
    
    .nav-link {
        padding: 8px 12px !important;
        font-size: 0.9rem;
    }
    
    .nav-link i {
        font-size: 0.85rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .feature-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card h4 {
        font-size: 1rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .fee-card .card-body {
        padding: 1rem;
    }
    
    .fee-amount h2 {
        font-size: 1.5rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    /* Make tables scroll horizontally on mobile */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Responsive notice cards */
    .notice-card .d-flex {
        flex-direction: column !important;
        gap: 10px;
    }
    
    /* Responsive testimonial cards */
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    /* Stack buttons vertically on small screens */
    .btn-group-responsive {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}
    
    .table thead th,
    .table tbody td {
        padding: 0.5rem;
    }
    
    .sidebar {
        min-height: auto;
    }
    
    .sidebar .nav-link {
        padding: 12px 15px;
        margin: 3px 5px;
        font-size: 0.9rem;
    }
    
    .sidebar .nav-link i {
        font-size: 1rem;
    }
    
    .form-control,
    .form-select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .modal-header,
    .modal-footer {
        padding: 1rem;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
}

/* Extra Small Mobile (576px and below) */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 30px 0;
    }
    
    .card-header {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .d-flex.gap-3 .btn {
        width: 100%;
    }
    
    .table-responsive {
        border-radius: 8px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
}

/* === Print Styles === */
@media print {
    .navbar,
    .sidebar,
    .breadcrumb,
    footer,
    .btn,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* === Dark Mode Support (Optional) === */
@media (prefers-color-scheme: dark) {
    /* Can add dark mode styles here if needed */
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* === Utility Classes === */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.shadow {
    box-shadow: var(--box-shadow) !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

.rounded-lg {
    border-radius: var(--border-radius) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #00b894 100%) !important;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #d63031 100%) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #f39c12 100%) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #0984e3 100%) !important;
}

/* === Scroll to Top Button === */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* === Mobile Menu Toggle === */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.1);
        margin-top: 0.75rem;
        padding: 0.75rem;
        border-radius: 8px;
        backdrop-filter: blur(10px);
    }
    
    .navbar-toggler {
        padding: 0.35rem 0.5rem;
        font-size: 1rem;
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
    }
}

/* === Accessibility === */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 3px solid rgba(67, 97, 238, 0.5);
    outline-offset: 2px;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* === Testimonials Section === */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.quote-icon {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    flex: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #6c757d;
}

.author-info h6 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.author-info small {
    display: block;
    color: #6c757d;
}

.class-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--info-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
}

.rating {
    font-size: 1.1rem;
}

.rating i {
    margin-right: 2px;
}

/* Mobile Responsive for Testimonials */
@media (max-width: 767px) {
    .testimonial-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .testimonial-author img,
    .author-avatar {
        width: 50px;
        height: 50px;
    }
    
    .quote-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .author-info h6 {
        font-size: 0.95rem;
    }
    
    .author-info small {
        font-size: 0.8rem;
    }
}

/* === Custom Homepage Popup - Premium Redesign === */
.custom-popup-modal {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    max-width: 900px;
    margin: auto;
}

/* Decorative Element - Top Corner Design */
.custom-popup-modal::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(63, 55, 201, 0.1) 100%);
    border-radius: 0 24px 0 100%;
    z-index: 1;
}

/* Decorative Element - Bottom Corner Design */
.custom-popup-modal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.1) 0%, rgba(0, 184, 148, 0.1) 100%);
    border-radius: 0 100% 0 24px;
    z-index: 1;
}

.popup-close-button {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    border: 3px solid white;
    background: linear-gradient(135deg, #ef476f 0%, #d63031 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 25px rgba(239, 71, 111, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.popup-close-button:hover {
    transform: rotate(180deg) scale(1.15);
    box-shadow: 0 10px 35px rgba(239, 71, 111, 0.6);
    background: linear-gradient(135deg, #d63031 0%, #c0392b 100%);
}

.popup-close-button:active {
    transform: rotate(180deg) scale(0.95);
}

.popup-image-section {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.popup-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.popup-image-section img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.custom-popup-modal:hover .popup-image-section img {
    transform: scale(1.05);
}

.popup-content-section {
    padding: 3.5rem 3rem;
    text-align: center;
    background: white;
    position: relative;
    z-index: 2;
}

.popup-heading {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #4361ee 0%, #3f37c9 50%, #ef476f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.popup-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4361ee 0%, #ef476f 100%);
    border-radius: 2px;
}

.popup-body-text {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #555;
    margin: 2.5rem 0;
    padding: 0 2rem;
}

.popup-body-text p {
    margin-bottom: 1.2rem;
}

.popup-body-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

.popup-body-text ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.popup-body-text ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 30px;
}

.popup-body-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.popup-action-buttons {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.popup-cta-btn {
    padding: 18px 50px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 50px;
    background: linear-gradient(135deg, #4361ee 0%, #3f37c9 100%);
    border: none;
    color: white;
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.popup-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.popup-cta-btn:hover::before {
    left: 100%;
}

.popup-cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(67, 97, 238, 0.5);
    color: white;
}

.popup-cta-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.popup-cta-btn i {
    transition: transform 0.3s;
    margin-left: 8px;
}

.popup-cta-btn:hover i {
    transform: translateX(8px);
}

/* Special Badge/Tag Design */
.popup-special-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffc300 0%, #ff5733 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(255, 195, 0, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Mobile Responsive for Popup */
@media (max-width: 991px) {
    .custom-popup-modal {
        max-width: 95%;
        margin: 10px auto;
    }
}

@media (max-width: 767px) {
    .custom-popup-modal {
        border-radius: 16px;
        margin: 15px;
    }
    
    .custom-popup-modal::before,
    .custom-popup-modal::after {
        width: 120px;
        height: 120px;
    }
    
    .popup-content-section {
        padding: 2.5rem 1.5rem;
    }
    
    .popup-heading {
        font-size: 2rem;
    }
    
    .popup-heading::after {
        width: 50px;
        height: 3px;
    }
    
    .popup-body-text {
        font-size: 1.05rem;
        padding: 0 0.5rem;
        margin: 2rem 0;
    }
    
    .popup-image-section {
        height: 250px;
    }
    
    .popup-close-button {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        top: 15px;
        right: 15px;
    }
    
    .popup-cta-btn {
        width: 100%;
        padding: 15px 35px;
        font-size: 1.05rem;
    }
}

@media (max-width: 576px) {
    .custom-popup-modal {
        border-radius: 12px;
        margin: 10px;
    }
    
    .popup-content-section {
        padding: 2rem 1.25rem;
    }
    
    .popup-heading {
        font-size: 1.6rem;
    }
    
    .popup-body-text {
        font-size: 1rem;
        margin: 1.5rem 0;
    }
    
    .popup-image-section {
        height: 200px;
    }
    
    .popup-close-button {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        top: 12px;
        right: 12px;
        border-width: 2px;
    }
    
    .popup-cta-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .popup-action-buttons {
        padding-top: 1.5rem;
    }
}

/* Popup Backdrop Enhanced */
.modal-backdrop.show {
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.65);
}

/* Popup Modal Dialog Positioning */
#customPopup .modal-dialog {
    transition: all 0.3s ease;
}

#customPopup.show .modal-dialog {
    transform: scale(1);
}
