:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #7f8c8d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset improvements for Bootstrap compatibility */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: #f9f9f9;
}

/* Ensure Bootstrap components use your variables */
.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

/* Header & Navigation - Improved Bootstrap compatibility */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1030; /* Higher than Bootstrap's default */
}

header h3, header h5 {
  color: #006d2c !important;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    
   
    margin-left: 10px;
}

/* Improved navigation for Bootstrap compatibility */

.nav-item {
    margin: 0 10px;
    position: relative;
}

.nav-link {
    color: #006d2c !important;
  font-weight: 500;
    transition: var(--transition);
    padding: 10px 0;
    position: relative;
    border: none;
    background: none;
}



.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #028a36 !important;
  text-decoration: underline;
}


.dropdown-menu {
  border-radius: 0.5rem;
  border: 1px solid #cfe8d6;
} 
/* Dropdown improvements */


.dropdown-item {
    padding: 12px 20px;
    display: block;
    transition: var(--transition);
    color: var(--text);
    text-decoration: none;
}

.dropdown-item:hover {
    background-color: var(--light);
    color: var(--secondary);
}

/* Button styles that work with Bootstrap */
.auth-buttons {
    display: flex;
    align-items: center;
}

.btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-login {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    margin-right: 10px;
}

.btn-login:hover {
    background-color: var(--primary);
    color: white;
}

.btn-register {
    background-color: var(--secondary);
    color: white;
}

.btn-register:hover {
    background-color: #2980b9;
    color: white;
}



/* Hero Slider */
.hero-slider {
    position: relative;
    margin-left: calc(-50vw + 50%);
    height: 650px;
    width: 100%;
    min-height: 450px;
    overflow: hidden;
    margin-bottom: 20px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 700px;
    z-index: 5;
}

.slide-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.slide-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 20;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.slider-dot.active {
    background-color: white;
}

/* Section spacing compatible with Bootstrap */
.topics-section,
.dates-section,
.page-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
    font-size: 2rem;
}

/* Grid improvements */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.topic-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.topic-img {
    height: 180px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.topic-content {
    padding: 20px;
}

.topic-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.topic-desc {
    color: var(--text-light);
    margin-bottom: 15px;
}

.topic-link {
    color: var(--secondary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.topic-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.topic-link:hover i {
    transform: translateX(5px);
}

/* Dates section */
.dates-section {
    background-color: var(--light);
}

.dates-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.date-card {
    flex: 1;
    min-width: 250px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.date-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.date-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.date-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
}

.countdown {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.countdown-item {
    margin: 0 8px;
    min-width: 60px;
    text-align: center;
}

.countdown-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    background-color: var(--light);
    padding: 10px;
    border-radius: 4px;
    display: block;
}

.countdown-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
    display: block;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    transition: var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary);
    min-width: 20px;
}

.footer-social {
    display: flex;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 10px;
    transition: var(--transition);
    text-decoration: none;
    color: white;
}

.footer-social a:hover {
    background-color: var(--secondary);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 2px solid #dee2e6;
    padding: 60px 0;
    position: relative;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0;
}

/* Breadcrumbs */
.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.95rem;
}


/* Page Content */
.page-section {
    background-color: #fff;
    line-height: 1.7;
    font-size: 11pt;
    color: #333;
}

.page-section h3 {
    margin-top: 40px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0d6efd;
    border-left: 4px solid #0d6efd;
    padding-left: 10px;
}


@media (max-width: 768px) {
    .page-header .breadcrumb {
        justify-content: center;
        font-size: 0.85rem;
    }

    .page-header .breadcrumb .breadcrumb-item {
        margin-bottom: 5px;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .countdown-item {
        min-width: 50px;
        margin: 0 4px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
        padding: 8px;
    }
}

.navbar {
    background-color: #fff;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #006d2c;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.3s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #006d2c;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login {
    background-color: transparent;
    color: #006d2c;
    border: 1px solid #006d2c;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s;
}

.btn-login:hover {
    background-color: #006d2c;
    color: white;
}

.btn-register {
    background-color: #00a0c6;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s;
}

.btn-register:hover {
    background-color: #0086a8;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .header-container {
        flex-direction: column;
    }
    
    .auth-buttons {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
}