/* Editorial Team Styles */
.team-header {
    text-align: center;
    margin-bottom: 60px;
}

.team-header .subtitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    color: var(--primary);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 15px;
}

.team-header h1 {
    font-size: 4rem;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: #111;
    line-height: 1;
}

.team-header .divider {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 30px auto;
}

.team-header .description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.team-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06) !important;
}

.team-card .image-wrapper {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.team-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card .placeholder-img {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.team-card .social-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-card .social-overlay a {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.team-card .social-overlay a:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: scale(1.1);
}

.team-card .social-overlay .fb {
    color: #1877f2;
}

.team-card .social-overlay .tw {
    color: #1da1f2;
}

.team-card .social-overlay .ig {
    color: #e4405f;
}

.team-card .info {
    padding: 30px;
}

.team-card .info .position {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.team-card .info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #111;
}

.team-card .info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Static Page Styles */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.03);
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header .divider {
    display: inline-block;
    background: var(--primary);
    height: 5px;
    width: 60px;
    margin-bottom: 25px;
}

.page-header h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #111;
}

.page-meta {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.page-content {
    font-size: 1.15rem;
    color: #333;
    line-height: 2.0;
    font-family: 'Inter', sans-serif;
}

.page-content p {
    margin-bottom: 2rem;
}

.page-content h2,
.page-content h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #111;
}

.page-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-box {
    display: flex;
    gap: 15px;
}

.share-box .label {
    font-weight: 700;
    color: #111;
}

.share-box a {
    color: #4b5563;
}

.btn-print {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Home Page Styles */
.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    position: relative;
}

.section-title h2 {
    background: #000;
    color: #fff;
    padding: 5px 20px;
    font-size: 1rem;
    letter-spacing: 1px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 5px;
    margin-bottom: 40px;
    height: 500px;
    background: #000;
}

.hero-item {
    position: relative;
    overflow: hidden;
    color: #fff;
    cursor: pointer;
}

.hero-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hero-item:hover img {
    transform: scale(1.05);
}

.hero-item-small {
    height: calc(50% - 2.5px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
}

.hero-category {
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 10px;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 5px;
}

.feed-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.mag-card {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
}

.mag-card-img {
    width: 280px;
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
}

.mag-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.mag-card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    gap: 15px;
}

.mag-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #111;
    text-decoration: none;
}

.mag-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
    margin-top: 10px;
}

.mag-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.widget {
    margin-bottom: 40px;
}

.widget-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #111;
    position: relative;
}

.side-list-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.side-list-img {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
}

.side-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-list-meta {
    font-size: 0.7rem;
    color: #999;
}

.cat-badge {
    background: #f4f4f4;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.7rem;
    color: #666;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.popup-overlay.show {
    opacity: 1;
}

.popup-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 72%;
    max-width: 900px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-height: 60vh;
    overflow-y: hidden;
}

.popup-overlay.show .popup-modal {
    transform: scale(1) translateY(0);
}

.popup-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.popup-body {
    padding: 32px 32px 28px;
    text-align: center;
    max-height: calc(60vh - 200px);
    overflow-y: auto;
}

.popup-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #111;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.popup-content {
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 20px;
}

.popup-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #000;
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.2s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.popup-close-btn:hover {
    transform: rotate(90deg);
    background: var(--primary);
}

@media (max-width: 600px) {
    .popup-overlay {
        align-items: flex-start;
        padding: 16px 10px 32px;
    }

    .popup-modal {
        width: 94%;
        max-width: 94%;
        border-radius: 20px;
        margin: 40px auto 0;
        max-height: 70vh;
    }

    .popup-banner {
        height: 110px;
    }

    .popup-body {
        padding: 12px 14px 16px;
        max-height: calc(70vh - 130px);
        overflow-y: auto;
    }

    .popup-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .popup-content {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .popup-close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
    }
}

/* News Detail Classes */
.detail-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.ad-box {
    margin-bottom: 40px;
}

.ad-box.p-y {
    margin: 40px 0;
}

/* Article Hero & Typography */
.article-header {
    margin-bottom: 30px;
}

.article-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 3px 12px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.article-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #111;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    gap: 25px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.article-meta i {
    color: var(--primary);
    margin-right: 5px;
}

.featured-img-box {
    margin: 40px 0;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.featured-img-box img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #333;
    font-family: 'Inter', sans-serif;
}

