/* Barden Boko College Custom Styles */
/* Color Scheme */
:root {
    --primary: #2E7D32;
    --primary-light: #4CAF50;
    --primary-dark: #1B5E20;
    --secondary: #8BC34A;
    --accent: #FFC107;
    --light: #ffffff;
    --dark: #333333;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll Offset for Fixed Header */
section[id],
div[id] {
    scroll-margin-top: 100px;
}

/* Typography Improvements - Professional School Website Fonts */
body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Poppins', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h1, .h1 {
    font-size: 1.875rem; /* 30px */
    font-weight: 800;
    line-height: 1.2;
}

h2, .h2 {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    line-height: 1.3;
}

h3, .h3 {
    font-size: 1.3125rem; /* 21px */
    font-weight: 600;
    line-height: 1.4;
}

h4, .h4 {
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    line-height: 1.4;
}

h5, .h5 {
    font-size: 1rem; /* 16px */
    font-weight: 600;
    line-height: 1.5;
}

h6, .h6 {
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    line-height: 1.5;
}

p {
    font-size: 0.875rem; /* 14px */
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--dark);
}

/* Lead Paragraphs */
.lead {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem; /* 16px */
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark);
}

/* Small Text */
small,
.small {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem; /* 14px */
    line-height: 1.6;
    font-weight: 400;
}

/* Lists */
ul, ol {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

li {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.375rem;
}

/* Site Section Heading */
.site-section-heading {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1.875rem; /* 30px */
    line-height: 1.2;
    color: var(--primary-dark);
}

@media (max-width: 991.98px) {
    .site-section-heading {
        font-size: 1.5rem; /* 24px on tablet */
    }
}

@media (max-width: 767.98px) {
    .site-section-heading {
        font-size: 1.3125rem; /* 21px on mobile */
    }
}

/* Responsive Typography */
@media (max-width: 991.98px) {
    h1, .h1 {
        font-size: 1.5rem; /* 24px on mobile */
    }
    
    h2, .h2 {
        font-size: 1.3125rem; /* 21px on mobile */
    }
    
    h3, .h3 {
        font-size: 1.125rem; /* 18px on mobile */
    }
    
    body {
        font-size: 13px;
    }
}

@media (max-width: 767.98px) {
    h1, .h1 {
        font-size: 1.3125rem; /* 21px on small mobile */
    }
    
    h2, .h2 {
        font-size: 1.125rem; /* 18px on small mobile */
    }
    
    body {
        font-size: 13px;
    }
}

/* Primary Color Overrides */
.btn-primary,
.btn-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--light);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--light);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--light);
}

/* Secondary Color */
.btn-secondary,
.btn-secondary:focus {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--light);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

/* Accent Color */
.btn-warning,
.badge-warning {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
}

/* Links */
a {
    color: var(--primary);
}

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

/* Navigation */
.school-brand {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    color: var(--primary-dark) !important;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.3px;
}

/* Navigation Header - Semi-transparent background for visibility */
.site-navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navigation Links - Dark color for visibility */
.site-navbar .site-menu > li > a.nav-link {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark) !important;
    font-weight: 600;
    font-size: 0.8125rem; /* 13px */
    text-shadow: none;
    letter-spacing: 0.3px;
}

.site-navbar .site-menu > li > a.nav-link:hover,
.site-navbar .site-menu > li > a.nav-link.active {
    color: var(--primary) !important;
}

.sticky-wrapper.is-sticky .site-navbar .site-menu > li > a.nav-link {
    color: var(--dark) !important;
}

.sticky-wrapper.is-sticky .site-navbar .site-menu > li > a.nav-link:hover,
.sticky-wrapper.is-sticky .site-navbar .site-menu > li > a.nav-link.active {
    color: var(--primary) !important;
}

.sticky-wrapper.is-sticky .site-navbar .site-logo a {
    color: var(--primary-dark) !important;
}

.is-sticky .cta a span {
    background-color: var(--primary) !important;
    color: var(--light) !important;
}

/* Site menu dark (right side navigation) */
.site-menu-dark > li > a {
    color: var(--dark) !important;
}

.site-menu-dark > li > a:hover {
    color: var(--primary) !important;
}

/* Section Titles */
.section-title {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.875rem; /* 30px */
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

@media (max-width: 991.98px) {
    .section-title {
        font-size: 1.5rem; /* 24px on tablet */
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.3125rem; /* 21px on mobile */
    }
}

.section-sub-title {
    font-family: 'Open Sans', sans-serif;
    color: var(--primary) !important;
    text-transform: uppercase;
    font-size: 0.75rem; /* 12px */
    font-weight: 700;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 1rem;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
}

.card-title {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1rem; /* 16px */
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.card-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8125rem; /* 13px */
    line-height: 1.6;
    color: #555;
}

/* Badges */
.badge {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem; /* 12px */
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.35em 0.65em;
}

.badge-primary {
    background-color: var(--primary);
    color: var(--light);
}

.badge-success {
    background-color: var(--primary-light);
    color: var(--light);
}

/* Course Cards */
.course .course-inner-text h3 {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem; /* 16px */
    line-height: 1.4;
}

.course .course-inner-text h3 a {
    color: var(--primary-dark);
}

.course .course-inner-text h3 a:hover {
    color: var(--primary);
}

.course .course-inner-text p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8125rem; /* 13px */
    line-height: 1.6;
    color: #555;
}

