:root {
    --primary-blue: #2563eb;
    --accent-teal: #0891b2;
    --accent-orange: #FF6F61;
    --accent-red: #ef4444;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
  font-family: 'Congenial';
  src: url('fonts/Congenial-Light.woff2') format('woff2'),
       url('fonts/Congenial-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Congenial';
  src: url('fonts/Congenial-Bold.woff2') format('woff2'),
       url('fonts/Congenial-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
    font-family: 'Congenial', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-image: linear-gradient(rgba(164, 177, 255, 0.80), rgba(255, 255, 255, 0.65)), url("../img/circles.gif");
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.rotating-image {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}


/* Enhanced Navigation from First File */
.header {
    background: linear-gradient(135deg, #2563EB 0%, #fc785a 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 0.5rem 0;
}


.navbar-brand {
    color: white !important;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Congenial', sans-serif;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5); /* Optional: white border */
}


.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.brand-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    font-family: 'Congenial', sans-serif;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Enhanced Dropdown Menu */
.dropdown-menu {
    background: white;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.7rem 1.5rem;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #2563EB 0%, #fc785a 100%);
    color: white;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 70px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.highlight-text {
    color: var(--primary-blue);
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
}

.main-logo {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* General section title styling for consistency */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    /* Adjusted margin for better spacing */
    color: var(--text-dark);
    position: relative;
    z-index: 3;
    /* Ensure text is above the fading overlay */
}

.accent-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
    margin: 0 auto 3rem;
    /* Adjusted margin for better spacing */
    border-radius: 2px;
    position: relative;
    z-index: 3;
    /* Ensure divider is above the fading overlay */
}


.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.about-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    display: block;
    transition: all 0.3s ease;
}

.stat-item.animate .stat-number {
    transform: scale(1.1);
    color: var(--accent-orange);
}

.stat-label {
    font-size: 1rem;
    color: #777;
    margin-top: 0.5rem;
}


/* Content Sections */
.content-section {
    padding: 4rem 0;
}

.content-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
}

.content-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-icon i {
    color: white;
    font-size: 2rem;
}

.content-card h2 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 2rem;
}

.content-card p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 1.1rem;
}


/* Enhanced Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #6b7280;
}

.close:hover {
    color: #1f2937;
}


/* Buttons */
.btn-primary-custom {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-primary-custom:hover {
    background-color: #e55a4f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 111, 97, 0.3);
    color: white;
}

.btn-outline-custom {
    border: 2px solid var(--accent-teal);
    color: var(--accent-teal);
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: var(--accent-teal);
    color: white;
    transform: translateY(-2px);
}

/*Feature Section */

.features-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}



.feature-card {
    background: white;
    border-radius: 15px;
    padding: 0;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: auto;
    display: flex;
    flex-direction: column;
    color: #333;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px 15px 0 0;
}

.col-md-4:nth-child(1) .feature-image {
    background-image: url('../img/digital_inclusion.png');
}

.col-md-4:nth-child(2) .feature-image {
    background-image: url('../img/cybersecurity.png');
}

.col-md-4:nth-child(3) .feature-image {
    background-image: url('../img/digital_litreracy.png');
}

.feature-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.feature-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.feature-date {
    color: #888;
}

.feature-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.feature-icon {
    background: linear-gradient(45deg, #3498db, #2980b9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: none;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
    text-shadow: none;
    line-height: 1.3;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    text-shadow: none;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
}

.read-more:hover {
    color: #2980b9;
    text-decoration: none;
}

@media (max-width: 768px) {
    .feature-image {
        height: 150px;
    }

    .feature-content {
        padding: 25px 20px;
    }

    .section-title {
        font-size: 2rem;
    }
}


@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .about-hero p {
        font-size: 1.1rem;
    }

    .vision-section h2 {
        font-size: 2rem;
    }

    .vision-section p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .main-logo {
        max-width: 250px;
    }

}
