/* News & Events Page Styles for Unlocking the Girl-Child Potential Initiative
   Primary color scheme:
   - Base background: #EEEAE7 (70%)
   - Primary accent: #ED6596 (10%) - for buttons, links, hover states
   - Secondary accent: #C62A7E (10%) - for headings, highlights
   - Text: #232323 (10%) - body copy
*/

/* Global Styles */
:root {
    --bg-color: #EEEAE7;
    --primary-color: #ED6596;
    --secondary-color: #C62A7E;
    --text-color: #232323;
    --light-gray: #f6f4f2;
    --medium-gray: #e0dcd8;
    --dark-gray: #666666;
    --white: #ffffff;
    --box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-gray);
}

.text-center {
    text-align: center;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Header Styles */
#header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    padding: 15px 0;
}

.logo img {
    height: 60px;
    width: auto;
}

#main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: var(--transition);
}

#nav-links {
    display: flex;
    list-style: none;
}

#nav-links li {
    margin-left: 30px;
}

#nav-links a {
    display: block;
    padding: 10px 0;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

#nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

#nav-links a:hover::after,
#nav-links a.active::after {
    width: 100%;
}

#nav-links a.active {
    color: var(--primary-color);
}

/* Page Banner */
#page-banner {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

#page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Tabs Styles */
.tabs-container {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--medium-gray);
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-gray);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: var(--white);
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

/* News Grid Styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-image {
    overflow: hidden;
    height: 250px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
}

.news-date {
    color: var(--dark-gray);
    margin-bottom: 10px;
    font-size: 14px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.news-content p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.read-more {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

.pagination a:hover,
.pagination a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.pagination .next {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
}

/* Events Styles */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    background-color: var(--light-gray);
    padding: 15px;
    border-radius: 8px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-color);
}

.filter-group select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid var(--medium-gray);
    background-color: var(--white);
    color: var(--text-color);
    font-size: 14px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-item {
    display: flex;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.event-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.event-date .day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.event-date .year {
    font-size: 14px;
}

.event-details {
    padding: 25px;
    flex-grow: 1;
}

.event-details h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--dark-gray);
    font-size: 14px;
}

.event-meta p {
    display: flex;
    align-items: center;
}

.event-meta i {
    margin-right: 6px;
    color: var(--primary-color);
}

.event-description {
    margin-bottom: 20px;
}

.event-actions {
    display: flex;
    gap: 15px;
}

.add-calendar {
    display: inline-flex;
    align-items: center;
}

.add-calendar i {
    margin-right: 8px;
}

/* Press Releases Styles */
.press-releases {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.press-item {
    background-color: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.press-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.press-date {
    color: var(--dark-gray);
    font-size: 14px;
    margin-bottom: 10px;
}

.press-item h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.press-item p {
    margin-bottom: 20px;
}

/* Media Gallery Styles */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: var(--secondary-color);
    font-size: 32px;
    margin-bottom: 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    box-shadow: var(--box-shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-info {
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
    padding: 15px;
}

.gallery-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.gallery-info p {
    font-size: 14px;
}

/* Newsletter Section */
#newsletter {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.newsletter-content p {
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group {
    display: flex;
    width: 100%;
    max-width: 500px;
    margin-bottom: 15px;
}

.form-group input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 16px;
}

.form-group button {
    border-radius: 0 50px 50px 0;
}

.form-message {
    height: 20px;
    color: var(--white);
}

/* Footer Styles */
#footer {
    background-color: #2c2c2c;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #d9d9d9;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.contact-info a {
    color: #d9d9d9;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #444;
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(35, 35, 35, 0.95);
    color: var(--white);
    padding: 15px 0;
    display: none;
    z-index: 1001;
}

.cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .event-actions {
        flex-direction: column;
    }

    .event-actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    #menu-toggle {
        display: block;
    }

    #nav-links {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
        opacity: 0;
    }

    #nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        opacity: 1;
    }

    #nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    #nav-links a {
        padding: 12px;
    }

    .tabs-nav {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
        border-left: 3px solid transparent;
        border-bottom: none;
    }

    .tab-btn.active {
        border-left-color: var(--primary-color);
        border-bottom: none;
    }

    .tab-content {
        padding: 20px 15px;
    }

    .event-item {
        flex-direction: column;
    }

    .event-date {
        flex-direction: row;
        width: 100%;
        padding: 15px;
        gap: 10px;
        justify-content: center;
    }

    .filter-bar {
        flex-direction: column;
        gap: 15px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        flex: 1;
    }

    .form-group {
        flex-direction: column;
    }

    .form-group input {
        border-radius: 50px;
        margin-bottom: 10px;
    }

    .form-group button {
        border-radius: 50px;
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 50px 0;
    }

    #page-banner {
        padding: 40px 0;
    }

    #page-banner h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .gallery-item {
        height: 150px;
    }

    .gallery-info {
        padding: 10px;
    }

    .gallery-info h4 {
        font-size: 16px;
    }

    .press-item {
        padding: 20px;
    }

    .news-content {
        padding: 20px;
    }

    .news-content h3 {
        font-size: 18px;
    }

    .event-details h3 {
        font-size: 20px;
    }
}