/* UPF Media Office - Global Styles
   Brand colors matched to upf.org */

:root {
    --primary-dark: #1B3A5C;
    --primary: #2C5F8A;
    --primary-light: #4A90D9;
    --accent-gold: #C8A951;
    --accent-gold-light: #E8D48B;
    --text-dark: #2D2D2D;
    --text-medium: #555555;
    --text-light: #777777;
    --bg-white: #FFFFFF;
    --bg-light: #F5F7FA;
    --bg-section: #EEF2F7;
    --border-light: #E0E6ED;
    --shadow: rgba(27, 58, 92, 0.1);
    --shadow-strong: rgba(27, 58, 92, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-white);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--bg-white);
    border-bottom: 3px solid var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

.header-top {
    background: var(--primary-dark);
    color: white;
    padding: 6px 0;
    font-size: 0.82rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
}

.header-top a:hover {
    color: white;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-area img {
    height: 52px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .org-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.logo-text .org-subtitle {
    font-size: 0.78rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.main-nav a {
    display: block;
    padding: 10px 18px;
    color: var(--text-dark);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--primary-dark);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-dark);
    padding: 8px;
}

/* Hero Banner */
.hero {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 30px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.92;
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto;
}

.hero-small {
    height: 280px;
}

.hero-small h1 {
    font-size: 2.2rem;
}

/* Sections */
.section {
    padding: 70px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

/* News Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow-strong);
}

.news-card-image {
    height: 220px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 25px;
}

.news-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.82rem;
    color: var(--text-light);
}

.news-card-meta .category {
    background: var(--primary-dark);
    color: white;
    padding: 2px 10px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}

.news-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--text-dark);
}

.news-card h3 a {
    color: inherit;
}

.news-card h3 a:hover {
    color: var(--primary);
}

.news-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* Featured News */
.featured-news {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.featured-main {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    min-height: 400px;
}

.featured-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

.featured-main .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: white;
}

.featured-main .overlay h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.featured-main .overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-sidebar-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.2s ease;
}

.featured-sidebar-item:hover {
    transform: translateX(5px);
}

.featured-sidebar-item img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.featured-sidebar-item h4 {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.featured-sidebar-item .meta {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
}

.team-card-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid var(--bg-section);
}

.team-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
    margin-top: 10px;
}

.team-card .position {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.team-card .email {
    font-size: 0.85rem;
    color: var(--primary);
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    margin-top: 30px;
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-medium);
}

.about-text ul {
    margin: 15px 0;
    padding-left: 25px;
}

.about-text li {
    margin-bottom: 8px;
    color: var(--text-medium);
}

.about-sidebar {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 30px;
    border-left: 4px solid var(--primary-dark);
}

.about-sidebar h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.about-sidebar p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 10px;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    margin-top: 25px;
}

.contact-info h3:first-child {
    margin-top: 0;
}

.contact-info p {
    color: var(--text-medium);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-info .icon-text {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-form {
    background: var(--bg-light);
    padding: 35px;
    border-radius: 8px;
}

.contact-form h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.form-group textarea {
    height: 130px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--primary-dark);
    color: white;
}

.btn-primary:hover {
    background: var(--primary);
    color: white;
}

.btn-outline {
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-dark);
    color: white;
}

/* Press Releases */
.press-list {
    max-width: 850px;
}

.press-item {
    padding: 25px 0;
    border-bottom: 1px solid var(--border-light);
}

.press-item:last-child {
    border-bottom: none;
}

.press-item .date {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.press-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.press-item h3 a {
    color: var(--primary-dark);
}

.press-item h3 a:hover {
    color: var(--primary-light);
}

.press-item p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .footer-logo {
    height: 45px;
    display: inline-block;
}

.footer-about .footer-logo img {
    height: 100%;
    width: auto;
    filter: brightness(1.6) contrast(1.2);
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 15px;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 18px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-gold-light);
}

.footer-contact p {
    font-size: 0.88rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-gold);
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--border-light);
}

/* Responsive */
@media (max-width: 992px) {
    .featured-news {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--border-light);
        box-shadow: 0 5px 15px var(--shadow);
        padding: 15px;
    }

    .main-nav.active ul {
        flex-direction: column;
    }

    .hero {
        height: 350px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-small {
        height: 200px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .section {
        padding: 45px 0;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* Mission Statement Box */
.mission-box {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 50px;
    border-radius: 8px;
    text-align: center;
    margin: 50px 0;
}

.mission-box h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.mission-box p {
    font-size: 1rem;
    opacity: 0.92;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px 0;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.stat-item .label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Article Page */
.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h1 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 0.88rem;
    color: var(--text-light);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.article-content .featured-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 25px;
}

.article-content p {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-medium);
}

.article-content blockquote {
    border-left: 4px solid var(--accent-gold);
    padding: 15px 25px;
    margin: 25px 0;
    background: var(--bg-light);
    font-style: italic;
    color: var(--text-medium);
}
