/*
Theme Name: IAAS Nepal Pro
Description: A fully customizable and responsive theme for IAAS Nepal, with deep integration into the WordPress Customizer.
Author: Gemini
Version: 1.1
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iaas-nepal-pro
*/

/* --- Basic Reset & Global Styles --- */
:root {
    --primary-color: #47ad84;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-grey: #f9f9f9;
    --border-color: #e9e9e9;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-grey);
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* --- Header Styles --- */
.site-header {
    background-color: var(--bg-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top Bar */
.header-top-bar {
    background-color: #f5f5f5;
    padding: 8px 0;
    font-size: 0.85rem;
    color: #555;
    border-bottom: 1px solid var(--border-color);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-contact span { margin-right: 20px; }

/* Main Header Area */
.header-main {
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-branding .header-logo-container {
    height: 60px;
}
.site-branding img {
    height: 100%;
    width: auto;
}

.site-title a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Main Navigation */
.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

/* Sub-menu styling for desktop */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 999;
    padding: 10px 0;
}

.main-navigation .sub-menu li {
    padding: 0 20px;
}

.main-navigation .sub-menu a {
    white-space: nowrap;
    display: block;
    padding: 8px 0;
    border-bottom: none;
}

.main-navigation li:hover > .sub-menu {
    display: block;
}

.main-navigation li.menu-item-has-children > a::after {
    content: ' ▼';
    font-size: 0.7em;
    position: relative;
    top: -2px;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.main-navigation li:hover > a::after {
    transform: rotate(180deg);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1001;
}

.mobile-nav-menu {
    display: block;
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    padding: 0;
    transition: top 0.4s ease;
    z-index: 9999;
    overflow-y: auto;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-menu-close {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    color: var(--text-dark);
}

.mobile-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 40px 20px;
}
.mobile-nav-menu li {
    margin-bottom: 20px;
}
.mobile-nav-menu li:last-child {
    margin-bottom: 0;
}
.mobile-nav-menu a {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    padding: 10px 0;
}
.mobile-nav-menu a:hover {
    color: var(--primary-color);
}

body.mobile-menu-open .mobile-nav-menu {
    top: 0;
}

/* Mobile Sub-menu */
.mobile-nav-menu .sub-menu {
    display: none;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
    margin-top: 15px;
}

.mobile-nav-menu .sub-menu a {
    font-size: 1.2rem;
    text-transform: none;
    font-weight: 500;
}

.mobile-nav-menu .sub-menu-open > .sub-menu {
    display: block;
}

.mobile-nav-menu li.menu-item-has-children > a {
    position: relative;
    padding-right: 30px;
}

.mobile-nav-menu li.menu-item-has-children > a::after {
    content: ' ▼';
    font-size: 0.7em;
    position: relative;
    top: -2px;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.mobile-nav-menu li.sub-menu-open.menu-item-has-children > a::after {
    transform: rotate(180deg);
}

/* --- Home Page Styles --- */
.section-header {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 20px;
}
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin: 0;
}

/* Hero Slider */
.hero-slider-section {
    padding: 20px; 
    position: relative;
}
.hero-slider-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}
.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.slider-item {
    min-width: 100%;
    flex-shrink: 0;
    position: relative;
    padding-bottom: 40%; 
    height: 0;
}
.slider-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.slider-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-light);
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}
.slider-caption {
    font-size: 2rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    color: var(--text-light);
}
.cta-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.cta-button:hover {
    background-color: #3b8c6a;
}
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.dot.active {
    background-color: var(--primary-color);
}

/* Key Statistics Section */
.stats-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.stat-card {
    padding: 30px;
    border-radius: 12px;
    background-color: var(--bg-grey);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.stat-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    color: var(--primary-color);
}
.stat-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
}
.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
}
.stat-label {
    font-size: 1.1rem;
    margin: 5px 0 0;
    color: #555;
}

/* Explore Now Section */
.explore-now-section {
    padding-bottom: 60px;
}
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.explore-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}
.explore-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.explore-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}
.explore-description {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 15px 0;
}
.explore-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: auto;
}
.explore-link:hover {
    background-color: #3b8c6a;
}