/* Background Sections */
.courses-title {
    background-color: var(--primary);
    color: var(--light);
    padding-bottom: 8rem !important; /* Reduced from 13rem to prevent overlap */
    position: relative;
    z-index: 1;
}

.courses-title .section-title {
    color: var(--light);
}

.courses-title p {
    color: rgba(255, 255, 255, 0.9);
}

/* Fix courses entry wrap overlap */
.courses-entry-wrap {
    margin-top: -180px !important; /* Reduced negative margin */
    position: relative;
    z-index: 2;
    padding-top: 3rem;
}

@media (max-width: 1199.98px) {
    .courses-title {
        padding-bottom: 7rem !important;
    }
    .courses-entry-wrap {
        margin-top: -160px !important;
    }
}

@media (max-width: 991.98px) {
    .courses-title {
        padding-bottom: 5rem !important;
    }
    .courses-entry-wrap {
        margin-top: -120px !important;
        padding-top: 2rem;
    }
}

/* Hero Section - Remove or minimize gradient overlay */
.slide-1:before {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.267), rgba(27, 94, 31, 0.979)) !important;
    opacity: 1 !important;
}

/* Alternative: Very light gradient if needed */
/* .slide-1:before {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(27, 94, 32, 0.15)) !important;
    opacity: 0.3 !important;
} */

/* Hero Section Typography */
.intro-section h1 {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 2.25rem; /* 36px */
    line-height: 1.2;
    letter-spacing: -1px;
}

@media (max-width: 991.98px) {
    .intro-section h1 {
        font-size: 1.875rem; /* 30px on tablet */
    }
}

@media (max-width: 767.98px) {
    .intro-section h1 {
        font-size: 1.5rem; /* 24px on mobile */
    }
}

.intro-section p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9375rem; /* 15px */
    line-height: 1.6;
    font-weight: 400;
}

/* Hero Section Buttons */
.intro-section .btn-outline-light {
    border-color: var(--light);
    color: var(--light);
    background-color: transparent;
    font-weight: 600;
    font-size: 0.9375rem; /* 15px */
}

.intro-section .btn-outline-light:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
}

.intro-section .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--light);
    font-size: 0.9375rem; /* 15px */
}

.intro-section .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--light);
}

/* Custom Icon Wraps */
.custom-icon-wrap .custom-icon-inner {
    background-color: var(--primary) !important;
    color: var(--light) !important;
}

.custom-icon-wrap h3 {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.875rem; /* 14px */
    color: var(--primary-dark) !important;
}

.custom-icon-wrap.custom-icon-light .custom-icon-inner {
    background-color: var(--primary-light) !important;
}

.custom-icon-wrap.custom-icon-light h3 {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem; /* 13px */
    color: var(--dark) !important;
}

/* Text Colors */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

/* Buttons */
.btn {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.75rem; /* 12px */
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
}

.btn-pill {
    border-radius: 50px;
}

.btn-sm {
    font-size: 0.6875rem; /* 11px */
    padding: 0.3rem 0.75rem;
}

.btn-lg {
    font-size: 0.875rem; /* 14px */
    padding: 0.625rem 1.25rem;
}

/* Form Controls - Override old purple colors */
.form-control {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem; /* 14px */
    line-height: 1.5;
    padding: 0.5rem 0.75rem;
}

.form-control:active,
.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25) !important;
}

/* Select Dropdowns */
select.form-control {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

select.form-control:focus {
    border-color: var(--primary) !important;
}

/* Labels */
label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem; /* 13px */
    color: var(--dark);
    margin-bottom: 0.375rem;
}

/* Checkboxes and Radio Buttons */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary);
    border-color: var(--primary);
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

/* Tables */
.table {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8125rem; /* 13px */
}

.table thead th {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    background-color: var(--primary);
    color: var(--light);
    border-color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.75rem; /* 12px */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.75rem;
}

.table td {
    font-size: 0.8125rem; /* 13px */
    line-height: 1.5;
    padding: 0.5rem 0.75rem;
}

/* Alerts */
.alert {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8125rem; /* 13px */
    line-height: 1.5;
    padding: 0.75rem 1rem;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    border-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 400;
}

.alert-danger {
    background-color: rgba(244, 67, 54, 0.1);
    border-color: #f44336;
    color: #c62828;
    font-weight: 400;
}

.alert-info {
    background-color: rgba(33, 150, 243, 0.1);
    border-color: #2196F3;
    color: #1565C0;
    font-weight: 400;
}