.article-body p {
    margin-bottom: 1.8rem;
}

/* Share Section */
.share-box {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: #111;
    font-size: 0.9rem;
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    text-decoration: none;
    transition: all 0.2s;
}

.share-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.share-icon.fb:hover {
    background: #1877f2;
}

.share-icon.tw:hover {
    background: #1da1f2;
}

.share-icon.wa:hover {
    background: #25d366;
}

.author-name {
    font-weight: 700;
    color: #111;
}

.author-title {
    font-size: 0.8rem;
    color: #999;
}

.auth-widget {
    background: #f9f9f9;
    padding: 25px;
    border-top: 4px solid var(--primary);
}

.author-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.author-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #666;
}

.search-title-box {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 2px;
}

.no-results {
    text-align: center;
    padding: 50px;
    color: #999;
}

.ad-sidebar-placeholder {
    background: #f9f9f9;
    border: 1px dashed #ddd;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.8rem;
}

.cat-list-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.cat-list-link {
    color: #333;
    display: flex;
    justify-content: space-between;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    display: none;
    align-items: center;
    justify-content: space-around;
    z-index: 1100;
}

.mobile-bottom-item {
    flex: 1;
    height: 100%;
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #6b7280;
    text-decoration: none;
    gap: 4px;
}

.mobile-bottom-item i {
    font-size: 1.1rem;
}

.mobile-bottom-item.active {
    color: var(--primary);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 60px;
    }
}

/* Tablet & Mobile Fixes */
@media (max-width: 900px) {
    .detail-wrapper {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        height: auto;
    }

    .hero-item:first-child {
        grid-column: 1 / -1;
        height: 400px;
    }

    .hero-item-small {
        height: 250px !important;
    }

    .feed-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-item {
        height: 300px !important;
    }

    .mag-card {
        flex-direction: column;
    }

    .mag-card-img {
        width: 100%;
        height: 220px;
    }

    .article-header h1 {
        font-size: 2.2rem !important;
    }

    .top-bar {
        height: auto;
        padding: 8px 0;
    }

    .top-bar .content {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .main-header {
        padding: 15px 0;
    }

    .header-grid {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .site-name {
        font-size: 1.5rem;
    }

    .logo-img {
        max-height: 40px;
    }

    .breaking-news-container {
        padding: 8px 0;
    }

    .breaking-news-container .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .bn-label {
        font-size: 0.6rem;
        padding: 3px 10px;
    }

    .bn-ticker {
        margin-left: 0;
        width: 100%;
    }

    .bn-ticker-content span {
        margin-right: 30px;
        font-size: 0.8rem;
    }

    main.p-y-40 {
        padding: 20px 0 !important;
    }

    footer {
        margin-top: 30px;
        padding: 30px 0 20px;
    }

    .footer-grid {
        gap: 20px;
        grid-template-columns: 1fr;
    }

    .footer-logo {
        font-size: 1.6rem;
    }
}

/* --- Reference-Based Comment Section (Flat Design) --- */
#comments-section {
    position: relative;
    padding-top: 4rem;
    padding-bottom: 5rem;
    border-top: 1px solid #dee2e6;
    margin-top: 3rem;
}

/* Comments List Styling */
.comment-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.comment-author {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
}

.comment-date {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
}

.comment-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    margin-top: 10px;
}

/* Reference Form Styling */
.glass-form-container {
    background: #ffffff;
    border: none;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.form-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 2rem;
    text-transform: none;
    letter-spacing: normal;
}

.reference-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .reference-form-grid {
        grid-template-columns: 1fr;
    }
}

.ref-input-group {
    position: relative;
}

.ref-input {
    width: 100%;
    padding: 15px 45px 15px 20px;
    border: 1px solid #adb5bd;
    border-radius: 10px;
    font-size: 14px;
    color: #495057;
    outline: none;
    transition: border-color 0.2s;
}

.ref-input:focus {
    border-color: #17a2b8;
}

.ref-input-group i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
    pointer-events: none;
}

textarea.ref-input {
    resize: vertical;
    padding-top: 20px;
}

.ref-btn-teal {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 18px 45px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ref-btn-teal:hover {
    background-color: #138496;
}

.ref-btn-teal:active {
    transform: scale(0.98);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success/Error Alerts */
.alert-premium {
    border-radius: 10px;
    padding: 15px 20px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-premium.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-premium.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
