


/* CSS Variables for Theme Support */
:root {
    --primary-color: #1e3a8a;
    --primary-light: #3b82f6;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #333333;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --accent-bg: #e0f2fe;
    --accent-text: #0277bd;
    --shadow-light: rgba(0,0,0,0.1);
    --shadow-medium: rgba(0,0,0,0.15);
}

[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-light: #60a5fa;
    --bg-primary: #1f2937;
    --bg-secondary: #111827;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --border-color: #374151;
    --card-bg: #374151;
    --input-bg: #4b5563;
    --accent-bg: #1e3a8a;
    --accent-text: #93c5fd;
    --shadow-light: rgba(0,0,0,0.3);
    --shadow-medium: rgba(0,0,0,0.4);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.logo-holder{
    color:var(--primary-color);
    text-decoration: none;
}
.logo-holder:hover{
    color:var(--primary-light);

}
.navbar {
    background: var(--bg-primary);
    box-shadow: 0 2px 10px var(--shadow-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-brand i {
    margin-right: 8px;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search input {
    padding: 8px 35px 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    width: 250px;
    outline: none;
    transition: border-color 0.3s;
    background: var(--input-bg);
    color: var(--text-primary);
}
.submenu{
    display: none;
}
.nav-search input:focus {
    border-color: var(--primary-color);
}

.nav-search i {
    position: absolute;
    right: 12px;
    color: var(--text-secondary);
}
   /* Dropdown Container */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: -100%;
    background: var(--bg-primary);
    width: 600px;
    box-shadow: 0 4px 10px var(--shadow-light);
    display: none;
    flex-direction: column;
    z-index: 1200;
    border-radius: 6px;
    padding: 10px 30px;
}
.dropdown-content .row{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.dropdown-content .col a {
    padding: 5px;
    text-decoration: none;
    font-size: 12px;
    color: var(--text-primary);
    display: block;
    transition: background 0.3s;
}
.col h3{
    font-size: 18px;
    color: var(--accent-text);
    font-weight: 500;
}
.dropdown-content a:hover {
    background: var(--accent-bg);
    color: var(--accent-text);
}

/* Show on hover (desktop only) */
.dropdown:hover .dropdown-content {
    display: flex;
}

/* Caret icon */
.dropdown > .nav-link i {
    margin-left: 6px;
    font-size: 0.8rem;
}


.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.theme-toggle:hover {
    background: var(--accent-bg);
    border-color: var(--accent-text);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

/* Hamburger styles */
.hamburger {
    display: none;
    width: 30px;
    height: 20px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1200;
    position: relative;
}

.hamburger span {
    display: block;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Dark mode support for hamburger bars */
body[data-theme="dark"] .hamburger span {
    background: var(--text-secondary);
}
.overlay{
    display: none;
}
/* Hero Section */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 180px 0 160px;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    /* grid-template-columns: 1fr 1fr; */
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #fff;
    color: var(--primary-color);
}

.btn-primary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}
 
.hero-illustration i {
    font-size: 15rem;
    opacity: 0.8;
}
.hero-content img{
    max-width: 80%;height: auto;border-radius:50%;
}

/* Stats Section */
.stats {
    background: var(--bg-primary);
    padding: 60px 0;
    transition: background-color 0.3s ease;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Featured Courses */
.featured-courses {
    padding: 80px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.featured-courses h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s ease;
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.course-image {
    height: 200px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.course-content {
    padding: 25px;
}

.course-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.course-description {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.course-level {
    background: var(--accent-bg);
    color: var(--accent-text);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.course-subject {
    color: var(--text-secondary);
    font-size: 0.9rem;
}



/*opportunities*/


img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}
/*
.btn {
  color: #ffffff;
  padding: 0.8rem;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 4px;
  font-weight: 400;
  display: block;
  width: 100%;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
}
*/
.btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.cards {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cards_item {
  display: flex;
  padding: 1rem;
  width: 30%;
  overflow: hidden;
  box-sizing: border-box;
}



.card {
  background-color: var(--bg-primary);
  border-radius: 0.25rem;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 90%;
}

.card_content {
  padding: 1rem;
  background: var(--primary-light);
  max-height: 100%;
  height: 150px;
  padding: 15px;
}
.card-image{
  max-width: 100%;
  height: 150px;
  object-fit: cover;
}
.card_title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: capitalize;
  margin-bottom: 15px;
}

.card_text {
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;    
  font-weight: 400;
}

/* Pagination Styles */
.pagination {
  text-align: center;
  margin-top: 30px;
}

.pagination a,
.pagination span {
  display: inline-block;
  margin: 0 4px;
  padding: 8px 12px;
  background: #eee;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
}

.pagination .current {
  background: #0073aa;
  color: #fff;
  font-weight: bold;
}


/* Features Section */
.features {
    padding: 80px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    display: none;
    text-align: center;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: background-color 0.3s ease;
}

.testimonial.active {
    display: block;
}

.testimonial-content p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.testimonial-author strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--primary-color);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-brand i {
    margin-right: 8px;
    font-size: 1.8rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s;
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-secondary);
}

/* Course Page Specific Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.filters {
    background: var(--bg-primary);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.filters-container {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.filter-group select {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    outline: none;
    background: var(--input-bg);
    color: var(--text-primary);
    transition: border-color 0.3s, background-color 0.3s;
}

.filter-group select:focus {
    border-color: var(--primary-color);
}


/* Practice*/
.practice-problem {
            background: var(--card-bg);
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        .problem-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .problem-category {
            background: var(--accent-bg);
            color: var(--accent-text);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .problem-number {
            color: var(--text-secondary);
            font-weight: 500;
        }

        .problem-question {
            font-size: 1.3rem;
            font-weight: bold;
            margin-bottom: 20px;
            color: var(--text-primary);
        }

        .problem-options {
            display: grid;
            gap: 12px;
            margin-bottom: 20px;
        }

        .option-btn {
            background: var(--input-bg);
            border: 2px solid var(--border-color);
            border-radius: 8px;
            padding: 15px;
            text-align: left;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 1rem;
            color: var(--text-primary);
        }

        .option-btn:hover:not(:disabled) {
            background: var(--accent-bg);
            border-color: var(--accent-text);
        }

        .option-btn.correct {
            background: #dcfce7;
            border-color: #16a34a;
            color: #15803d;
        }

        .option-btn.incorrect {
            background: #fef2f2;
            border-color: #dc2626;
            color: #dc2626;
        }

        .option-btn:disabled {
            cursor: not-allowed;
        }

        .problem-feedback {
            padding: 20px;
            border-radius: 8px;
            margin-top: 20px;
        }

        .problem-feedback.correct {
            background: #dcfce7;
            border: 1px solid #16a34a;
        }

        .problem-feedback.incorrect {
            background: #fef2f2;
            border: 1px solid #dc2626;
        }

        .feedback-text {
            font-weight: bold;
            margin-bottom: 10px;
        }

        .explanation {
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .practice-filters {
            background: var(--card-bg);
            padding: 20px 0;
            margin-bottom: 30px;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
/*Practice End*/

/* Single page archive opportunity  */
.opportunity{
    padding: 100px 20px;
}

.row{
    display: flex;
    gap: 20px;
}
/* .content div{
    margin-bottom: 30px;
} */
.description h1,.details h2{
    font-size: 32px;
    font-weight: 700;
    margin: 0.9em 0;
    line-height: 1.3;
}
.eligibility h3,.apply h3,.specifications h3{
    font-size: 28px;
    font-weight: 700; 
    margin: 0.9em 0;
    line-height: 1.3;
}
li{
    margin-left: 30px;
}
.footer-section li{
    margin-left: 0px;
}
.title h1{
    color: var(--primary-color);
}
.col1,.col2{
    width: 50%;
}

.col2{
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-left: 12px;
}
.category-link{
    text-decoration: none;
    color: var(--primary-color);
}
.singlePostImg {
  max-width: 100%;
  width: 450px;
  height: auto;
  object-fit: cover; /* Optional, for cropped look */
}


  .responsive-table {
    width: 100%;
    max-width: 800px;
    border-collapse: collapse;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .responsive-table th,
  .responsive-table td {
    padding: 12px 16px;
    text-align: left;
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
  }

  .responsive-table tr:nth-child(odd) {
    background-color: #F2F2F2;
 
  }

  .responsive-table tr:nth-child(even){
    background-color: #FFFFFF;
  }

  .responsive-table th {
    width: 50%;
    font-weight: 600;
    color: #333;
  }
  a{
    text-decoration: none;
  }
/* Single page archive opportunity  */



/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .cards_item{
            width:50%;
    }
    .nav-search {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        height: 100vh;
        background: var(--bg-primary);
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
        flex-direction: column;
        padding-top: 60px;
        z-index: 1100;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        display: flex;
    }

    .nav-menu.active {
        transform: translateX(0);
        display: flex;
        gap: 10px;
    }

    .nav-menu a {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-primary);
        text-decoration: none;
        transition: background-color 0.3s;
        display: flex;
        width: 100%;
        justify-content: space-between;
        
    }

    .nav-menu a:hover {
        background-color: var(--accent-bg);
        color: var(--accent-text);
    }
    .submenu{
        display: none;
    }
.submenu.active {
    display: block;
}
    /* Overlay */
    .overlay {
        display: block;
        position: fixed;
        top: 0; left: 0;
        width: 100vw; height: 100vh;
        background: rgba(0,0,0,0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        z-index: 1000;
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Show hamburger on mobile */
    .hamburger {
        display: flex;
    }
.dropdown-content {
    display: none;
    flex-direction: column;
}

.dropdown-content.show {
    display: none;
}
.dropdown:hover .dropdown-content{
    display: none;
}
.hero{
    padding: 100px 0px 50px;
}

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 20px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    .hero-content img{
    max-width: 60%;height: auto;border-radius:50%;
}
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .card{
        height: max-content;
    }

    
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    
    }


    .row{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.col1,.col2{
    width: 100%;
}
.col2{
    gap: 15px;
    padding-left: 0px;
}
    
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
     .cards_item {
    width: 100%;
  }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
}
