:root {
    --cesa-blue: #003366;
    --cesa-dark-blue: #001f3f;
    --cesa-orange: #f46a1e;
    --cesa-light-gray: #f8f9fa;
}

.container {
    max-width: 1600px;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.navbar-brand img {
    height: 60px;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 50px;
}

/* Scroll to Top */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--cesa-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: none;
}

#scrollToTop.show {
    opacity: 1;
    visibility: visible;
}

#scrollToTop:hover {
    background-color: var(--cesa-orange);
    transform: translateY(-5px);
}
.nav-link {
    color: var(--cesa-dark-blue) !important;
    font-weight: 600;
    margin: 0 12px;
    font-size: 0.95rem;
}
.nav-link.active {
    color: var(--cesa-blue) !important;
    border-bottom: 3px solid var(--cesa-blue);
}
.btn-login-top {
    background-color: var(--cesa-blue);
    color: white;
    border-radius: 6px;
    padding: 10px 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.btn-login-top:hover {
    background-color: var(--cesa-dark-blue);
    color: white;
}

/* Hero Section */
/* Hero Section */
.hero-section {
    background:url('/public/frontend/img/images/hero-slider.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 20px;
    white-space: nowrap;
    letter-spacing: -2px;
    line-height: 1;
}
.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 50px;
    font-weight: 400;
}
.btn-get-started {
    background-color: var(--cesa-orange);
    color: white;
    padding: 15px 40px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    margin-right: 20px;
    font-size: 1.25rem;
}
.btn-browse {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 40px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.25rem;
}
.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    z-index: 2;
    object-fit: contain;
    pointer-events: none;
}
.hero-features {
    margin-top: 80px;
    display: flex;
    gap: 40px;
}
.feature-item {
    display: flex;
    flex-direction: column;
    max-width: 200px;
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 25px;
}
.feature-item:first-child {
    border-left: none;
    padding-left: 0;
}
.feature-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.feature-item span {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}
.feature-item p {
    font-size: 0.95rem;
    opacity: 0.7;
    margin: 0;
}

/* Decorative Curve */
.hero-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 150px;
    background: white;
    clip-path: ellipse(70% 100% at 55% 120%);
    z-index: 5;
}
.orange-line {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    height: 180px;
    background: var(--cesa-orange);
    clip-path: ellipse(65% 100% at 50% 120%);
    z-index: 4;
}

/* Main Content */
.content-section {
    padding: 80px 0;
}
.section-title {
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--cesa-dark-blue);
}
.section-subtitle {
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* Course Cards */
.course-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    height: 100%;
    transition: transform 0.3s;
}
.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.course-icon {
    font-size: 2rem;
    color: var(--cesa-blue);
    margin-bottom: 15px;
}
.course-card h5 {
    font-weight: 700;
    font-size: 1rem;
}
.course-card p {
    font-size: 0.85rem;
    color: #666;
}
.view-courses-link {
    color: var(--cesa-blue);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Login Card */
.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    padding: 40px;
}
.form-control {
    background-color: #fcfcfc;
    border: 1px solid #eee;
    padding: 12px;
    font-size: 0.9rem;
}
.btn-login-submit {
    background-color: var(--cesa-blue);
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Stats Bar */
.stats-bar {
    background-color: var(--cesa-dark-blue);
    color: white;
    padding: 40px 0;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.stat-icon {
    font-size: 2rem;
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
}
.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.copyright-text {
    font-size: 0.8rem;
    opacity: 0.6;
    text-align: right;
}

.view-all-btn {
    border: 1px solid var(--cesa-blue);
    color: var(--cesa-blue);
    padding: 8px 30px;
    border-radius: 8px;
    font-weight: 600;
    background: white;
}

/* About Page Specific Styles */
.about-hero {
    background: url('/public/frontend/img/images/about-slider.jpg') no-repeat center center;
    background-size: cover;
    background-position: center;
    padding: 50px 0px 100px 0px;
    color: white;
    position: relative;
    overflow: hidden;
}

.about-hero-tag {
    color: var(--cesa-blue);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
}
.about-hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    max-width: 600px;
    margin-bottom: 25px;
    color: var(--cesa-dark-blue);
}
.about-hero-desc {
    font-size: 1rem;
    color: #555;
    max-width: 550px;
    line-height: 1.6;
}
.about-hero-image-wrap {
    position: absolute;
    right: 0;
    top: 0;
    width: 45%;
    height: 100%;
}
.about-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
}

