@import 'base.css';

/* ================================
   Section Titles & Subtitles
   ================================ */

.section-title {
    font-size: x-large;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;

}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold-accent);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* ================================
   Hero Section
   ================================ */

.hero-section {
    background: linear-gradient(#5f5737a8, #5f5737),
                url(https://images.unsplash.com/photo-1481627834876-b7833e8f5570?ixlib=rb-4.0.3) center / cover;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    padding: 5px 0;
    min-height: calc(100vh - 225px);

}

.hero-content {
    animation: fadeInLeft 1s ease-out;
}

/* Latest Issue Content */
.latest-issue-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

/* ================================
   Buttons
   ================================ */

.btn-primary {
    background: var(--gradient);
    border: 0;
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(139, 69, 19, 0.05);
    transition: all 0.3s ease;
}

.explore-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    text-decoration: none;
}

.explore-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.explore-btn:hover i {
    transform: translateX(-2px);
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
    color: white;
    text-decoration: none;
            background: linear-gradient(180deg, #9b8036, #a58419);

}

.download-btn i {
    font-size: 1.1rem;
}

/* ================================
   Research Tabs & Items
   ================================ */

.research-tabs {
    background: linear-gradient(160deg, #7a7258 0%, #6b644a 40%, #5f5737 100%);
    border-radius: 18px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    max-height: 500px;
    overflow-y: auto;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.06),
                0 10px 40px rgba(95, 87, 55, 0.2);
    border: 1px solid rgba(218, 165, 32, 0.15);
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-accent) rgba(255, 255, 255, 0.08);
}

.research-tabs::-webkit-scrollbar {
    width: 6px;
}

.research-tabs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin: 10px 0;
}

.research-tabs::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-accent), var(--accent-color));
    border-radius: 10px;
}

.research-tabs::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e6b422, var(--gold-accent));
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.research-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.research-item {
    background: rgba(255, 255, 255, 0.07);
    padding: 16px 20px;
    border-radius: 12px;
    border-right: 4px solid var(--gold-accent);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: grid;
    grid-template-columns: 1fr minmax(140px, 180px) 44px;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.research-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.research-item:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateX(-6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-right-color: #e6b422;
}

.research-item:hover::before {
    opacity: 1;
}

.research-item h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #fff;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
    width: 85%;
}

.research-item .author {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    font-style: italic;
    position: relative;
    z-index: 1;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
    padding: 2px;
}