/* Footer */
.footer-section {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--primary-dark);
    color: var(--light);
    padding: 3rem 0 1.5rem;
}

.footer-section h3 {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    color: var(--light);
    font-weight: 700;
    font-size: 1rem; /* 16px */
    margin-bottom: 1rem;
}

.footer-section p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8125rem; /* 13px */
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.footer-section a {
    color: var(--secondary);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-section .border-top {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Overlay */
.bg-image.overlay {
    position: relative;
    background-blend-mode: overlay;
}

.bg-image.overlay .testimony {
    position: relative;
    z-index: 2;
}

/* Custom Sections */
.site-section {
    padding: 3.5rem 0;
}

/* CTA Cards */
.cta-card-primary {
    background-color: var(--primary);
    color: var(--light);
}

.cta-card-primary .card-title,
.cta-card-primary .card-text {
    color: var(--light) !important;
}

.cta-card-secondary {
    background-color: var(--secondary);
    color: var(--light);
}

.cta-card-secondary .card-title,
.cta-card-secondary .card-text {
    color: var(--light) !important;
}

/* CTA Navigation Buttons (Login, Check Result, Dashboard, Logout) */
.cta a span {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--light) !important;
}

.cta a:hover span {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: var(--light) !important;
}

/* Override old template colors */
.site-navbar .site-navigation .site-menu .active > a,
.site-navbar .site-navigation .site-menu .has-children .dropdown .active > a {
    color: var(--primary) !important;
}

.sticky-wrapper.is-sticky .site-navbar .site-menu > li > a:hover {
    color: var(--primary) !important;
}

.sticky-wrapper.is-sticky .site-navbar .site-menu > li > a.active:after {
    background-color: var(--primary) !important;
}

.site-mobile-menu .site-nav-wrap a:hover {
    color: var(--primary) !important;
}

.site-mobile-menu .site-nav-wrap .active > a {
    color: var(--primary) !important;
}

.image-absolute-box .box {
    background: var(--primary) !important;
}

/* Form Box Styling */
.form-box {
    box-shadow: 0 5px 30px rgba(46, 125, 50, 0.15);
    border-top: 3px solid var(--primary);
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border-color: var(--primary-light);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(46, 125, 50, 0.1);
    color: var(--primary-dark);
}

.dropdown-item.active {
    background-color: var(--primary);
    color: var(--light);
}

/* Breadcrumbs */
.breadcrumb-item.active {
    color: var(--primary-dark);
}

/* Pagination */
.page-link {
    color: var(--primary);
}

.page-link:hover {
    color: var(--primary-dark);
    background-color: rgba(46, 125, 50, 0.1);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Progress Bars */
.progress-bar {
    background-color: var(--primary);
}

/* List Groups */
.list-group-item {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9375rem; /* 15px */
    line-height: 1.6;
}

.list-group-item.active {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--light);
}

/* Counter */
.counter .counter-text strong {
    color: var(--primary-dark) !important;
}

/* Testimony/Quote Section */
.testimony h3 {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1.3125rem; /* 21px */
    color: var(--light) !important;
}

.testimony blockquote {
    font-family: 'Open Sans', sans-serif;
}

.testimony blockquote p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9375rem; /* 15px */
    line-height: 1.6;
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Mobile Menu */
.site-mobile-menu {
    background-color: var(--light);
}

.site-mobile-menu .site-menu > li > a {
    color: var(--dark) !important;
}

.site-mobile-menu .site-menu > li > a:hover {
    color: var(--primary) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .school-brand {
        font-size: 1.2rem;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }
    
    .site-navbar {
        background-color: rgba(255, 255, 255, 0.98) !important;
    }
    
    /* Table Responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Forms */
    .form-box {
        padding: 20px !important;
    }
    
    .card-body {
        padding: 1.25rem !important;
    }
    
    .card-body.p-5 {
        padding: 1.5rem !important;
    }
    
    /* Full-width buttons: forms only (avoid forcing every dashboard toolbar button to 100%) */
    .form-box .btn:not(.btn-sm),
    .card-body > form .btn.btn-block,
    .site-section .container .btn.btn-block {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-group .btn,
    .btn-group-vertical .btn {
        width: auto;
    }
    
    /* Hero Section Buttons */
    .intro-section .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .intro-section .hero-buttons .btn {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Navigation CTA Buttons */
    .cta a span {
        padding: 10px 16px !important;
        font-size: 0.7rem !important;
    }
    
    /* Cards */
    .card-title {
        font-size: 1.1rem;
    }
    
    /* Section spacing */
    .site-section {
        padding: 2.5rem 0 !important;
    }
    
    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Smaller text on very small screens */
    .section-title {
        font-size: 1.25rem !important;
    }
    
    h1, .h1 {
        font-size: 1.25rem !important;
    }
    
    /* Button groups stack */
    .btn-group {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        border-radius: 0.25rem !important;
        margin-bottom: 0.5rem;
    }
    
    .btn-group .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Card padding */
    .card-body {
        padding: 1rem !important;
    }
}
