/* Blog-specific styling - complements mystyle.css */

/* Filter Buttons */
.filters {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #d97706;
    background: white;
    color: #1a365d;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #fbbf24;
    border-color: #d97706;
    color: #1a365d;
}

.filter-btn.active {
    border-color: #d97706;
    background: #d97706;
    color: white;
}

/* Featured Post Styling */
.featured-post {
    background: linear-gradient(135deg, #1a365d 0%, #2d5a8c 100%);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.3);
    border-left: 5px solid #fbbf24;
}

.featured-post::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.featured-post-content {
    position: relative;
    z-index: 1;
}

.featured-badge {
    display: inline-block;
    background: #fbbf24;
    color: #1a365d;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-post h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.9rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: white;
}

.featured-post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.95;
    flex-wrap: wrap;
}

.featured-post p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
}

.read-more-btn {
    display: inline-block;
    background: #fbbf24;
    color: #1a365d;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid #fbbf24;
    cursor: pointer;
}

.read-more-btn:hover {
    background: transparent;
    color: #fbbf24;
    transform: translateX(4px);
}

/* Image Styling */
.responsive-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
}

.image-caption {
    background: #f9fafb;
    border-left: 4px solid #d97706;
    padding: 1rem;
    margin: 0 0 1.5rem 0;
    font-size: 0.9rem;
    color: #6b7280;
    border-radius: 6px;
    text-align: justify;
    line-height: 1.6;
    font-style: italic;
}

.blog-article {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-header {
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #6699ff;
}

.post-category-badge {
    display: inline-block;
    background: #fbbf24;
    color: #1a365d;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-header h1 {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    color: #1a365d;
    margin: 1rem 0;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.article-content {
    font-size: 1rem;
    color: #1f2937;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.article-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    color: #1a365d;
    margin: 1.8rem 0 0.8rem 0;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.15rem;
    color: #2d5a8c;
    margin: 1.3rem 0 0.6rem 0;
    font-weight: 600;
}

.article-content ul,
.article-content ol {
    margin-left: 2rem;
    margin-bottom: 1.2rem;
}

.article-content li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
}

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

.article-content a:hover {
    color: #1a365d;
    text-decoration: underline;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #d97706;
    border-radius: 6px;
    padding: 1.2rem;
    margin: 1.5rem 0;
    color: #1f2937;
}

.highlight-box strong {
    color: #1a365d;
}

/* Track Card */
.track-card {
    background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    border-left: 4px solid #d97706;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.track-card h3 {
    color: #d97706;
    margin-top: 0;
    font-size: 1.2rem;
}

/* Opportunities Grid */
.opportunities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.opportunity-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1.2rem;
    transition: all 0.3s ease;
}

.opportunity-item:hover {
    border-color: #d97706;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.12);
}

.opportunity-item strong {
    color: #d97706;
    display: block;
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

.opportunity-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #1f2937;
}

