/* ===================================
   FRONTEND COMMON CSS
   ===================================
   This file contains all common CSS styles extracted from inline <style> tags
   across all frontend Blade files to maintain consistency and reduce redundancy.
   Version: 1.0
   Created: 2025-02-27
   =================================== */

/* ===================================
   NEWS TICKER STYLES (home-page.blade.php)
   =================================== */
.news-ticker-container {
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.bg-white-20 {
    background: rgba(255, 255, 255, 0.2);
}

.marquee-wrapper {
    position: relative;
}

.marquee-content {
    animation: marquee 40s linear infinite;
    width: max-content;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.whitespace-nowrap {
    white-space: nowrap;
}

/* ===================================
   ABOUT US HERO BANNER STYLES (about-us.blade.php)
   =================================== */
.about-hero-banner {
    padding-top: 5.5rem;
    padding-bottom: 4rem;
    background-position: center;
    background-size: cover;
}

.about-hero-banner .page-title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
}

.about-hero-banner .page-subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 767.98px) {
    .about-hero-banner {
        padding-top: 4.25rem;
        padding-bottom: 2.75rem;
    }
    
    .about-hero-banner .page-subtitle {
        font-size: 0.95rem;
    }
}

/* ===================================
   ERROR PAGE STYLES (unauthorized-access.blade.php)
   =================================== */
.error-icon {
    font-size: 5rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.error-message {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 30px;
}

.action-buttons {
    margin-top: 30px;
}

.action-buttons .btn {
    margin: 0 10px;
    padding: 12px 25px;
}

.btn-primary {
    background: #667eea;
    border-color: #667eea;
}

.btn-primary:hover {
    background: #5a6fd8;
    border-color: #5a6fd8;
}

.btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
}

.alert {
    border-radius: 5px;
    margin-bottom: 20px;
}

/* ===================================
   EXAM STYLES (take-exam.blade.php)
   =================================== */
.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    z-index: 9999;
}

.question-btn:hover {
    transform: scale(1.1);
    transition: transform 0.2s;
}

.exam-container {
    user-select: none;
}

/* ===================================
   PRINT STYLES (payment-invoice.blade.php)
   =================================== */
@media print {
    .no-print {
        display: none !important;
    }
    .printableArea {
        margin: 0;
        padding: 0;
    }
    .box {
        border: none;
        box-shadow: none;
    }
    .bb-1 {
        display: none !important;
    }
    body {
        background: white !important;
    }
}

/* ===================================
   NOTIFICATION STYLES (notifications.blade.php, my-exams.blade.php)
   =================================== */
.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.2;
    border-radius: 0.25rem;
    min-height: 32px;
    font-weight: 500;
}

.empty-state-icon {
    position: relative;
    display: inline-block;
}

.empty-state-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.05) 100%);
    border-radius: 50%;
    z-index: -1;
}

.notification-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    overflow: hidden;
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
}

.notification-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.notification-card.unread-notification {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 50%, #ffffff 100%);
    border-left-color: #007bff;
    position: relative;
}

/* ===================================
   GALLERY STYLES (gallery.blade.php, home-page.blade.php)
   =================================== */
.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===================================
   EXAM RESULT REVIEW STYLES (exam-result-review.blade.php)
   =================================== */
.bg-success-light {
    background: linear-gradient(135deg, #d4edda 0%, #e8f5ea 100%);
}

.bg-danger-light {
    background: linear-gradient(135deg, #f8d7da 0%, #fce8e9 100%);
}

.bg-info-light {
    background: linear-gradient(135deg, #d1ecf1 0%, #e8f4f6 100%);
}

.bg-warning-light {
    background: linear-gradient(135deg, #fff3cd 0%, #fef7e0 100%);
}

.bg-secondary-light {
    background: linear-gradient(135deg, #e2e3e5 0%, #f0f0f1 100%);
}

.whitespace-pre-wrap {
    white-space: pre-wrap;
}

.question-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-height: fit-content;
    border-radius: 0.75rem;
    overflow: hidden;
}

.question-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.question-card.border-success {
    border-left: 4px solid #28a745;
}

.question-card.border-danger {
    border-left: 4px solid #dc3545;
}

/* ===================================
   MAP STYLES (contact-us.blade.php, home-page.blade.php)
   =================================== */
#map {
    z-index: 1;
}

/* ===================================
   ANIMATION STYLES (user-dashboard.blade.php)
   =================================== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.lh-1_6 {
    line-height: 1.6;
}

.rotate-180 {
    transform: rotate(180deg);
}

.bg-light-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.hover-primary:hover {
    background-color: #019ff8 !important;
    color: white !important;
}

.hover-success:hover {
    color: #058f06 !important;
}

.hover-primary-bg:hover {
    background-color: #019ff8 !important;
    color: #fff !important;
}

.hover-success-bg:hover {
    background-color: #058f06 !important;
    color: #fff !important;
}

.hover-info-bg:hover {
    background-color: #00bcd4 !important;
    color: #fff !important;
}

.hover-warning-bg:hover {
    background-color: #ffb100 !important;
    color: #fff !important;
}

/* ===================================
   RESPONSIVE FIXES
   =================================== */
@media (max-width: 576px) {
    .branch-card-inner {
        padding: 20px !important;
    }
    
    .branch-icon-box {
        width: 48px;
        height: 48px;
    }
    
    .display-6 {
        font-size: 28px !important;
    }
}

@media (max-width: 768px) {
    .testimonial-slider-container {
        min-height: 440px !important;
    }
    
    .testimonial-slider-container .box-body {
        min-height: 400px !important;
        padding: 30px 15px !important;
    }
    
    .testimonial-slider-container .fs-18 {
        font-size: 16px !important;
    }
}

/* ===================================
   COMPONENT SPECIFIC STYLES
   =================================== */
.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

.usp-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-left: 5px solid;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.usp-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 20px;
}

.feature-box {
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    background: #fff;
    height: 100%;
    transition: 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.feature-box:hover {
    transform: translateY(-6px);
}

.feature-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: 0.3s;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.feature-box:hover .feature-icon,
.feature-box:hover h4,
.feature-box:hover p {
    color: #fff !important;
}

.feature-box:hover .feature-icon {
    background: rgba(255, 255, 255, 0.25) !important;
}

.branch-card {
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: .4s;
}

.branch-card:hover {
    transform: translateY(-10px);
    border-color: rgba(5, 143, 6, 0.15);
}

.branch-icon-box {
    width: 55px;
    height: 55px;
    min-width: 55px;
    transition: .4s;
}

.branch-card:hover .branch-icon-box {
    background-color: #058f06 !important;
    color: white !important;
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 10px 20px rgba(5, 143, 6, 0.2);
}

.deco-1 {
    width: 400px;
    height: 400px;
    filter: blur(150px);
    margin-right: -200px;
    margin-top: -200px;
}

.deco-2 {
    width: 300px;
    height: 300px;
    filter: blur(120px);
    margin-left: -150px;
    margin-bottom: -150px;
}

.testimonial-slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}
