/* Shared Page Styles */
.page-header {
    padding: 6rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/space-bg.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.page-header p {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Page Styles */
.contact-section {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-box {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.info-box .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.info-box .icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.info-box h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.info-box p, 
.info-box a {
    color: #cbd5e1;
    margin: 0;
    line-height: 1.6;
}

.info-box a:hover {
    color: #8b5cf6;
}

.contact-form {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2.5rem;
}

.contact-form h2 {
    margin-top: 0;
    margin-bottom: 2rem;
    color: #fff;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.map-section {
    padding: 0 0 5rem;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-top: 2rem;
}

/* About Page Styles */
.about-intro {
    padding: 5rem 0;
    background: rgba(15, 23, 42, 0.3);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: #fff;
    margin-top: 0;
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.rounded-image {
    border-radius: 8px;
}

.values-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.values-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.value-card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.value-card p {
    color: #cbd5e1;
    margin: 0;
    line-height: 1.6;
}

.team-section {
    padding: 5rem 0;
    background: rgba(15, 23, 42, 0.3);
}

.team-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
}

.team-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

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

.team-member h3 {
    color: #fff;
    margin: 1rem 0 0.5rem;
    font-size: 1.5rem;
}

.team-member .role {
    color: #8b5cf6;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-member .bio {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cta-section {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ======================
   News Section
   ====================== */
.news-section {
    padding: 4rem 0;
    background: rgba(15, 23, 42, 0.3);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-top: 2rem;
}

.news-main {
    flex: 1;
}

.search-results-header,
.tag-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.article-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.article-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.article-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(99, 102, 241, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-badge:hover {
    background: #818cf8;
    transform: translateY(-2px);
}

.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.meta-separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.2);
}

.reading-time {
    display: inline-flex;
    align-items: center;
}

.article-title {
    font-size: 1.25rem;
    margin: 0 0 1rem;
    line-height: 1.4;
}

.article-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #818cf8;
}

.article-excerpt {
    color: #cbd5e1;
    margin: 0 0 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #818cf8;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more svg {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #6366f1;
}

.read-more:hover svg {
    transform: translateX(3px);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-share span {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-right: 0.5rem;
}

.article-share a {
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.article-share a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
}

.page-link.active {
    background: #6366f1;
    color: white;
}

.page-link.prev,
.page-link.next {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-link.prev svg {
    margin-right: 0.5rem;
}

.page-link.next svg {
    margin-left: 0.5rem;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-dots {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    color: #94a3b8;
}

/* Sidebar */
.news-sidebar {
    width: 300px;
}

.sidebar-widget {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.1rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

/* Search Widget */
.search-form {
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.search-form button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.search-form button:hover {
    color: #818cf8;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 0.5rem;
    position: relative;
}

.categories-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.categories-list li a:hover {
    color: #818cf8;
    padding-left: 0.5rem;
}

.categories-list li.active a {
    color: #6366f1;
    font-weight: 600;
}

.category-count {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.recent-posts-list li:first-child {
    padding-top: 0;
}

.recent-posts-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.recent-post:hover h4 {
    color: #818cf8;
}

.recent-post h4 {
    color: #e2e8f0;
    font-size: 0.95rem;
    margin: 0 0 0.25rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.recent-post time {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Tags Widget */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
}

/* RSS Widget */
.rss-widget p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.rss-widget .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* No Articles */
.no-articles {
    text-align: center;
    padding: 3rem 1rem;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.no-articles h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.no-articles p {
    color: #94a3b8;
    max-width: 500px;
    margin: 0 auto;
}

.no-articles a {
    color: #818cf8;
    text-decoration: none;
    font-weight: 500;
}

.no-articles a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .contact-grid,
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .contact-form,
    .info-box,
    .value-card,
    .team-member {
        padding: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .contact-section,
    .about-intro,
    .values-section,
    .team-section,
    .cta-section {
        padding: 3rem 0;
    }
    
    .member-image {
        width: 120px;
        height: 120px;
    }
}