/* Notice Board & Network Section */
.our-network-section, .notice-board-section {
    padding-bottom: 60px;
}
.notice-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}
.notice-card {
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.notice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.notice-card-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.notice-published-date {
    font-size: 0.8rem;
    font-style: italic;
    color: #999;
}
.notice-card-content {
    flex-grow: 1;
}
.notice-title {
    font-size: 1.4rem;
    margin: 0 0 5px 0;
    color: var(--primary-color);
}
.notice-description {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}
.notice-actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.notice-link {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}
.notice-link svg {
    stroke: var(--text-light); /* Changed from fill to stroke */
}
.notice-link:hover {
    background-color: #3b8c6a;
}
.view-all-notices-link {
    text-align: center;
    margin-top: 20px;
    grid-column: 1 / -1; /* Make it span full width */
}
.view-all-notices-link a.button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}
.view-all-notices-link a.button:hover {
    background-color: #3b8c6a;
    transform: translateY(-2px);
}
.no-notices {
    text-align: center;
    grid-column: 1 / -1;
    color: #999;
    font-style: italic;
}

/* --- Custom Page Styles --- */
.page-header {
    padding: 20px 0;
    text-align: center;
}
.nd-message-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 0;
}
.nd-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.nd-profile-image {
    width: 150px;
    height: 150px;
    min-width: 150px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.nd-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nd-profile-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.nd-profile-details h2 {
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    color: var(--primary-color);
}
.nd-profile-details p {
    font-style: italic;
    margin: 0;
    font-size: 0.95rem;
}
.nd-message-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.nd-message-content p {
    margin-bottom: 20px;
}

/* --- Our Network Page Styles --- */
.our-network-section {
    padding: 40px 0;
}
.nepal-map-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 40px;
    max-width: 800px;
}
.nepal-map-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.map-placeholder {
    background-color: #e0e0e0;
    border-radius: 12px;
    padding: 100px 20px;
    text-align: center;
    color: #777;
    font-size: 1.2rem;
    font-weight: 500;
}
.local-committees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.committee-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.committee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
.committee-logo-container {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}
.committee-logo-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.committee-name {
    font-size: 1.4rem;
    margin: 0 0 5px 0;
    color: var(--primary-color);
}
.committee-director {
    font-style: italic;
    font-weight: 500;
    margin-bottom: 15px;
}
.committee-details p {
    margin: 0;
    font-size: 0.95rem;
}
.committee-details p span {
    font-weight: 600;
}
.committee-details a {
    color: var(--text-dark);
    text-decoration: underline;
}
.committee-details a:hover {
    color: var(--primary-color);
}
.committee-details .website-link {
    display: inline-block;
    margin-top: 10px;
}

/* --- Departments Template Styles --- */
.department-intro {
    padding: 40px 0;
}
.department-content p:last-child {
    margin-bottom: 0;
}
.department-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 60px;
}
.member-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
.member-photo-container {
    width: 120px;
    height: 120px;
    min-width: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
}
.member-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.member-name {
    font-size: 1.2rem;
    margin: 0 0 5px 0;
    color: var(--primary-color);
}
.member-position {
    font-style: italic;
    font-weight: 500;
    margin-bottom: 10px;
    color: #555;
}
.member-email a {
    font-size: 0.95rem;
    color: var(--text-dark);
    text-decoration: underline;
}
.member-email a:hover {
    color: var(--primary-color);
}

/* --- Gallery Template Styles --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px 0 60px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--text-light);
    padding: 10px;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-item-title {
    transform: translateY(0);
}

/* --- Podcast Template Styles --- */
.podcast-intro {
    padding: 40px 0;
}
.podcast-episodes-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}
.podcast-episode-card {
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.podcast-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}
.podcast-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.podcast-episode-title {
    font-size: 1.4rem;
    margin: 0;
    color: var(--primary-color);
}
.podcast-episode-description {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

/* --- Downloads Template Styles --- */
.downloads-intro {
    padding: 40px 0;
}
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    padding-bottom: 60px;
}
.download-card {
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.download-sn {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}
.download-card-content {
    flex-grow: 1;
    min-width: 0; /* Allow flex item to shrink */
}
.download-title {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-dark);
    word-break: break-word; /* Ensure long titles wrap */
}
.download-actions {
    flex-shrink: 0;
}
.download-link {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}
.download-link svg {
    stroke: var(--text-light);
}
.download-link:hover {
    background-color: #3b8c6a;
}

