* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2d9f6f;
    --dark-green: #1e7f5a;
    --light-green: #e8f5f0;
    --blue-accent: #4a90e2;
    --navy-blue: #2c5f7f;
    --text-dark: #2c3e50;
    --text-gray: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
    --purple-gradient-start: #667eea;
    --purple-gradient-end: #764ba2;
}

body {
    font-family: 'Droid Serif',  sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--bg-light);
}
.fellowship-main{
        font-family: 'Droid Serif',  sans-serif;

}
.container {
    margin: 0 auto;
    padding: 0 20px;
    /* max-width: 1200px; */
}

/* Hero Section */
.hero-section {
    background-color: var(--light-green);
    padding: 40px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.hero-left h1 {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.hero-left > p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.opportunity-types h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.type-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.type-card {
    background-color: var(--white);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.type-card.active {
    border-color: var(--primary-green);
    background-color: var(--light-green);
}

.type-card i {
    font-size: 32px;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.type-card h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.type-card p {
    font-size: 12px;
    color: var(--text-gray);
}

/* Carousel Wrapper */
.carousel-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 5px;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 400px;
}

/* Card Base */
.carousel-card {
    position: absolute;
    top: 0;
    width: 330px;
    height: 400px;
    background: linear-gradient(135deg, #3a9e3f 0%, #43A047 100%);
    border-radius: 14px;
    padding: 28px;
    color: var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    transition: transform 0.9s ease, opacity 0.9s ease;
}

.carousel-card img {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
}

.badge {
    display: inline-block;
    background: #004FA1;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-content h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.title {
    font-size: 13px !important;
    opacity: 0.9;
    margin-bottom: 8px;
}

.description {
    font-size: 14px !important;
    margin-bottom: 14px;
}

.read-more {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
}

/* Positions */
.carousel-card.center {
    left: 50%;
    transform: translateX(-50%) scale(1);
    z-index: 3;
    opacity: 1;
}

.carousel-card.left {
    left: 25%;
    transform: scale(0.85);
    opacity: 0.7;
    z-index: 1;
}

.carousel-card.right {
    right: 25%;
    transform: scale(0.85);
    opacity: 0.7;
    z-index: 1;
}

/* Filters Section */
.filters-section {
    background:#DBF2DE;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.search-btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 24px;
    transition: background-color 0.3s;
}

.search-btn-primary:hover {
    background-color: var(--dark-green);
}

.tags-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background-color: #C3EBC8;
    color: black;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.tag:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* Main Content */
.main-content {
    padding: 40px 0;
    background-color: var(--bg-light);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr 320px;
    gap: 30px;
}

/* Sidebar Filters */
.sidebar {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.filter-header h3 {
    font-size: 18px;
}

.clear-all {
    background: none;
    border: none;
    color: var(--primary-green);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.clear-all:hover {
    color: var(--dark-green);
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section h4 {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-section h4 i {
    font-size: 12px;
    color: var(--text-gray);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s;
}

.filter-options label:hover {
    color: var(--primary-green);
}

.filter-options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.view-location-btn {
    background: none;
    border: none;
    color: var(--primary-green);
    cursor: pointer;
    font-size: 13px;
    margin-top: 10px;
    transition: color 0.3s;
}

.view-location-btn:hover {
    color: var(--dark-green);
}

/* Fellowships Listing */
.fellowships-listing {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.header-icon {
    background-color: #DDAD0F;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
}

.section-header h2 {
    font-size: 28px;
    color: var(--text-dark);
}

/* Fellowship Card */
.fellowship-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.6s ease;
    background:linear-gradient(45deg, #EFF6FF, #FAF5FF);
}

.fellowship-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: var(--primary-green);
    background: #4caf50;
    color: white;
}
.fellowship-card:hover h3{
    color: white;
}
.fellowship-card:hover p{
    color: white;
}
.fellowship-card:hover span{
    color: white;
}
.fellowship-card:hover span:first-child{
    color: white;
}
.fellowship-card:hover .tag-item{
    color: white;
    background: transparent;
    border: 1px solid lightgrey;
}
.card-main h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 8px;
    transition: color 0.3s;
}

/* .fellowship-card:hover .card-main h3 {
    color: var(--primary-green);
} */

.organization {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.deadline {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.card-meta span {
    font-size: 13px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-meta i {
    color: var(--primary-green);
}
.card-meta span i:hover{
    color:white;
}
.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-item {
    background-color: var(--light-green);
    color: var(--primary-green);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
}
.card-action button {
background-color: transparent;
    color: black;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    white-space: nowrap;
    font-weight: 600;
}

.card-action button:hover {
    background-color: white;
    gap: 12px;
    color:#4caf50 ;
}

.join-btn {
    background-color:transparent;
}

.join-btn:hover {
    background-color: white;
    gap: 12px;
    color:#4caf50 ;
}

.get-involved-btn {
    background-color: transparent;
}

.get-involved-btn:hover {
      background-color: white;
    gap: 12px;
    color:#4caf50 ;
}

.load-more-btn {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 12px 40px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    margin: 30px auto 0;
    transition: background-color 0.3s;
}

.load-more-btn:hover {
    background-color: var(--dark-green);
}

/* Story Sidebar */
.story-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Career Catalysts Widgets */
.career-widget {
    padding: 10px 0;
    border-radius: 10px;
}

.widget-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.widget-content {
    padding: 24px;
    border-radius: 5px;
}

.career-title {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
}

.career-description {
    font-size: 14px;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 16px;
}

.widget-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.widget-link:hover {
    opacity: 0.7;
}

.arrow {
    font-size: 18px;
}

/* Yellow Widget */
.yellow-widget .widget-content {
    background-color: #ffd900;
}

/* Blue Widget */
.blue-widget .widget-content {
    background: linear-gradient(135deg, #004FA1 0%, #023870 100%);
    color: #ffffff;
}

/* Green Widget */
.green-widget .widget-content {
    background: linear-gradient(135deg, #36A23E 0%, #12951C 100%);
    color: #ffffff;
}

.blue-widget .career-title,
.blue-widget .career-description {
    color: #ffffff;
}

.event-details {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.event-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
}

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

.event-date,
.event-location {
    font-size: 13px;
    color: #ffffff;
    opacity: 0.95;
}

.white-link {
    color: #ffffff;
}

/* Green Pages Widget */
.green-pages-widget {
    padding: 0;
}

.green-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.green-description {
    font-size: 14px;
    color: #e7e7e7;
    margin-bottom: 20px;
}

.search-box {
    margin-bottom: 20px;
}

.green-search {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    background-color: #ffffff;
    box-sizing: border-box;
}

.green-search:focus {
    outline: none;
    border-color: #36A23E;
}

.green-categories {
    margin-top: 16px;
}

.category-label {
    font-size: 13px;
    font-weight: 600;
    color: #e7e7e7;
    display: block;
    margin-bottom: 12px;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    display: inline-block;
    padding: 8px 14px;
    background: linear-gradient(135deg, #36A23E 0%, #12951C 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.category-tag:hover {
    background-color: #059669;
}

.green-link {
    color: #10b981;
}

/* Quiz Widget */
.quiz-widget {
    padding: 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
}

.quiz-widget .widget-image {
    height: 220px;
}

.quiz-widget .widget-content {
    background: linear-gradient(135deg, #014994 0%, #41AD49 100%);
    color: #ffffff;
}

.quiz-badge {
    display: inline-block;
    background-color: #ec4899;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 5px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.quiz-description {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 16px;
    opacity: 0.95;
}

/* Three Column Cards */
.three-column-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 4rem;
    padding: 0 40px;
    margin-bottom: 40px;
    background-color: white;
}

.card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.5s ease;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background: linear-gradient(120deg, #9bd6e559, transparent);
    padding: 10px;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.card-label {
    padding: 2px 12px;
}

.card-label h2 {
    color: black;
    font-size: 21px !important;
    font-weight: bold;
    transition: color 0.5s ease;
}

.card-subtitle {
    font-size: 11px;
    color: #666;
    transition: color 0.5s ease;
}

/* Hover effects for cards */
#card1:hover {
    background: linear-gradient(117deg, #0852a7, #003877);
}

#card1:hover .card-label h2,
#card1:hover .card-subtitle,
#card1:hover .card-date,
#card1:hover .card-title,
#card1:hover .card-text,
#card1:hover .card-author,
#card1:hover .card-link {
    color: white !important;
}

#card2:hover {
    background: linear-gradient(119deg, #029528, #159344);
}

#card2:hover .card-label h2,
#card2:hover .card-subtitle,
#card2:hover .card-date,
#card2:hover .card-title,
#card2:hover .card-text,
#card2:hover .card-author,
#card2:hover .card-link {
    color: white !important;
}

#card3:hover {
    background: linear-gradient(117deg, #0852a7, #003877);
}

#card3:hover .card-label h2,
#card3:hover .card-subtitle,
#card3:hover .card-date,
#card3:hover .card-title,
#card3:hover .card-text,
#card3:hover .card-author,
#card3:hover .card-link {
    color: white !important;
}

.card img {
    width: 96%;
    height: 180px;
    object-fit: cover;
    margin: auto;
    display: block;
    border-radius: 6px;
}

.card-content {
    padding: 15px;
}

.card-date {
    font-size: 11px;
    color: #999;
    display: block;
    margin-bottom: 8px;
    transition: color 0.5s ease;
}

.card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color 0.5s ease;
}

.card-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    transition: color 0.5s ease;
}

.card-author {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    transition: color 0.5s ease;
}

.card-link {
    color: #2563a8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.5s ease;
}

.card-link:hover {
    text-decoration: underline;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.section-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(90deg, #014994 0%, #45b876 100%);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    width: 95%;
    margin: 40px auto;
}

.newsletter-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletterr-title {
    font-size: 24px;
    margin: 0;
    font-weight: bold;
}

.newsletterr-text {
    font-size: 14px;
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
}

.newsletter-right {
    display: flex;
    justify-content: flex-end;
}

.newsletterr-form {
    display: flex;
    gap: 10px;
    width: 100%;
    background: white;
    padding: 4px;
    border-radius: 5px;
}

.email-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.email-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.subscribe-btn {
    padding: 12px 24px;
    background: #2abf60;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.subscribe-btn:hover {
    background: #0f4028;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   MOBILE RESPONSIVE DESIGN
   ============================================ */

/* Tablet View (768px - 1024px) */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .story-sidebar {
        max-width: 100%;
    }
    
    .three-column-cards {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
}

/* Mobile View (max-width: 768px) */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Hero Section - Mobile */
    .hero-section {
        padding: 20px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
         display: flex;           /* ADD THIS */
        flex-direction: column;
    }
    .carousel-wrapper {
        order: -1;  /* This moves carousel to top */
    }
    
    .hero-left {
        order: 1;   /* Career Catalysts section */
    }
    
    .hero-left h1 {
        font-size: 28px;
        text-align: center;
    }
    
    .hero-left > p {
        font-size: 14px;
        text-align: center;
    }
    
    /* Type Cards - Mobile: 2x2 Grid */
    .type-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .type-card {
        padding: 15px 10px;
    }
    
    .type-card i {
        font-size: 28px;
    }
    
    .type-card h4 {
        font-size: 14px;
    }
    
    .type-card p {
        font-size: 11px;
    }
    
    /* Carousel - Mobile */
    .carousel {
        height: 380px;
    }
    
    .carousel-card {
        width: 280px;
        height: 380px;
        padding: 20px;
    }
    
    .carousel-card.left {
        left: -10%;
    }
    
    .carousel-card.right {
        right: -10%;
    }
    
    /* Filters Section - Mobile */
    .filters-section {
        padding: 20px 0;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .search-btn-primary {
        margin-top: 10px;
        width: 100%;
    }
    
    /* Main Content - Mobile */
    .main-content {
        padding: 20px 0;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Fellowships Listing - Mobile */
    .fellowships-listing {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-header h2 {
        font-size: 22px;
    }
    
    /* Fellowship Card - Mobile */
    .fellowship-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .card-main h3 {
        font-size: 18px;
    }
    
    .card-meta {
        gap: 15px;
    }
    
    .card-action {
        width: 100%;
    }
    
    .card-action button {
        width: 100%;
        justify-content: center;
    }
    
    /* Story Sidebar - Mobile */
    .story-sidebar {
        gap: 16px;
        max-width: 100%;
    }
    
    .widget-content {
        padding: 20px;
    }
    
    .widget-img {
        height: 250px;
    }
    
    .career-title {
        font-size: 18px;
    }
    
    .green-title {
        font-size: 20px;
    }
    
    .quiz-title {
        font-size: 20px;
    }
    
    /* Three Column Cards - Mobile: Single Column */
    .three-column-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 2rem;
        padding: 0 15px;
        margin-bottom: 20px;
    }
    
    .card img {
        height: 200px;
        width: 100%;
    }
    
    .card-content {
        padding: 12px;
    }
    
    .card-label h2 {
        font-size: 15px;
    }
    
    .card-title {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 22px;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 13px;
        text-align: center;
    }
    
    /* Newsletter Section - Mobile */
    .newsletter-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px 20px;
        width: 90%;
        margin: 30px auto;
    }
    
    .newsletterr-title {
        font-size: 20px;
    }
    
    .newsletterr-text {
        font-size: 13px;
    }
    
    .newsletter-right {
        justify-content: stretch;
    }
    
    .newsletterr-form {
        flex-direction: row;
    }
}

/* Small Mobile View (max-width: 480px) */
@media (max-width: 480px) {
    /* Hero */
    .hero-left h1 {
        font-size: 24px;
    }
    
    .hero-left > p {
        font-size: 13px;
    }
    
    /* Carousel - Extra Small */
    .carousel {
        height: 350px;
    }
    
    .carousel-card {
        width: 240px;
        height: 350px;
        padding: 16px;
    }
    
    .carousel-card img {
        height: 120px;
    }
    
    .card-content h4 {
        font-size: 18px;
    }
    
    .description {
        font-size: 13px;
    }
    
    /* Type Cards - Extra Small */
    .type-cards {
        gap: 10px;
    }
    
    .type-card {
        padding: 12px 8px;
    }
    
    .type-card i {
        font-size: 24px;
    }
    
    .type-card h4 {
        font-size: 13px;
    }
    
    /* Widgets - Extra Small */
    .widget-content {
        padding: 16px;
    }
    
    .widget-img {
        height: 200px;
    }
    
    .career-title {
        font-size: 16px;
    }
    
    .career-description {
        font-size: 13px;
    }
    
    .green-title {
        font-size: 18px;
    }
    
    .quiz-title {
        font-size: 18px;
    }
    
    /* Cards - Extra Small */
    .card img {
        height: 180px;
    }
    
    .card-content {
        padding: 10px;
    }
    
    .card-text {
        font-size: 12px;
    }
    
    /* Newsletter - Extra Small */
    .newsletter-section {
        padding: 20px 15px;
        width: 90%;
    }
    
    .newsletterr-title {
        font-size: 18px;
    }
    
    .newsletterr-text {
        font-size: 12px;
    }
    
    .newsletterr-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .subscribe-btn {
        width: 100%;
    }
    
    /* Category Tags - Extra Small */
    .category-tags {
        gap: 6px;
    }
    
    .category-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Event Details - Extra Small */
    .event-details {
        padding: 12px;
    }
    
    .event-name {
        font-size: 14px;
    }
    
    .event-date,
    .event-location {
        font-size: 12px;
    }
    
    /* Load More Button - Extra Small */
    .load-more-btn {
        padding: 10px 30px;
        font-size: 14px;
        margin: 20px auto 0;
    }
}
.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    height: 42px;
    box-sizing: border-box;
}

/* Remove the margin-top and let grid handle alignment */
.search-btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 0;
    transition: background-color 0.3s;
    font-weight: 600;
    height: 42px;
    align-self: flex-end;
}
h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem !important;
}

p {
    font-size: 16px !important;
}
h3{
    font-size: 23px;
}
.card:hover .card-meta span i {
    color: white;
}