/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #5b2c6f;
    --light-purple: #7b4a8f;
    --dark-purple: #4a1f5a;
    --primary-navy: #1a1a4e;
    --accent-green: #7ed957;
    --accent-orange: #e67e22;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
}

body {
    font-family: 'Arial', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Header Styles */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-banner {
    background: var(--primary-navy);
    color: var(--white);
    padding: 8px 0;
    text-align: center;
    font-size: 0.85em;
}

.top-banner p {
    margin: 0;
}

.top-banner a {
    color: var(--accent-orange);
    text-decoration: none;
    margin-left: 10px;
    font-weight: 600;
}

.top-banner a:hover {
    text-decoration: underline;
}

.header-content {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo {
    width: 50px;
    height: 60px;
}

.logo-stripes {
    display: flex;
    gap: 4px;
    height: 100%;
    align-items: stretch;
}

.stripe {
    flex: 1;
    border-radius: 3px;
}

.stripe.purple {
    background: var(--primary-purple);
}

.stripe.green {
    background: var(--accent-green);
}

.site-title h1 {
    font-size: 2em;
    color: var(--primary-purple);
    margin-bottom: 5px;
    font-weight: bold;
}

.subtitle {
    font-size: 0.85em;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.recognition {
    font-size: 0.7em;
    color: var(--text-light);
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.top-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.85em;
}

.top-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.top-links a:hover {
    color: var(--primary-navy);
}

.search-box {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.search-box input {
    padding: 8px 15px;
    border: none;
    outline: none;
    min-width: 200px;
    font-size: 0.9em;
}

.search-box button {
    padding: 8px 15px;
    background: var(--primary-navy);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #2a2a5e;
}

/* Navigation */
.main-nav {
    background: var(--primary-navy);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0;
}

.nav-menu li a {
    display: block;
    padding: 15px 10px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.8em;
    transition: background 0.3s;
    white-space: nowrap;
}

.nav-menu li a:hover {
    background: var(--light-purple);
}

.nav-menu li a i {
    font-size: 0.7em;
    margin-left: 5px;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5em;
    cursor: pointer;
    padding: 10px;
}


/* Dropdown Menu Styles */
.nav-menu {
    position: relative;
}

.nav-menu li {
    position: relative;
}

.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #2a2a5e;
    min-width: 200px;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu li {
    width: 100%;
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.85em;
    transition: background 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.submenu li:last-child a {
    border-bottom: none;
}

.submenu li a:hover {
    background: var(--primary-navy);
    padding-left: 25px;
}

.has-submenu > a i {
    margin-left: 5px;
    font-size: 0.7em;
    transition: transform 0.3s;
}

.has-submenu:hover > a i {
    transform: rotate(180deg);
}

/* Mobile Submenu Styles */
@media (max-width: 768px) {
    .submenu {
        position: static;
        display: none;
        background: rgba(0, 0, 0, 0.2);
        box-shadow: none;
    }

    .has-submenu.mobile-open .submenu {
        display: block;
    }

    .submenu li a {
        padding-left: 40px;
    }

    .submenu li a:hover {
        padding-left: 45px;
    }
}


/* ================================
   HERO SLIDER - IMPROVED & RESPONSIVE
   ================================ */

.hero-slider {
    position: relative;
    background: #1a1a2e;
    overflow: hidden;
    width: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 600px;
}

.slide {
    display: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(30, 30, 60, 0.85) 0%,
        rgba(30, 30, 60, 0.6) 50%,
        rgba(30, 30, 60, 0.3) 100%
    );
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.slide-text {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.slide-overlay-image {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    margin-bottom: 10px;
}

.slide-overlay-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-title {
    font-size: 3em;
    font-weight: 800;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.slide-description {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.btn-learn-more {
    display: inline-block;
    padding: 16px 40px;
    background: var(--primary-purple);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    font-weight: 700;
    font-size: 1.1em;
    align-self: flex-start;
    box-shadow: 0 8px 20px rgba(91, 44, 111, 0.4);
}

.btn-learn-more:hover {
    background: var(--light-purple);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(91, 44, 111, 0.6);
}

/* Navigation Arrows */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 78, 0.8);
    color: var(--white);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    backdrop-filter: blur(10px);
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--primary-navy);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dots .dot.active {
    background: var(--accent-green);
    transform: scale(1.3);
    border-color: var(--white);
    box-shadow: 0 4px 12px rgba(126, 217, 87, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .slider-container {
        height: 550px;
    }

    .slide-title {
        font-size: 2.5em;
    }

    .slide-description {
        font-size: 1.15em;
    }

    .slide-text {
        max-width: 550px;
    }
}

@media (max-width: 992px) {
    .slider-container {
        height: 500px;
    }

    .slide-content {
        padding: 60px 0;
    }

    .slide-title {
        font-size: 2.2em;
    }

    .slide-description {
        font-size: 1.1em;
    }

    .slide-overlay-image {
        width: 160px;
        height: 160px;
    }

    .slider-prev,
    .slider-next {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }

    .slider-prev {
        left: 20px;
    }

    .slider-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .slider-container {
        height: 450px;
    }

    .slide-content {
        padding: 40px 0;
        text-align: center;
        justify-content: center;
    }

    .slide-text {
        max-width: 100%;
        align-items: center;
        gap: 20px;
    }

    .slide-overlay {
        background: linear-gradient(
            to bottom,
            rgba(30, 30, 60, 0.9) 0%,
            rgba(30, 30, 60, 0.75) 100%
        );
    }

    .slide-overlay-image {
        width: 140px;
        height: 140px;
        margin: 0 auto 10px;
    }

    .slide-title {
        font-size: 1.8em;
        text-align: center;
    }

    .slide-description {
        font-size: 1em;
        text-align: center;
    }

    .btn-learn-more {
        padding: 14px 32px;
        font-size: 1em;
        align-self: center;
    }

    .slider-prev,
    .slider-next {
        width: 45px;
        height: 45px;
        font-size: 1.1em;
    }

    .slider-prev {
        left: 15px;
    }

    .slider-next {
        right: 15px;
    }

    .slider-dots {
        bottom: 25px;
        gap: 10px;
    }

    .slider-dots .dot {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 576px) {
    .slider-container {
        height: 400px;
    }

    .slide-content {
        padding: 30px 0;
    }

    .slide-text {
        gap: 15px;
    }

    .slide-overlay-image {
        width: 120px;
        height: 120px;
    }

    .slide-title {
        font-size: 1.5em;
    }

    .slide-description {
        font-size: 0.95em;
    }

    .btn-learn-more {
        padding: 12px 28px;
        font-size: 0.95em;
    }

    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }

    .slider-dots {
        bottom: 20px;
        gap: 8px;
    }

    .slider-dots .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 400px) {
    .slider-container {
        height: 380px;
    }

    .slide-title {
        font-size: 1.3em;
    }

    .slide-description {
        font-size: 0.9em;
    }

    .slide-overlay-image {
        width: 100px;
        height: 100px;
    }
}

/* CESS at a Glance */
.cess-glance {
    background: #1a1a1a;
    padding: 60px 0;
}

.cess-glance h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
}

.gallery-slider {
    position: relative;
    padding: 0 60px;
}

.gallery-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-navy) #333;
}

.gallery-container::-webkit-scrollbar {
    height: 8px;
}

.gallery-container::-webkit-scrollbar-track {
    background: #333;
}

.gallery-container::-webkit-scrollbar-thumb {
    background: var(--primary-navy);
    border-radius: 4px;
}

.gallery-item {
    flex: 0 0 300px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 78, 0.8);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.gallery-prev {
    left: 0;
}

.gallery-next {
    right: 0;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--primary-navy);
    transform: translateY(-50%) scale(1.1);
}

/* Events and Updates */
.events-updates {
    background: var(--primary-navy);
    padding: 80px 0;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.events-badge {
    display: inline-block;
    padding: 12px 40px;
    background: var(--accent-green);
    color: var(--text-dark);
    font-weight: bold;
    border-radius: 50px;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.updates-section {
    position: relative;
}

.updates-badge {
    background: var(--white);
    transform: rotate(-45deg);
    display: inline-block;
    padding: 50px;
    margin-bottom: 30px;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.updates-badge span {
    transform: rotate(45deg);
    display: block;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--text-dark);
}

.event-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.event-card h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3em;
    line-height: 1.4;
}

.event-meta {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95em;
}

.event-meta .date {
    font-weight: 600;
}

.event-link {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.event-link:hover {
    color: var(--white);
    text-decoration: underline;
}

.updates-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.updates-list {
    list-style: none;
    padding: 0;
}

.updates-list li {
    margin-bottom: 20px;
    padding-left: 20px;
    position: relative;
}

.updates-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

.updates-list a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.6;
}

.updates-list a:hover {
    color: var(--accent-green);
}

.more-link {
    color: var(--white);
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    font-weight: bold;
    transition: color 0.3s;
}

.more-link:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.blog-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2em;
    color: var(--text-dark);
}

.blog-featured {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    background: var(-- white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.blog-sidebar {
display: flex;
flex-direction: column;
}

.author-badge {
background: linear-gradient(135deg, var(--primary-navy) 0%, #2a2a5e 100%);
color: var(--white);
padding: 30px 20px;
border-radius: 15px;
text-align: center;
box-shadow: 0 5px 15px rgba(26, 26, 78, 0.3);
}

.author-initial {
width: 80px;
height: 80px;
background: rgba(255, 255, 255, 0.2);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 2.5em;
fo

nt-weight: bold;
margin: 0 auto 15px;
border: 3px solid rgba(255, 255, 255, 0.3);
}

.author-info {
display: flex;
flex-direction: column;
gap: 5px;
}

.author-name {
font-weight: bold;
font-size: 1.1em;
}

.author-info small {
font-size: 0.85em;
opacity: 0.9;
}

.blog-content h3 {
color: var(--text-dark);
margin-bottom: 20px;
font-size: 1.6em;
line-height: 1.3;
}

.blog-content p {
color: var(--text-light);
margin-bottom: 25px;
line-height: 1.8;
font-size: 1.05em;
}

.blog-meta {
margin-bottom: 20px;
}

.category {
display: inline-block;
padding: 6px 18px;
background: var(--primary-navy);
color: var(--white);
border-radius: 20px;
font-size: 0.85em;
font-weight: 500;
}

.read-more {
color: var(--primary-navy);
text-decoration: none;
font-weight: bold;
font-size: 1.05em;
transition: color 0.3s;
}

.read-more:hover { color: #2a2a5e; text-decoration: underline; }

.more-blog-link {
display: block;
text-align: center;
color: var(--primary-navy);
text-decoration: none;
font-weight: bold;
font-size: 1.1em;
transition: color 0.3s;
}

.more-blog-link:hover { color: #2a2a5e; }

/* Footer */
.main-footer {
background: #d9d9d9;
padding: 50px 0 20px;
}

.footer-content {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 40px;
margin-bottom: 40px;
}

.footer-column h3 {
color: var(--text-dark);
margin-bottom: 20px;
font-size: 1.2em;
font-weight: 600;
}

.footer-column ul {
list-style: none;
}

.footer-column li {
margin-bottom: 12px;
}

.footer-column a {
color: var(--text-light);
text-decoration: none;
transition: color 0.3s;
font-size: 0.95em;
}

.footer-column a:hover { color: var(--primary-navy); }

.social-links {
display: flex;
gap: 12px;
margin-top: 15px;
}

.social-links a {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background: var(--primary-navy);
color: var(--white);
border-radius: 50%;
text-decoration: none;
transition: all 0.3s;
}

.social-links a:hover { background: #2a2a5e; transform: translateY(-3px); }

.footer-bottom {
text-align: center;
padding-top: 30px;
border-top: 2px solid #bbb;
color: var(--text-light);
}

.footer-bottom p {
margin: 5px 0;
font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 1024px) {
.nav-menu {
flex-wrap: wrap;
}

.nav-menu li a {
    font-size: 0.75em;
    padding: 12px 8px;
}

.diamond-shape {
    width: 350px;
    height: 350px;
}

}

@media (max-width: 768px) {
.header-wrapper {
flex-direction: column;
text-align: center;
}

.logo-section {
    flex-direction: column;
    text-align: center;
}

.header-right {
    align-items: center;
    width: 100%;
}

.top-links {
    justify-content: center;
}

.search-box input {
    min-width: 150px;
}

.main-nav {
    position: relative;
}

.nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-purple);
    z-index: 1000;
}

.nav-menu.active {
    display: flex;
}

.nav-menu li {
    width: 100%;
}

.nav-menu li a {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle {
    display: block;
    margin: 10px auto;
}

.slide-content {
    flex-direction: column;
    text-align: center;
}

.nep-title {
    font-size: 2.5em;
}

.diamond-shape {
    width: 300px;
    height: 300px;
}

.section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
}

.blog-featured {
    grid-template-columns: 1fr;
}

.footer-content {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-slider {
    padding: 0 40px;
}

}

@media (max-width: 480px) {
.site-title h1 {
font-size: 1.5em;
}

.subtitle {
    font-size: 0.75em;
}

.recognition {
    font-size: 0.65em;
}

.nep-title {
    font-size: 2em;
}

.diamond-shape {
    width: 250px;
    height: 250px;
}

.footer-content {
    grid-template-columns: 1fr;
}

.event-card,
.updates-content {
    padding: 20px;
}

.blog-featured {
    padding: 25px;
}

}


/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2a2a5e 100%);
    padding: 60px 0 40px;
    color: var(--white);
}

.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.breadcrumb span:last-child {
    font-weight: 500;
}

/* Page Content Styles */
.page-content {
    padding: 60px 0;
    background: var(--white);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper h2 {
    color: var(--primary-navy);
    margin-bottom: 20px;
    font-size: 2em;
}

.content-wrapper p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05em;
}

.placeholder-content {
    margin-top: 30px;
}

.info-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-navy);
    margin-top: 30px;
}

.info-box h3 {
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.info-box p {
    color: var(--text-dark);
    margin: 0;
}

/* Logo Link Styles */
.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.logo-link:hover .site-title h1 {
    color: var(--light-purple);
}

/* Active Menu Item */
.nav-menu li a.active {
    background: var(--light-purple);
}

/* Content Listing */
.content-listing {
    padding: 60px 0;
    background: #fff;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.content-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.content-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.content-card:hover .content-image img {
    transform: scale(1.05);
}

.content-body {
    padding: 25px;
}

.content-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.content-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-article {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-blog {
    background: #e8f5e9;
    color: #388e3c;
}

.badge-event {
    background: #fff3e0;
    color: #f57c00;
}

.content-date {
    font-size: 0.85em;
    color: #666;
}

.content-title {
    font-size: 1.4em;
    margin-bottom: 12px;
    line-height: 1.3;
}

.content-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.content-title a:hover {
    color: var(--primary-purple);
}

.content-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.content-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.content-author {
    font-size: 0.9em;
    color: var(--text-light);
}

.read-more {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--light-purple);
}

/* Single Content Page */
.content-single {
    background: #fff;
}

.content-header {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-bottom: 3px solid var(--primary-purple);
}

.content-header .content-meta {
    margin-bottom: 20px;
}

.content-header h1 {
    font-size: 2.8em;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.content-lead {
    font-size: 1.3em;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.event-details {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 25px;
    padding: 20px;
    background: rgba(91, 44, 111, 0.05);
    border-radius: 8px;
}

.event-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.event-info i {
    color: var(--primary-purple);
    font-size: 1.2em;
    margin-top: 2px;
}

.event-info strong {
    display: block;
    margin-bottom: 5px;
}

.content-featured-image {
    padding: 40px 0;
    background: #f9f9f9;
}

.content-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.content-body-wrapper {
    padding: 60px 0;
}

.content-main {
    max-width: 900px;
    margin: 0 auto;
}

.content-body-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.content-body-text h2 {
    font-size: 1.8em;
    margin: 40px 0 20px;
    color: var(--primary-purple);
}

.content-body-text h3 {
    font-size: 1.4em;
    margin: 30px 0 15px;
    color: var(--text-dark);
}

.content-body-text p {
    margin-bottom: 20px;
}

.content-body-text ul,
.content-body-text ol {
    margin: 20px 0;
    padding-left: 30px;
}

.content-body-text li {
    margin-bottom: 10px;
}

.content-body-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

.content-body-text blockquote {
    border-left: 4px solid var(--primary-purple);
    padding: 20px;
    margin: 30px 0;
    background: #f9f9f9;
    font-style: italic;
}

.content-taxonomies {
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 30px;
}

.content-taxonomies h3 {
    margin-bottom: 15px;
    font-size: 1.2em;
}

.taxonomy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.taxonomy-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.taxonomy-category {
    background: #e3f2fd;
    color: #1976d2;
}

.taxonomy-tag {
    background: #fce4ec;
    color: #c2185b;
}

.content-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary {
    background: #f0f0f0;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1.2em;
}

/* Responsive */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-header h1 {
        font-size: 2em;
    }

    .event-details {
        flex-direction: column;
        gap: 15px;
    }

    .content-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Search Page */
.search-results {
    padding: 60px 0;
    background: #fff;
}

.search-query {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--text-light);
}

.result-count {
    font-size: 1em;
    color: var(--text-light);
}

.search-form-wrapper {
    max-width: 600px;
    margin: 0 auto 50px;
}

.search-form-page {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-form-page input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    background: #fff;
}

.search-form-page button {
    padding: 15px 30px;
    background: var(--primary-purple);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.search-form-page button:hover {
    background: var(--light-purple);
    transform: scale(1.05);
}

.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results i {
    font-size: 5em;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.no-results p {
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 15px;
}

.browse-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary-purple);
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--light-purple);
    transform: translateY(-2px);
}



/* ================================
   SEARCH RESULTS - LIST VIEW
   ================================ */

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.search-result-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.search-result-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: var(--primary-purple);
}

.result-row {
    display: flex;
    gap: 25px;
    padding: 25px;
}

.result-image {
    flex-shrink: 0;
    width: 280px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.search-result-item:hover .result-image img {
    transform: scale(1.08);
}

.result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0; /* Prevents flex items from overflowing */
}

.result-content.full-width {
    width: 100%;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.result-type {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-article {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-blog {
    background: #e8f5e9;
    color: #388e3c;
}

.badge-event {
    background: #fff3e0;
    color: #f57c00;
}

.badge-section {
    background: #f3e5f5;
    color: #7b1fa2;
}

.result-date,
.result-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    color: var(--text-light);
}

.result-date i,
.result-author i {
    font-size: 0.95em;
    color: var(--primary-purple);
}

.result-title {
    font-size: 1.6em;
    line-height: 1.3;
    margin: 0;
    font-weight: 700;
}

.result-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.result-title a:hover {
    color: var(--primary-purple);
}

.result-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    flex: 1;
    font-size: 1.05em;
}

.result-footer {
    display: flex;
    align-items: center;
    padding-top: 12px;
    border-top: 2px solid #f0f0f0;
}

.result-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.result-link:hover {
    color: var(--light-purple);
    gap: 12px;
}

.result-link i {
    transition: transform 0.3s;
    font-size: 0.9em;
}

.result-link:hover i {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .result-image {
        width: 220px;
        height: 160px;
    }

    .result-title {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .result-row {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .result-image {
        width: 100%;
        height: 220px;
    }

    .result-title {
        font-size: 1.35em;
    }

    .result-meta {
        gap: 10px;
    }

    .result-excerpt {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .search-result-item {
        border-radius: 8px;
    }

    .result-row {
        padding: 15px;
        gap: 15px;
    }

    .result-image {
        height: 180px;
        border-radius: 8px;
    }

    .result-title {
        font-size: 1.2em;
    }

    .result-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .result-date,
    .result-author {
        font-size: 0.85em;
    }

    .result-excerpt {
        font-size: 0.95em;
    }

    .result-link {
        font-size: 1em;
    }
}


/* Search Box in Header */
.search-box {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}

.search-box input {
    padding: 10px 15px;
    border: none;
    outline: none;
    min-width: 200px;
}

.search-box button {
    padding: 10px 20px;
    background: var(--primary-purple);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: var(--light-purple);
}


/* ================================
   404 ERROR PAGE STYLES
   ================================ */

.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.error-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.error-illustration {
    position: relative;
    margin-bottom: 40px;
}

.error-code {
    font-size: 10em;
    font-weight: 900;
    color: var(--primary-purple);
    opacity: 0.15;
    line-height: 1;
    margin: 0;
    position: relative;
    z-index: 1;
}

.error-icon {
    font-size: 6em;
    color: var(--primary-purple);
    position: relative;
    z-index: 2;
    margin-top: -120px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.error-content h1 {
    font-size: 2.5em;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.error-message {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.error-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.error-actions .btn-primary {
    background: var(--primary-purple);
    color: #fff;
}

.error-actions .btn-primary:hover {
    background: var(--light-purple);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(91, 44, 111, 0.4);
}

.error-actions .btn-secondary {
    background: #fff;
    color: var(--text-dark);
    border: 2px solid #e0e0e0;
}

.error-actions .btn-secondary:hover {
    background: #f5f5f5;
    border-color: var(--primary-purple);
    transform: translateY(-3px);
}

.helpful-links {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.helpful-links h3 {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: var(--text-dark);
    font-weight: 600;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.helpful-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.helpful-link:hover {
    background: var(--primary-purple);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(91, 44, 111, 0.3);
    border-color: var(--primary-purple);
}

.helpful-link i {
    font-size: 2.5em;
    transition: transform 0.3s;
}

.helpful-link:hover i {
    transform: scale(1.1);
}

.helpful-link span {
    font-weight: 600;
    font-size: 1em;
}

.search-suggestion {
    background: #fff;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.search-suggestion p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 500;
}

.search-form-404 {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 50px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-form-404 input {
    flex: 1;
    padding: 14px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    background: #fff;
    outline: none;
}

.search-form-404 input:focus {
    box-shadow: 0 0 0 3px rgba(91, 44, 111, 0.1);
}

.search-form-404 button {
    padding: 14px 30px;
    background: var(--primary-purple);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-weight: 600;
}

.search-form-404 button:hover {
    background: var(--light-purple);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(91, 44, 111, 0.4);
}

/* Responsive 404 Page */
@media (max-width: 768px) {
    .error-page {
        padding: 60px 20px;
    }

    .error-code {
        font-size: 6em;
    }

    .error-icon {
        font-size: 4em;
        margin-top: -80px;
    }

    .error-content h1 {
        font-size: 1.8em;
    }

    .error-message {
        font-size: 1em;
        padding: 0 20px;
    }

    .error-actions {
        flex-direction: column;
        padding: 0 20px;
    }

    .error-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .helpful-links {
        padding: 30px 20px;
    }

    .link-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .helpful-link {
        padding: 20px 15px;
    }

    .helpful-link i {
        font-size: 2em;
    }

    .search-suggestion {
        padding: 25px 20px;
    }

    .search-form-404 {
        flex-direction: column;
        border-radius: 15px;
        padding: 15px;
    }

    .search-form-404 input {
        border-radius: 10px;
    }

    .search-form-404 button {
        border-radius: 10px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 4em;
    }

    .error-icon {
        font-size: 3em;
        margin-top: -60px;
    }

    .link-grid {
        grid-template-columns: 1fr;
    }
}


/* ================================
   HOMEPAGE SECTIONS
   ================================ */

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5em;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2em;
    color: var(--text-light);
}

.view-all {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.view-all:hover {
    color: var(--light-purple);
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dots .dot.active {
    background: var(--primary-purple);
    width: 30px;
    border-radius: 10px;
}

/* Featured Section */
.featured-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.featured-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.featured-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-card:hover .featured-image img {
    transform: scale(1.1);
}

.featured-content {
    padding: 30px;
}

.featured-content h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.featured-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.featured-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.featured-link:hover {
    color: var(--light-purple);
}

/* Content Grid Section */
.content-grid-section {
    padding: 80px 0;
    background: #fff;
}

/* Latest Section */
.latest-section {
    padding: 80px 0;
    background: #fff;
}

.latest-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

/* Events Section */
.events-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ebf0 100%);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.event-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.event-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-purple);
    color: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(91, 44, 111, 0.4);
}

.event-date-badge .day {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1;
}

.event-date-badge .month {
    display: block;
    font-size: 0.9em;
    text-transform: uppercase;
}

.event-body {
    padding: 25px;
}

.event-title {
    font-size: 1.3em;
    margin-bottom: 15px;
}

.event-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.event-title a:hover {
    color: var(--primary-purple);
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: var(--text-light);
    margin-bottom: 10px;
}

.event-meta i {
    color: var(--primary-purple);
}

.event-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin: 15px 0;
}

.event-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.event-link:hover {
    color: var(--light-purple);
}

/* Custom HTML Section */
.custom-html-section {
    padding: 80px 0;
}

.custom-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .featured-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2em;
    }

    .latest-section .section-header {
        flex-direction: column;
        gap: 20px;
    }
}


/* ================================
   EVENTS & BLOG LISTING PAGES
   ================================ */

/* Filters Section */
.filters-section {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.filters-form {
    width: 100%;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.9em;
    color: var(--text-dark);
}

.filter-select,
.filter-input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s;
    background: #fff;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(91, 44, 111, 0.1);
}

.filter-search {
    grid-column: span 2;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: end;
}

.filter-actions .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.results-info {
    margin-bottom: 30px;
    padding: 15px 20px;
    background: #f9f9f9;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95em;
}

.filter-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-purple);
    color: #fff;
    border-radius: 20px;
    font-size: 0.85em;
    margin-left: 10px;
}

/* Events Grid Enhancements */
.events-grid .event-card {
    position: relative;
}

.event-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.event-status-upcoming {
    background: #4caf50;
    color: #fff;
}

.event-status-current {
    background: #ff9800;
    color: #fff;
}

.event-status-past {
    background: #9e9e9e;
    color: #fff;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.event-details .event-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
    color: var(--text-dark);
}

.event-details .event-meta i {
    color: var(--primary-purple);
    width: 20px;
    text-align: center;
}

/* Blog Grid Enhancements */
.blog-grid .blog-card {
    display: flex;
    flex-direction: column;
}

.blog-grid .content-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-grid .content-footer {
    margin-top: auto;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination-wrapper nav {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Empty State Enhancement */
.empty-state {
    text-align: center;
    padding: 100px 20px;
    background: #fff;
    border-radius: 15px;
    margin: 40px 0;
}

.empty-state i {
    font-size: 5em;
    color: #ddd;
    margin-bottom: 25px;
    display: block;
}

.empty-state p {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .filters-row {
        grid-template-columns: 1fr;
    }

    .filter-search {
        grid-column: span 1;
    }

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

    .filter-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .results-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .event-details {
        gap: 10px;
        padding: 12px;
    }
}


/* ================================
   DYNAMIC FORMS
   ================================ */

.form-page {
    padding: 60px 0;
    background: #f9f9f9;
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-description {
    font-size: 1.1em;
    color: var(--text-light);
    margin-top: 15px;
}

.alert {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.alert i {
    font-size: 1.5em;
    flex-shrink: 0;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.dynamic-form {
    margin-top: 30px;
}

.form-fields {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field.col-12 { grid-column: span 12; }
.form-field.col-6 { grid-column: span 6; }
.form-field.col-4 { grid-column: span 4; }
.form-field.col-3 { grid-column: span 3; }

.form-field label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95em;
}

.form-field label.required {
    display: flex;
    align-items: center;
    gap: 5px;
}

.required-mark {
    color: #dc3545;
    font-size: 1.2em;
}

.form-input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(91, 44, 111, 0.1);
}

.form-input.error {
    border-color: #dc3545;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s;
}

.radio-label:hover,
.checkbox-label:hover {
    background: #f5f5f5;
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.help-text {
    font-size: 0.85em;
    color: var(--text-light);
    font-style: italic;
}

.error-message {
    color: #dc3545;
    font-size: 0.85em;
    font-weight: 500;
}

.form-actions {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.form-actions .btn {
    padding: 15px 40px;
    font-size: 1.05em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-wrapper {
        padding: 30px 20px;
    }

    .form-fields {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-field.col-12,
    .form-field.col-6,
    .form-field.col-4,
    .form-field.col-3 {
        grid-column: span 1;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}


/* ================================
   EVENTS PAGE STYLING
   ================================ */

.events-listing .results-info {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ebf0 100%);
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 35px;
    border-left: 4px solid var(--primary-purple);
}

.events-listing .results-info p {
    margin: 0;
    font-size: 1.05em;
    color: var(--text-dark);
    font-weight: 500;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.event-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-purple);
}

.event-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-purple);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(91, 44, 111, 0.4);
    min-width: 70px;
}

.event-date-badge .day {
    display: block;
    font-size: 2em;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2px;
}

.event-date-badge .month {
    display: block;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.event-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.event-status-upcoming {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: #fff;
}

.event-status-current {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
    animation: pulse 2s infinite;
}

.event-status-past {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
    color: #fff;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

.event-body {
    padding: 25px;
}

.event-title {
    font-size: 1.4em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.event-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.event-title a:hover {
    color: var(--primary-purple);
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid var(--primary-purple);
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95em;
    color: var(--text-dark);
}

.event-meta i {
    color: var(--primary-purple);
    width: 24px;
    text-align: center;
    font-size: 1.1em;
}

.event-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin: 15px 0;
    font-size: 1em;
}

.event-footer {
    padding-top: 18px;
    border-top: 2px solid #e0e0e0;
    margin-top: auto;
}

.event-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.event-link:hover {
    color: var(--light-purple);
    gap: 12px;
}

.event-link i {
    transition: transform 0.3s;
}

.event-link:hover i {
    transform: translateX(4px);
}

/* Empty State */
.events-grid + .empty-state {
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-details {
        gap: 12px;
        padding: 15px;
    }

    .event-body {
        padding: 20px;
    }
}


/* ================================
   HOMEPAGE UPCOMING EVENTS SECTION
   ================================ */

.upcoming-events-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ebf0 100%);
    position: relative;
    overflow: hidden;
}

.upcoming-events-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(91, 44, 111, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.upcoming-events-section .section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.upcoming-events-section .section-header h2 {
    font-size: 2.5em;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 800;
}

.upcoming-events-section .section-header .view-all {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.upcoming-events-section .section-header .view-all:hover {
    color: var(--light-purple);
    gap: 12px;
}

.upcoming-events-section .section-header .view-all i {
    transition: transform 0.3s;
}

.upcoming-events-section .section-header .view-all:hover i {
    transform: translateX(4px);
}

.upcoming-events-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    position: relative;
    z-index: 1;
}

.upcoming-event-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.upcoming-event-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(91, 44, 111, 0.25);
    border-color: var(--primary-purple);
}

.upcoming-event-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.upcoming-event-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.upcoming-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.upcoming-event-card:hover .upcoming-event-image img {
    transform: scale(1.15) rotate(2deg);
}

.upcoming-event-content {
    padding: 30px;
}

.upcoming-event-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.upcoming-event-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.upcoming-event-title a:hover {
    color: var(--primary-purple);
}

.upcoming-event-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.event-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 3px solid var(--primary-purple);
    transition: all 0.3s;
}

.event-info-row:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.event-info-row i {
    color: var(--primary-purple);
    font-size: 1.2em;
    width: 24px;
    text-align: center;
}

.event-info-row span {
    color: var(--text-dark);
    font-size: 0.95em;
    font-weight: 500;
}

.upcoming-event-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.upcoming-event-link:hover {
    color: var(--light-purple);
    gap: 15px;
}

.upcoming-event-link i {
    transition: transform 0.3s;
}

.upcoming-event-link:hover i {
    transform: translateX(5px);
}

/* No Events Message */
.no-upcoming-events {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    grid-column: 1 / -1;
}

.no-upcoming-events i {
    font-size: 4em;
    color: #ddd;
    margin-bottom: 20px;
}

.no-upcoming-events p {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 25px;
}

.no-upcoming-events .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: var(--primary-purple);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.no-upcoming-events .btn:hover {
    background: var(--light-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(91, 44, 111, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .upcoming-events-section {
        padding: 60px 0;
    }

    .upcoming-events-section .section-header h2 {
        font-size: 2em;
    }

    .upcoming-events-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .upcoming-event-content {
        padding: 25px 20px;
    }

    .upcoming-event-title {
        font-size: 1.3em;
    }
}


/* ================================
   CONTENT ATTACHMENTS
   ================================ */

.content-attachments {
    margin: 40px 0;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
    border-left: 4px solid var(--primary-purple);
}

.content-attachments h3 {
    font-size: 1.5em;
    color: var(--text-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-attachments h3 i {
    color: var(--primary-purple);
    font-size: 0.9em;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.attachment-item:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 5px 15px rgba(91, 44, 111, 0.15);
    transform: translateY(-2px);
}

.attachment-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
    position: relative;
}

.attachment-icon i {
    font-size: 2em;
    margin-bottom: 5px;
}

.file-extension {
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.attachment-details {
    flex: 1;
    min-width: 0;
}

.attachment-title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    word-wrap: break-word;
}

.attachment-description {
    font-size: 0.9em;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.5;
}

.attachment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85em;
    color: var(--text-light);
}

.file-size {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.file-size i {
    color: var(--primary-purple);
}

.attachment-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-download,
.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-download {
    background: var(--primary-purple);
    color: #fff;
}

.btn-download:hover {
    background: var(--light-purple);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(91, 44, 111, 0.3);
}

.btn-view {
    background: #fff;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-view:hover {
    background: var(--primary-purple);
    color: #fff;
}

/* File Type Specific Colors */
.attachment-icon .fa-file-pdf {
    color: #fff;
}

.attachment-item:has(.fa-file-pdf) .attachment-icon {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.attachment-item:has(.fa-file-word) .attachment-icon {
    background: linear-gradient(135deg, #2980b9 0%, #2c3e50 100%);
}

.attachment-item:has(.fa-file-excel) .attachment-icon {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.attachment-item:has(.fa-file-powerpoint) .attachment-icon {
    background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
}

.attachment-item:has(.fa-file-archive) .attachment-icon {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .attachment-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .attachment-icon {
        width: 60px;
        height: 60px;
    }

    .attachment-icon i {
        font-size: 1.8em;
    }

    .attachment-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-download,
    .btn-view {
        width: 100%;
        justify-content: center;
    }
}