/* --- Projects Template Styles --- */
.projects-intro {
    padding: 40px 0;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}
.project-card {
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.project-image-container {
    height: 250px;
    width: 100%;
    overflow: hidden;
}
.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.project-card:hover .project-image-container img {
    transform: scale(1.05);
}
.project-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.project-card-content h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}
.project-card-content p {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    color: #555;
}
.project-card-content p strong {
    color: var(--text-dark);
}
.project-description, .project-remarks, .project-objectives, .project-achievements {
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}
.project-description h4, .project-remarks h4, .project-objectives h4, .project-achievements h4 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    color: var(--text-dark);
}

/* --- Events Template Styles --- */
.events-intro {
    padding: 40px 0;
}
.events-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 60px;
}
.event-card {
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.event-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
}
.event-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.event-details {
    padding: 25px;
    flex-grow: 1;
}
.event-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}
.event-meta {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 15px 0;
}
.event-meta strong {
    color: var(--text-dark);
}
.event-description {
    font-size: 0.95rem;
    margin: 0;
    color: #555;
}
.read-more-link {
    display: none;
}

/* New: Styles for the "Become our Sponsor/Partner" section */
.become-sponsor-section, .become-partner-section {
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.sponsor-intro-photo-container, .partner-intro-photo-container {
    width: 25%;
    flex-shrink: 0;
    overflow: hidden;
}
.sponsor-intro-photo-container img, .partner-intro-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sponsor-intro-content, .partner-intro-content {
    flex-grow: 1;
    padding: 40px;
}
.sponsor-intro-title, .partner-intro-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text-light);
}
.sponsor-intro-subtitle, .partner-intro-subtitle {
    font-size: 1.1rem;
    margin: 0 0 20px 0;
    font-style: italic;
}
.sponsor-intro-contact, .partner-intro-contact {
    margin: 0;
    font-size: 1rem;
}
.sponsor-intro-contact a, .partner-intro-contact a {
    color: var(--text-light);
    text-decoration: underline;
}

/* --- Sponsors & Partners Template Styles --- */
.sponsors-intro, .partners-intro {
    padding: 40px 0;
}
.sponsors-list, .partners-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 60px;
}
.sponsor-card, .partner-card {
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 25px;
    gap: 25px;
}
.sponsor-card:hover, .partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.sponsor-logo-container, .partner-logo-container {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.sponsor-logo-container img, .partner-logo-container img {
    max-width: 80%;
    max-height: 100%;
    object-fit: contain;
}
.sponsor-details, .partner-details {
    flex-grow: 1;
    text-align: center;
}
.sponsor-name, .partner-name {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}
.sponsor-description, .partner-description {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 15px 0;
}
.sponsor-link, .partner-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
.sponsor-link:hover, .partner-link:hover {
    background-color: #3b8c6a;
}

/* --- Default Page Template Styles --- */
.page-content {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 60px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--primary-color);
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.entry-content a:hover {
    text-decoration: none;
}

.entry-content ul,
.entry-content ol {
    margin-left: 20px;
    margin-bottom: 1.5em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin-left: 0;
    font-style: italic;
    color: #555;
}

/* --- Footer Styles --- --- */
.site-footer {
    padding-top: 60px;
    font-size: 0.95rem;
}
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 40px;
}
.footer-about .footer-logo img {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
}
.footer-widget h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
}
.footer-widget ul { list-style: none; padding: 0; margin: 0; }
.footer-widget li { margin-bottom: 12px; }
.footer-widget a { transition: color 0.3s ease; }
.footer-widget a:hover { text-decoration: underline; }
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.footer-socials a {
    display: inline-block;
    transition: transform 0.2s ease;
}
.footer-socials a:hover { transform: scale(1.1); }
.footer-socials svg { width: 28px; height: 28px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px 0;
}
.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom p { margin: 0; }