.research-item .z-2 {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.research-item .z-2 a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(218, 165, 32, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(218, 165, 32, 0.2);
}

.research-item .z-2 a:hover {
    background: var(--gold-accent);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
}

.research-item .z-2 a i {
    font-size: 0.85rem;
}

/* ================================
   Articles Section
   ================================ */

.articles-section h4 {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.articles-section h4 i {
    color: var(--gold-accent);
    font-size: 1.4rem;
}

/* ================================
   Issue Cards
   ================================ */

.issue-card {
    background: var(--card-gradient);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(139, 69, 19, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.issue-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.issue-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.issue-cover {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 1.5rem;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.15);
    transition: transform 0.3s ease;
}

.issue-cover:hover {
    transform: scale(1.05);
}

.issue-cover img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.issue-card:hover .issue-cover img {
    transform: scale(1.05);
}

.issue-info h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.issue-date {
    color: #8B7355;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* ================================
   News Cards
   ================================ */

.news-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-date {
    background: var(--gradient);
    color: var(--white);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    min-width: 80px;
    flex-shrink: 0;
}

.news-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.news-date .month {
    display: block;
    font-size: 0.9rem;
}

.news-content h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.news-content h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.news-content p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ================================
   Contact Section
   ================================ */

.contact-form {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-info {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: fit-content;
    border-top: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    background: var(--light-bg);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(139, 69, 19, 0.05);
}

.contact-item i {
    color: var(--accent-color) !important;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.contact-item h6 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    margin: 0;
    color: #6c757d;
}

/* Social Links in Contact */
.contact-info .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info .social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

/* ================================
   Forms
   ================================ */

.form-control {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background: #fafafa;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.1);
    background: #fff;
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: block;
}

/* ================================
   Scroll to Top Button
   ================================ */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

/* ================================
   Animations
   ================================ */

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 992px) {
    .latest-issue-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-section {
        padding: 40px 0 40px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        min-height: auto;
        padding: 150px 0 30px;
    }

    .latest-issue-content {
        gap: 1.5rem;
    }

    .issue-card {
        padding: 1.5rem;
    }

    .articles-section h4 {
        font-size: 1.3rem;
    }

    .research-tabs {
        padding: 1rem;
    }

    .research-item {
        grid-template-columns: 1fr 120px 40px;
        gap: 0.5rem;
        padding: 14px 16px;
    }

    .news-card {
        flex-direction: column;
        text-align: center;
    }

    .news-date {
        margin: 0 auto;
    }

    .contact-info .social-link {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .hero-section {
        padding: 120px 0 20px;
    }

    .issue-card {
        padding: 1rem;
    }

    .issue-cover {
        max-width: 150px;
    }

    .articles-section h4 {
        font-size: 1.1rem;
    }

    .research-item h6 {
        font-size: 0.9rem;
    }

    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }

    .scroll-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}


.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}


/* ================================
   News Section Enhancements
   ================================ */

#news {
    position: relative;
    overflow: hidden;
}

/* Pinned News Container */
.pinned-news-container {
    position: relative;
}

.news-card.pinned {
    border: 2px solid var(--gold-accent);
    background: linear-gradient(135deg, #fff 0%, #fefbf6 100%);
    position: relative;
}

.pinned-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: var(--gradient);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 0 15px 0 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.2);
}

.pinned-badge i {
    font-size: 0.75rem;
    animation: pinPulse 2s ease-in-out infinite;
}

@keyframes pinPulse {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(-10deg) scale(1.1);
    }
}

/* News Card Enhanced */
.news-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(139, 69, 19, 0.05);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.news-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.15);
    border-color: rgba(139, 69, 19, 0.1);
}

/* News Date Enhanced */
.news-date {
    background: var(--gradient);
    color: var(--white);
    border-radius: 12px;
    padding: 1.2rem 1rem;
    text-align: center;
    min-width: 85px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-date::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .news-date {
    transform: scale(1.05);
}

.news-card:hover .news-date::before {
    opacity: 1;
}

.news-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-date .month {
    display: block;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    opacity: 0.95;
    font-weight: 500;
}

/* News Content Enhanced */
.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content h5 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-content h5 {
    color: var(--accent-color);
}

.news-content p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

/* News Button */
.news-btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Swiper Customization */
.newsSwiper {
    padding: 1rem 0 3rem 0;
    overflow: hidden;
}

.newsSwiper .swiper-slide {
    height: auto;
}

.newsSwiper .swiper-button-next,
.newsSwiper .swiper-button-prev {
    color: var(--primary-color);
    background: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.newsSwiper .swiper-button-next:hover,
.newsSwiper .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.newsSwiper .swiper-button-next::after,
.newsSwiper .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

.newsSwiper .swiper-pagination {
    bottom: 0;
}

.newsSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.newsSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 5px;
    background: var(--gradient);
}

/* Empty State */
#news .text-center.py-5 i {
    opacity: 0.3;
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 768px) {
    .news-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
    }

    .news-date {
        margin: 0 auto;
        min-width: 75px;
    }

    .news-date .day {
        font-size: 1.75rem;
    }

    .news-content h5 {
        font-size: 1.1rem;
    }

    .news-btn {
        align-self: center;
    }

    .pinned-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    .newsSwiper .swiper-button-next,
    .newsSwiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .news-card {
        padding: 1rem;
    }

    .news-date {
        min-width: 70px;
        padding: 1rem 0.8rem;
    }

    .news-date .day {
        font-size: 1.5rem;
    }

    .news-content h5 {
        font-size: 1rem;
    }

    .news-content p {
        font-size: 0.9rem;
    }
}