/* Deadline Box */
.deadline-box {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-left: 4px solid #10b981;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.deadline-box .deadline-label {
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.deadline-box .deadline-date {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0.6rem 0;
}

.deadline-box .deadline-note {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.6rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a365d 0%, #2d5a8c 100%);
    border-radius: 6px;
    padding: 2rem;
    text-align: center;
    color: white;
    margin: 2rem 0;
}

.cta-section h3 {
    color: white;
    margin-top: 0;
    font-size: 1.5rem;
    font-family: 'Merriweather', serif;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

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

.btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #fbbf24;
    color: #1a365d;
    border-color: #fbbf24;
}

.btn-primary:hover {
    background: #d97706;
    color: white;
    border-color: #d97706;
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #1a365d;
}

/* Article Footer */
.article-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.author-info {
    background: #f9fafb;
    border-left: 4px solid #d97706;
    padding: 1.2rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.author-info p {
    margin: 0.5rem 0;
    color: #1f2937;
}

.author-info p:first-child {
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0.8rem;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.nav-link {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.nav-link:hover {
    border-color: #d97706;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.12);
}

.nav-link-label {
    color: #d97706;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.nav-link-title {
    color: #1a365d;
    font-weight: 600;
    font-size: 1rem;
}

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {
    .opportunities {
        display: -webkit-flex;
        -webkit-flex-wrap: wrap;
    }

    .opportunity-item {
        -webkit-flex: 0 1 calc(50% - 0.6rem);
    }

    .nav-links {
        display: -webkit-flex;
        -webkit-flex-wrap: wrap;
    }

    .nav-link {
        -webkit-flex: 0 1 calc(50% - 0.6rem);
    }

    .cta-buttons {
        display: -webkit-flex;
        -webkit-flex-wrap: wrap;
    }

    .btn {
        -webkit-flex-shrink: 0;
    }

    .article-meta {
        display: -webkit-flex;
        -webkit-flex-wrap: wrap;
    }
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .blog-article {
        padding: 20px;
    }

    .article-header h1 {
        font-size: 1.6rem;
    }

    .opportunities,
    .nav-links {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.8rem;
    }

    .cta-section {
        padding: 1.5rem;
    }

    .responsive-image {
        margin: 1rem 0;
    }

    .image-caption {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

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

    .blog-post-card {
        margin-bottom: 1rem;
    }
}

/* Blog Post Cards */
.blog-posts-section {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.blog-post-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #d97706;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.blog-post-card:hover {
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.12);
    border-left-color: #fbbf24;
    transform: translateY(-2px);
}

.blog-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.blog-post-category {
    display: inline-block;
    background: #fbbf24;
    color: #1a365d;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.blog-post-date {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-post-card h3 {
    margin: 0.8rem 0;
    color: #1a365d;
    font-family: 'Merriweather', serif;
    font-size: 1.3rem;
    line-height: 1.4;
}

.blog-post-card h3 a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-card h3 a:hover {
    color: #d97706;
}

.blog-post-excerpt {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-post-link {
    color: #d97706;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-post-link:hover {
    color: #1a365d;
    gap: 0.8rem;
}

/* Archive Section */
.archive-section {
    background: linear-gradient(135deg, #f3f4f6 0%, #f9fafb 100%);
    border-left: 4px solid #6b7280;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.archive-section p {
    color: #4b5563;
    font-size: 0.95rem;
    margin: 0;
}

.archive-section a {
    color: #d97706;
    font-weight: 600;
    text-decoration: underline;
}

.archive-section a:hover {
    color: #1a365d;
}

/* Featured Articles Section */
.featured-articles-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px dashed #e5e7eb;
}

.featured-articles-section h2 {
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.featured-articles-section > p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.article-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #e5e7eb;
}

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

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

.article-card-content {
    padding: 1rem;
}

.article-source {
    color: #d97706;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.article-card h3 {
    color: #1a365d;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.3;
    font-family: 'Merriweather', serif;
}

.article-card:hover h3 {
    color: #d97706;
}



/* Carousel Styles */
.rgmc-carousel-container {
    position: relative;
    max-width: 700px;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: white;
}

.rgmc-carousel {
    position: relative;
    width: 100%;
    background: #f3f4f6;
}

.rgmc-carousel-slide {
    display: none;
    width: 100%;
}

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

.rgmc-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 400px;
    object-fit: cover;
}

.rgmc-carousel-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    padding: 30px 20px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.rgmc-carousel-button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: #1a365d;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.rgmc-carousel-button:hover {
    background: white;
    transform: scale(1.1);
}

.rgmc-carousel-counter {
    color: white;
    font-weight: 600;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 20px;
}

.rgmc-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
    background: #f9fafb;
}

.rgmc-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rgmc-carousel-dot.active {
    background: #d97706;
    width: 24px;
    border-radius: 5px;
}

.rgmc-carousel-caption {
    background: white;
    padding: 12px 20px;
    font-size: 13px;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-style: italic;
}

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

@media (max-width: 640px) {
    .rgmc-carousel-container {
        margin: 1.5rem 0;
    }
    .rgmc-carousel-slide img {
        min-height: 300px;
    }
    .rgmc-carousel-button {
        padding: 8px 12px;
        font-size: 16px;
    }
}