/* --- Media Queries for Mobile Responsiveness --- */
@media (max-width: 992px) {
    .main-navigation { display: none; }
    .mobile-menu-toggle { display: block; }
}

@media (max-width: 768px) {
    /* Main Layout */
    .container {
        padding: 0 15px;
    }
    /* Header */
    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    .top-bar-contact span { margin: 0 10px; }
    
    /* Home Page */
    .hero-slider-section { padding: 10px; }
    .hero-slider-container { border-radius: 8px; }
    .slider-item { padding-bottom: 56.25%; /* 16:9 for mobile */ }
    .slider-caption-overlay { padding: 15px 20px; }
    .slider-caption { font-size: 1.5rem; }
    .cta-button { padding: 8px 15px; font-size: 0.9rem; }
    .stats-section { padding: 40px 0; }
    .stat-card { padding: 20px; }
    .stat-number { font-size: 2rem; }
    .explore-grid { grid-template-columns: 1fr; }
    
    /* Footer */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-about { margin-bottom: 20px; }
    .footer-widget h3 { margin-bottom: 10px; }
    .footer-widget ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    .footer-widget li { margin-bottom: 5px; }
    .footer-socials { justify-content: center; }
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    /* Custom Page Templates */
    .local-committees-grid { grid-template-columns: 1fr; }
    .nd-message-section { flex-direction: column; gap: 30px; }
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .podcast-episodes-wrapper { grid-template-columns: 1fr; }
    .notice-board-grid { grid-template-columns: 1fr; }
    .downloads-grid { grid-template-columns: 1fr; }
    .download-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .download-actions {
        margin-top: 15px;
    }
    .projects-grid { grid-template-columns: 1fr; }
    .event-card { flex-direction: column; }
    .event-image-container { width: 100%; height: auto; }
    .event-details { padding: 20px; }
    
    /* Sponsors & Partners mobile layout */
    .become-sponsor-section, .become-partner-section {
        flex-direction: column;
        text-align: center;
        padding: 0;
    }
    .sponsor-intro-photo-container, .partner-intro-photo-container {
        width: 100%;
        height: 200px;
    }
    .sponsor-intro-content, .partner-intro-content { padding: 20px; }
    .sponsor-intro-title, .partner-intro-title { font-size: 2rem; }
    .sponsor-intro-subtitle, .partner-intro-subtitle { font-size: 1rem; }
    .sponsor-intro-contact, .partner-intro-contact { font-size: 0.95rem; }
    
    .sponsor-card, .partner-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* --- RSS Feed / Blog Section Styles (Added) --- */
.blog-section {
    padding-bottom: 60px;
}
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.blog-post-card {
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0; /* Placeholder color */
}
.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.blog-post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}
.post-content-wrapper {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.post-title {
    font-size: 1.4rem;
    margin: 0 0 10px;
    line-height: 1.3;
}
.post-title a {
    color: var(--text-dark);
}
.post-title a:hover {
    color: var(--primary-color);
}
.post-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
}
.post-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}
.read-more-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: auto;
    text-align: center;
}
.read-more-link:hover {
    background-color: #3b8c6a;
}
.no-posts {
    text-align: center;
    width: 100%;
    grid-column: 1 / -1;
    color: #999;
    font-style: italic;
    padding: 40px 0;
}
/* --- Animation Styles --- */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}
/* Add this at the end of your style.css file */
@media (min-width: 993px) {
    .main-navigation .menu-item-has-children > a {
        cursor: default;
    }
}
/* --- Events Template Styles (Additions) --- */
.event-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.event-meta-box {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9e9e9;
}
.event-meta-box h4 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
}
.event-meta-box p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
}
.event-description {
    margin-bottom: 20px;
}

.event-read-more {
    margin-top: 20px;
    text-align: center;
}

.event-read-more .read-more-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.event-read-more .read-more-link:hover {
    background-color: #3b8c6a;
}

/* Make original read-more link visible again */
.read-more-link {
    display: inline-block;
}
/* --- Events Template Styles (Additions & Updates) --- */