.mission-sidebar-alt {
    background: var(--cesa-dark-blue);
    padding: 30px;
    border-radius: 4px;
    color: white;
}
.sidebar-block h4 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.stats-row-white {
    background: white;
    padding: 30px 40px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.06);
    margin-top: -65px;
    position: relative;
    z-index: 10;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}
.stat-box-about {
    border-right: 1px solid #eef2f6;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}
.stat-box-about:last-child { border-right: none; }
.stat-box-about i {
    width: 65px;
    height: 65px;
    background-color: #1a4da1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.stat-box-about .stat-content {
    display: flex;
    flex-direction: column;
}
.stat-box-about h3 {
    font-weight: 800;
    margin: 0;
    font-size: 1.25rem;
    color: #001f3f;
    line-height: 1;
}
.stat-box-about p {
    margin: 0;
    font-size: 0.9rem;
    color: #001f3f;
    font-weight: 700;
    margin-top: 5px;
    line-height: 1;
}
.stat-box-about .sub-text {
    font-size: 0.75rem;
    display: block;
    color: #6c757d;
    font-weight: 400;
    margin-top: 8px;
    line-height: 1.4;
    max-width: 150px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #001f3f;
    margin-bottom: 30px;
    line-height: 1.2;
}
.who-we-are-section { padding: 100px 0; background: #fff; }
.who-we-are-tag { 
    color: #1a4da1; 
    font-weight: 800; 
    font-size: 0.85rem; 
    margin-bottom: 15px; 
    display: block; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.check-list {
    list-style: none;
    padding: 0;
}
.check-list li {
    font-weight: 700;
    color: #001f3f;
    display: flex;
    align-items: center;
    gap: 12px;
}
.check-list li i {
    color: #1a4da1;
    font-size: 1.1rem;
}

.blue-mission-box {
    background-color: #f7f9fc;
    padding: 40px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
    transition: all 0.3s;
}
.blue-mission-box:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.blue-mission-box i {
    width: 80px;
    height: 80px;
    background: #1a4da1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.8rem;
    flex-shrink: 0;
}
.blue-mission-box h5 { 
    font-weight: 800; 
    font-size: 1.25rem; 
    margin-bottom: 8px; 
    color: #001f3f; 
}
.blue-mission-box p { 
    font-size: 0.95rem; 
    color: #555; 
    margin-bottom: 0; 
    line-height: 1.5; 
}

.values-section { background: #fcfdfe; padding: 100px 0; }
.value-card {
    background: white;
    padding: 25px 20px;
    border-radius: 12px;
    height: 100%;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.value-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}
.value-card i {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f5ff;
    border-radius: 12px;
    font-size: 1.6rem;
    color: #1a4da1;
    margin-bottom: 0;
    flex-shrink: 0;
}
.value-card h5 { 
    font-weight: 800; 
    margin-bottom: 8px; 
    font-size: 1rem;
    color: #001f3f;
}
.value-card p { font-size: 0.8rem; color: #666; margin: 0; line-height: 1.5; }

.join-footer-section {
    background-color: #0b2265;
    padding: 30px 0;
    color: white;
}
.join-btn {
    border: 1.5px solid rgba(255,255,255,0.4);
    color: white;
    background: transparent;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}
.join-btn:hover { 
    background: rgba(255,255,255,0.1); 
    border-color: white;
    color: white;
}

.footer-stat-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 30px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.footer-stat-item:last-child {
    border-right: none;
}
.footer-stat-item i { 
    font-size: 2.2rem; 
    opacity: 1; 
    color: white;
}
.footer-stat-label { 
    font-weight: 800; 
    font-size: 1.25rem; 
    display: block; 
    line-height: 1;
}
.footer-stat-text { 
    font-size: 0.8rem; 
    opacity: 0.9; 
    display: block; 
    margin-top: 5px;
    line-height: 1.2;
    font-weight: 500;
}

@media (max-width: 992px) {
    .hero-image {
        display: none;
    }
    .hero-title {
        font-size: 2.2rem;
        white-space: normal;
    }
    .stat-box-about { border-left: none; border-bottom: 1px solid #eee; padding: 20px 0; }
    .about-hero-title { font-size: 2.2rem; }
}

/* Utility Classes for clean HTML */
.z-index-hero { z-index: 10; }
.color-orange { color: #f46a1e; }
.color-green { color: #28a745; }
.color-purple { color: #6f42c1; }
.color-red { color: #dc3545; }
.input-icon-left { left: 15px; top: 12px; color: #999; }
.input-icon-right { right: 15px; top: 12px; color: #999; cursor: pointer; }
.font-size-xs { font-size: 0.75rem; }
.link-cesa-blue { color: var(--cesa-blue) !important; }
.who-we-are-tag {
    color: var(--cesa-blue);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

/* Calendar Page Styles */
.calendar-hero {
    background: url('/public/frontend/img/images/calendar-slider.jpg') no-repeat center center;
    background-size: initial;
    background-position: right;
    /* padding: 100px 0; */
    color: white;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}
.calendar-hero::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 400px;
    background-image: url('https://the1stweb.com/demo/edu/africa-map-bg.png'); /* Placeholder or pattern */
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: 0;
}

.calendar-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #001f3f;
    margin-bottom: 20px;
}

.calendar-hero-desc {
    font-size: 1.25rem;
    color: #475569;
    max-width: 600px;
    line-height: 1.5;
}

/* Calendar Grid */
.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    color: #475569;
    padding: 15px 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-left: 1px solid #eef2f6;
    border-top: 1px solid #eef2f6;
}

.cal-cell {
    min-height: 120px;
    padding: 10px;
    border-right: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
    position: relative;
    background: #fff;
}

.cal-cell span {
    font-weight: 600;
    color: #64748b;
    font-size: 0.9rem;
}

.cal-cell.muted {
    background-color: #f8fafc;
}

.cal-cell.active {
    background-color: #f0f9ff;
}

.cal-event {
    margin-top: 10px;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.cal-event:hover {
    transform: scale(1.02);
}

.event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.event-info strong {
    display: block;
    color: #001f3f;
}

.event-info small {
    display: block;
    color: #64748b;
}

/* Event Types */
.event-cctv { background: #eff6ff; border-left: 3px solid #3b82f6; }
.event-cctv .event-dot { background: #3b82f6; }

.event-access { background: #fefce8; border-left: 3px solid #eab308; }
.event-access .event-dot { background: #eab308; }

.event-alarm { background: #fcf4ff; border-left: 3px solid #a855f7; }
.event-alarm .event-dot { background: #a855f7; }

.event-network { background: #f0fdf4; border-left: 3px solid #22c55e; }
.event-network .event-dot { background: #22c55e; }

.event-fire { background: #fef2f2; border-left: 3px solid #ef4444; }
.event-fire .event-dot { background: #ef4444; }

.active-event {
    background: #2563eb !important;
    color: white !important;
    border-left: none !important;
}

.active-event strong, .active-event small {
    color: white !important;
}

/* Calendar Controls */
.btn-cal-nav {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.btn-cal-nav:hover {
    background: #f1f5f9;
}

.btn-cal-filter {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    color: #1e293b;
}

.cal-select {
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

/* Legend */
.legend-item {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-cctv { color: #3b82f6; }
.color-access { color: #eab308; }
.color-alarm { color: #a855f7; }
.color-network { color: #22c55e; }
.color-fire { color: #ef4444; }

/* Sidebar */
.sidebar-card {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.training-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.training-item:last-child {
    border-bottom: none;
}

.training-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.training-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: #001f3f;
}

.training-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 2px;
}

.training-meta i {
    width: 15px;
}

.seats-badge {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: #3b82f6;
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 10px;
}

.seats-badge.orange { color: #f97316; background: #fff7ed; }
.seats-badge.purple { color: #a855f7; background: #faf5ff; }
.seats-badge.green { color: #22c55e; background: #f0fdf4; }
.seats-badge.red { color: #ef4444; background: #fef2f2; }

.join-cta-card {
    background: linear-gradient(135deg, #f8fbff 0%, #edf5ff 100%);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e0e7ff;
}

.instructor-img {
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.benefits-list {
    list-style: none;
    margin-bottom: 15px;
}

.benefits-list li {
    font-size: 0.8rem;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-blue {
    background-color: #1d4ed8;
    color: white;
    font-weight: 700;
    padding: 10px;
    border-radius: 8px;
}

.btn-blue:hover {
    background-color: #1e40af;
    color: white;
}

/* Courses Page Specific Styles */
.courses-hero {
    background:  url('/public/frontend/img/images/courses-slider.jpg') no-repeat center center;
    background-size: cover;
    background-position: center;
  
    position: relative;
    overflow: hidden;
}
.courses-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #001f3f;
    margin-bottom: 15px;
}

.courses-hero p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    line-height: 1.5;
}

.courses-hero-graphics {
    position: absolute;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
}

.courses-hero-graphics img {
    max-width: 100%;
    height: auto;
}

/* Sidebar Filters */
.filters-sidebar {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    padding: 25px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.filter-header h5 {
    font-weight: 800;
    font-size: 1rem;
    margin: 0;
    color: #001f3f;
}

.reset-btn {
    font-weight: 700;
    font-size: 0.85rem;
    color: #3b82f6;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-filter {
    position: relative;
    margin-bottom: 30px;
}

.search-filter input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    background: #f8fafc;
}

.search-filter i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #001f3f;
    cursor: pointer;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.filter-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
}

.filter-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #cbd5e1;
    cursor: pointer;
}

.filter-count {
    font-size: 0.75rem;
    background: #f1f5f9;
    color: #64748b;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Course Grid Controls */
.grid-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.results-count {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.view-modes {
    display: flex;
    gap: 10px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
}

.mode-btn {
    padding: 6px 15px;
    border-radius: 6px;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mode-btn.active {
    background: #fff;
    color: #3b82f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sort-select {
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #001f3f;
    font-weight: 600;
    background: #fff;
}

/* Course Card High Fidelity */
.course-grid-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-grid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card-thumb-wrap {
    position: relative;
    height: 200px;
}

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-icon-overlay {
    position: absolute;
    bottom: -20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: #1a4da1;
    border: 3px solid #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    z-index: 2;
}

.card-body-content {
    padding: 35px 20px 20px 20px;
}

.difficulty-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: capitalize;
}

.difficulty-badge.beginner { background: #ecfdf5; color: #10b981; }
.difficulty-badge.intermediate { background: #fff7ed; color: #f97316; }
.difficulty-badge.advanced { background: #f5f3ff; color: #8b5cf6; }

.course-grid-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #001f3f;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 2.8rem;
}

.course-grid-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.meta-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-item {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item.rating { color: #f59e0b; }

.btn-view-course {
    padding: 8px 16px;
    border: 1.5px solid #3b82f6;
    border-radius: 8px;
    color: #3b82f6;
    font-size: 0.85rem;
    font-weight: 700;
    background: transparent;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-view-course:hover {
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
}

/* Pagination */
.pagination-wrap {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    color: #64748b;
    transition: all 0.2s;
    text-decoration: none;
}

.page-btn.active {
    background: #1a4da1;
    color: #fff;
    border-color: #1a4da1;
}

.page-btn:hover:not(.active) {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #001f3f;
    text-decoration: none;
}

.page-btn.wide {
    width: auto;
    padding: 0 20px;
}

/* Navbar Hover Dropdown */
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .navbar-nav .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }
}

.certs-hero {
    background: url('/public/frontend/img/images/certificate-slider.jpg') no-repeat center center;
    background-size: cover;
    background-position: center;
    padding: 50px 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.certs-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 5%;
    width: 400px;
    height: 400px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 50 A40 40 0 1 1 90 50 A40 40 0 1 1 10 50 M35 50 L45 60 L65 40' stroke='%233b82f6' stroke-width='2' fill='none' stroke-opacity='0.1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transform: translateY(-50%);
    opacity: 0.1;
    z-index: 0;
}

.certs-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(255,255,255,0) 0%, rgba(248,251,255,0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

.certs-hero .container {
    position: relative;
    z-index: 5;
}

.certs-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #001f3f;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.certs-hero-desc {
    font-size: 1.25rem;
    color: #475569;
    max-width: 650px;
    line-height: 1.5;
}

.certs-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.certs-benefit-item .benefit-icon {
    width: 50px;
    height: 50px;
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.benefit-title {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: #2563eb;
    margin-bottom: 2px;
}

.benefit-text {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.certs-hero-img-wrap {
    position: relative;
    padding: 20px;
}

.certs-hero-img-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0) 70%);
    z-index: -1;
}

.certs-hero-img-wrap img {
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.view-all-link {
    color: #3b82f6;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.cert-cat-card {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    padding: 20px;
    height: 100%;
    transition: all 0.3s;
    text-align: left;
}

.cert-cat-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.cat-icon {
    font-size: 1.4rem;
    color: #1a4da1;
}

.cat-icon-red {
    font-size: 1.4rem;
    color: #dc2626;
}

.cert-cat-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin: 0;
    color: #001f3f;
    line-height: 1.2;
}

.cert-cat-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.cat-badge {
    background: #eff6ff;
    color: #3b82f6;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
}

/* Featured Cert Card */
.cert-featured-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s;
}

.cert-featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.cert-img-wrap {
    height: 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding-top: 15px;
}

.cert-img-wrap img {
    height: 120px;
    object-fit: contain;
}

.cert-content {
    padding: 15px 20px 20px 20px;
}

.cert-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #001f3f;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 2.8rem;
}

.level-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-block;
}

.badge-blue { background: #eff6ff; color: #1a4da1; }
.badge-orange { background: #fff7ed; color: #ea580c; }
.badge-green { background: #f0fdf4; color: #16a34a; }
.badge-purple { background: #faf5ff; color: #9333ea; }
.badge-red { background: #fef2f2; color: #dc2626; }
.badge-blue-light { background: #f0f9ff; color: #0284c7; }

.cert-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cert-meta span {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-cert-details {
    border: 1px solid #3b82f6;
    border-radius: 6px;
    color: #3b82f6;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px;
    transition: all 0.2s;
    background: transparent;
    text-decoration: none;
}

.btn-cert-details:hover {
    background: #3b82f6;
    color: #fff;
}

.benefit-item-new {
    padding: 10px;
}

.benefit-item-new i {
    font-size: 2.2rem;
    color: #1a4da1;
    opacity: 0.8;
}

.benefit-item-new h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #001f3f;
    margin-bottom: 5px;
}

.benefit-item-new p {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
}

.cta-cert-box {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.cta-cert-box .ribbon-icon {
    font-size: 3rem;
    color: #1a4da1;
    margin-bottom: 15px;
}

.cta-cert-box h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #001f3f;
}

.cta-cert-box p {
    font-size: 0.85rem;
    color: #64748b;
}

.btn-browse-certs {
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-browse-certs:hover {
    background: #1e40af;
    color: #fff;
}

.color-cesa-blue { color: #1a4da1; }

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 60px 0 120px 0;
        text-align: center;
    }
    .hero-title {
        font-size: 2.8rem;
        white-space: normal;
    }
    .hero-subtitle {
        margin: 0 auto 40px auto;
    }
    .hero-image {
        opacity: 0.3;
        z-index: 1;
    }
    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    .hero-section .d-flex {
        justify-content: center;
    }

    .courses-hero-graphics { display: none; }
    .courses-hero { padding: 40px 0; text-align: center; }
    .courses-hero h1 { font-size: 2rem; }
    .courses-hero p { margin: 0 auto; }
    
    .certs-hero { text-align: center; padding: 50px 0; }
    .certs-hero-title { font-size: 2.2rem; }
    .certs-hero-desc { margin: 0 auto; }
    .certs-benefit-row { justify-content: center; }
}

@media (max-width: 768px) {
    .hero-curve {
        height: 80px;
    }
    .orange-line {
        height: 100px;
        bottom: 20px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-features {
        margin-top: 40px;
    }
    .feature-item {
        max-width: 160px;
        padding-left: 15px;
        text-align: left;
    }
    .feature-item i {
        font-size: 1.8rem;
    }
    .feature-item span {
        font-size: 1rem;
    }
    .btn-get-started, .btn-browse {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .feature-item {
        max-width: 100%;
        border-left: 2px solid rgba(255,255,255,0.2);
        padding-left: 15px;
    }
    .feature-item:nth-child(odd) {
        border-left: none;
        padding-left: 0;
    }
}

/* --- Final Enhancements --- */

/* Hero Sections Mobile Fine-tuning */
@media (max-width: 768px) {
    .calendar-hero, .certs-hero, .courses-hero, .about-hero {
        padding: 50px 0 !important;
        text-align: center;
    }
    .calendar-hero-title, .certs-hero-title, .about-hero-title {
        font-size: 2.2rem !important;
    }
}

/* Calendar Grid Scrollable on Tablets/Mobile */
@media (max-width: 991px) {
    .calendar-grid-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .calendar-days-header, .calendar-grid {
        min-width: 800px;
    }
}

/* Dropdown Menu on Mobile - Fix overlap */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin-top: 15px;
    }
    .navbar-nav .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid #f1f5f9;
    }
    .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 15px;
        background: #f8fafc;
        margin-top: 5px;
    }
}

/* Force Hover Dropdown on Desktop */
@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
}