/* Updated .events-list to a grid */
.events-list {
    display: grid;
    grid-template-columns: 1fr; /* Default to 1 column for mobile */
    gap: 40px;
    padding-bottom: 60px;
}

/* 3-column layout for laptops and larger screens */
@media (min-width: 992px) {
    .events-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2-column layout for tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .events-list {
        grid-template-columns: repeat(2, 1fr);
    }
}


.event-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.event-meta-box {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9e9e9;
}

.event-meta-box h4 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

.event-meta-box p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.event-description {
    margin-bottom: 20px;
}

/* Wrapper for the read more buttons */
.event-read-more-wrapper {
    margin-top: auto; /* Pushes buttons to the bottom of the card */
    padding-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.event-read-more .read-more-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
}

.event-read-more .read-more-link:hover {
    background-color: #3b8c6a;
}

/* Ensure the original read-more-link class is visible */
.read-more-link {
    display: inline-block;
}
/* --- Event Status Tag Styles --- */
.event-image-container {
    position: relative; /* This is needed for the tag's positioning */
}

.event-status-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* =========================================
   SUPER ANIMATIONS (Infinite Effects)
   ========================================= */

/* --- 1. Keyframes Definitions --- */

/* Float: Bobs element up and down gently */
@keyframes iaas-float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Pulse: Simulates a heartbeat with a ripple effect */
@keyframes iaas-pulse-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(71, 173, 132, 0.7); /* Primary Color */
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(71, 173, 132, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(71, 173, 132, 0);
    }
}

/* Gradient Flow: Moves colors across text or backgrounds */
@keyframes iaas-gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- 2. Apply Animations to Elements --- */

/** * FLOAT ANIMATION 
 * Applied to: Stat icons, Map, Profile photos, Logos
 */
.stat-icon,
.nepal-map-container img,
.member-photo-container img,
.nd-profile-image img,
.sponsor-logo-container img,
.partner-logo-container img,
.footer-logo img,
.project-image-container img:hover {
    /* Use 'ease-in-out' for smooth bobbing */
    animation: iaas-float 4s ease-in-out infinite;
}

/* Stagger the animations slightly so everything doesn't move in unison */
.stat-card:nth-child(even) .stat-icon { animation-delay: 1s; }
.member-card:nth-child(even) .member-photo-container img { animation-delay: 1.5s; }


/** * PULSE (HEARTBEAT) ANIMATION 
 * Applied to: Call-to-Action buttons, Links, Downloads
 */
.cta-button,
.explore-link,
.read-more-link,
.download-link,
.notice-link,
.sponsor-link,
.partner-link,
.view-all-notices-link a.button,
.mobile-menu-toggle {
    /* Uses the primary color for the ripple glow */
    animation: iaas-pulse-glow 2.5s infinite;
}

/* Ensure buttons stand out on hover by speeding up the pulse */
.cta-button:hover,
.explore-link:hover,
.read-more-link:hover {
    animation-duration: 1.5s;
}


/** * GRADIENT FLOW ANIMATION 
 * Applied to: Section Titles, Page Titles, Site Title
 */
.section-title,
.page-title,
.site-title a,
.event-title,
.project-name,
.sponsor-intro-title,
.partner-intro-title {
    /* Create a gradient using your theme colors + a dark accent */
    background: linear-gradient(270deg, #47ad84, #2c3e50, #47ad84, #3b8c6a);
    background-size: 300% 300%;
    
    /* Clip background to text to make the text itself animate */
    -webkit-background-clip: text;
    background-clip: text;
    
    /* Make text transparent so background shows through */
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback */
    
    animation: iaas-gradient-flow 6s ease infinite;
}

/* Add a subtle gradient border to cards for extra flair */
.event-card, 
.project-card, 
.notice-card, 
.explore-card,
.stat-card {
    position: relative;
    z-index: 1;
}

.event-card::after, 
.project-card::after, 
.notice-card::after, 
.explore-card::after,
.stat-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px; /* Thin line at the bottom */
    background: linear-gradient(90deg, #47ad84, #ffffff, #47ad84);
    background-size: 200% 200%;
    animation: iaas-gradient-flow 3s linear infinite;
    z-index: -1;
}