/* News Portal & Article Styles */
:root {
    --news-primary: #0f172a;
    --news-accent: #ef4444;
    --news-bg-light: #f8fafc;
    --news-border: #e2e8f0;
    --news-text-main: #334155;
    --news-text-dark: #0f172a;
    --news-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    --news-shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.1);
    --news-radius: 16px;
    --news-radius-lg: 24px;
}

.news-article-layout {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .news-article-layout {
        grid-template-columns: 7fr 3fr;
        align-items: start;
    }
}

.news-main-col {
    background: #ffffff;
    border-radius: var(--news-radius-lg);
    box-shadow: var(--news-shadow);
    border: 1px solid var(--news-border);
    padding: 30px;
}

@media (max-width: 768px) {
    .news-main-col {
        padding: 20px;
        border-radius: var(--news-radius);
    }
}

/* Header Text Controls Panel */
.text-controls-panel {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
    border-bottom: 1px solid var(--news-border);
    padding-bottom: 12px;
}

.text-btn {
    background: var(--news-bg-light);
    border: 1px solid var(--news-border);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--news-text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.text-btn:hover {
    background: var(--news-primary);
    color: #fff;
    border-color: var(--news-primary);
}

/* Audio Reader Widget */
.audio-reader-widget {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--news-radius);
    padding: 20px;
    margin: 24px 0;
    color: #ffffff;
    box-shadow: var(--news-shadow-lg);
}

.audio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.audio-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.audio-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ef4444;
    border: none;
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.audio-play-btn:hover {
    transform: scale(1.05);
    background: #f87171;
}

.audio-progress-container {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.audio-progress-fill {
    height: 100%;
    width: 0%;
    background: #ef4444;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.audio-settings {
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-speed-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 8px;
    outline: none;
    cursor: pointer;
}

/* Waveform Visualizer */
.waveform-container {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
}

.waveform-bar {
    width: 3px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.waveform-container.playing .waveform-bar {
    animation: waveAnimation 1.2s ease infinite alternate;
}

.waveform-container.playing .waveform-bar:nth-child(2) {
    animation-delay: 0.15s;
}

.waveform-container.playing .waveform-bar:nth-child(3) {
    animation-delay: 0.3s;
}

.waveform-container.playing .waveform-bar:nth-child(4) {
    animation-delay: 0.45s;
}

.waveform-container.playing .waveform-bar:nth-child(5) {
    animation-delay: 0.6s;
}

@keyframes waveAnimation {
    0% {
        height: 20%;
    }

    100% {
        height: 100%;
    }
}

/* Writer Agency Property Grid Section */
.agency-properties-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--news-border);
}

.agency-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.agency-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ef4444;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

.agency-info h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--news-text-dark);
}

.agency-info p {
    margin: 2px 0 0 0;
    font-size: 0.78rem;
    color: var(--news-text-main);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.property-card {
    background: #ffffff;
    border: 1px solid var(--news-border);
    border-radius: var(--news-radius);
    overflow: hidden;
    box-shadow: var(--news-shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--news-shadow-lg);
    border-color: #ef4444;
}

.property-img-wrapper {
    position: relative;
    height: 180px;
    width: 100%;
}

.property-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
}

.property-rera {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #22c55e;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
}

.property-body {
    padding: 18px;
}

.property-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ef4444;
    margin-bottom: 6px;
}

.property-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--news-text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.property-loc {
    font-size: 0.78rem;
    color: var(--news-text-main);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Discussion & Comments System */
.comments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--news-border);
}

.comments-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-node {
    display: flex;
    gap: 12px;
}

.comment-indent {
    margin-left: 40px;
    border-left: 2px solid var(--news-border);
    padding-left: 16px;
}

.comment-card {
    background: var(--news-bg-light);
    border: 1px solid var(--news-border);
    border-radius: 12px;
    padding: 16px;
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
}

.comment-author-name {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--news-text-dark);
}

.comment-time {
    font-size: 0.7rem;
    color: #64748b;
}

.comment-text {
    font-size: 0.85rem;
    color: var(--news-text-main);
    line-height: 1.5;
    margin: 0;
}

.comment-footer {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.comment-action:hover,
.comment-action.liked {
    color: #ef4444;
}

.comment-form {
    background: var(--news-bg-light);
    border: 1px solid var(--news-border);
    border-radius: var(--news-radius);
    padding: 20px;
    margin-top: 24px;
}

.comment-form textarea {
    width: 100%;
    border: 1px solid var(--news-border);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 12px;
}

/* Related articles */
.related-articles-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--news-border);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Tags Cloud styling */
.article-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
}

.tag-badge {
    background: var(--news-bg-light);
    border: 1px solid var(--news-border);
    color: var(--news-text-main);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-badge:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    transform: translateY(-2px);
}

/* Sidebar Widgets */
.news-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--news-border);
    border-radius: var(--news-radius);
    padding: 24px;
    box-shadow: var(--news-shadow);
}

.sidebar-widget h3 {
    margin: 0 0 16px 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--news-text-dark);
    border-left: 3px solid #ef4444;
    padding-left: 10px;
}

.newsletter-form input {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.85rem;
    border: 1px solid var(--news-border);
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 10px;
    outline: none;
}

/* News Header & Mega Menu Styles */
.news-top-header {
    background-color: #0f172a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.news-logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.news-logo-img {
    height: 36px;
    border-radius: 4px;
    object-fit: contain;
}

.news-logo-tag {
    background-color: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hamburger-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    padding: 0;
    outline: none;
}

.hamburger-menu-btn .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Open/Active state animation for hamburger button */
.hamburger-menu-btn.open .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger-menu-btn.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu-btn.open .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mega Menu Dropdown styling */
.news-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1e293b;
    border-bottom: 3px solid var(--accent-color, #FFC107);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
}

.news-mega-menu.open {
    max-height: 600px;
    overflow-y: auto;
}

.mega-menu-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .mega-menu-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mega-menu-col {
    display: flex;
    flex-direction: column;
}

.mega-menu-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent-color, #FFC107);
    margin: 0 0 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mega-menu-links li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s, transform 0.2s;
    padding: 4px 0;
}

.mega-menu-links li a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.mega-menu-links li a i {
    color: var(--accent-color, #FFC107);
    width: 16px;
    text-align: center;
    font-size: 0.8rem;
}

/* Interactive Tool Modal styling */
.tool-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    padding: 20px;
}

.tool-modal-overlay.open {
    display: flex;
}

.tool-modal-container {
    background-color: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tool-modal-header {
    background-color: var(--primary-color, #0d2b5e);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tool-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    transition: color 0.2s;
}

.tool-modal-close:hover {
    color: #ffffff;
}

.tool-modal-body {
    padding: 20px;
}

.tool-form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tool-form-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
}

.tool-form-group input,
.tool-form-group select,
.tool-form-group textarea {
    padding: 10px 14px;
    font-size: 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
}

.tool-form-group input:focus,
.tool-form-group select:focus,
.tool-form-group textarea:focus {
    border-color: var(--primary-color, #0d2b5e);
    box-shadow: 0 0 0 3px rgba(13, 43, 94, 0.15);
}

.tool-modal-btn {
    background-color: var(--primary-color, #0d2b5e);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
    font-size: 0.9rem;
}

.tool-modal-btn:hover {
    background-color: var(--primary-hover, #163d7a);
}

.tool-results-panel {
    margin-top: 20px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.tool-results-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 4px;
}

.tool-results-content {
    font-size: 0.9rem;
    color: #334155;
}

/* Polished Header Adjustments */
.news-logo-img {
    height: 48px !important;
    border-radius: 6px !important;
    object-fit: contain !important;
}

.hamburger-menu-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.hamburger-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.hamburger-menu-btn .bar {
    height: 2px !important;
    width: 20px !important;
    background-color: #ffffff !important;
    border-radius: 2px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Premium Glassmorphic Bottom Navigation Overrides */
.news-body-page .bottom-nav,
.bottom-nav {
    background: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3) !important;
    height: 72px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
}

@media screen and (min-width: 1024px) {

    .news-body-page .bottom-nav,
    .bottom-nav {
        background: #0f172a !important;
        /* solid color on desktop sidebar */
    }
}

.bottom-nav .nav-item {
    color: #94a3b8 !important;
    transition: color 0.3s ease, transform 0.2s ease !important;
    position: relative !important;
    flex: 1 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.bottom-nav .nav-item:hover {
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

.bottom-nav .nav-item.active {
    color: var(--accent-color, #FFC107) !important;
}

.bottom-nav .nav-item.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: 6px !important;
    width: 6px !important;
    height: 6px !important;
    background-color: var(--accent-color, #FFC107) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 10px var(--accent-color, #FFC107) !important;
}

.bottom-nav .nav-item .nav-icon {
    font-size: 20px !important;
    margin-bottom: 2px !important;
    transition: transform 0.2s ease !important;
}

.bottom-nav .nav-item.active .nav-icon {
    color: var(--accent-color, #FFC107) !important;
    transform: scale(1.1) !important;
}

.bottom-nav .nav-item span {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
}

.bottom-nav .nav-item a {
    color: inherit !important;
    padding: 8px 0 !important;
}

/* Premium News Footer styling */
.news-body-footer {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0px !important;
    padding: 50px 24px 30px !important;
    margin: 60px auto 0 !important;
    max-width: 100% !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

@media (min-width: 768px) {
    .news-body-footer {
        display: grid !important;
        grid-template-columns: 2fr 1.5fr !important;
        gap: 40px !important;
        padding: 60px 48px 40px !important;
    }
}

.news-body-footer h3 {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 20px !important;
    border: none !important;
    padding-left: 0 !important;
}

.news-body-footer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.news-body-footer ul li a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 0.88rem !important;
    transition: color 0.2s !important;
}

.news-body-footer ul li a:hover {
    color: #ef4444 !important;
    text-decoration: none !important;
}

.news-body-footer .social-icons {
    display: flex !important;
    gap: 16px !important;
    justify-content: flex-start !important;
    margin-top: 16px !important;
}

.news-body-footer .social-icon {
    font-size: 24px !important;
    color: #94a3b8 !important;
    transition: color 0.2s !important;
}

.news-body-footer .social-icon:hover {
    color: #ef4444 !important;
}

.news-body-footer .copyright {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 24px !important;
    margin-top: 40px !important;
    font-size: 0.8rem !important;
    color: #64748b !important;
    background: transparent !important;
}

/* Inline Developer Logos Scroller (Infinite Marquee) styling */
.developer-logo-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 15px 0;
    background: transparent;
}

.developer-logo-track {
    display: flex;
    gap: 50px;
    width: max-content;
    animation: marqueeScroll 20s linear infinite;
}

.developer-logo-track:hover {
    animation-play-state: paused;
}

.developer-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 70px;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.developer-logo-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color, #FFC107);
    box-shadow: 0 12px 24px -10px rgba(13, 43, 94, 0.15);
}

.developer-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: all 0.3s ease;
}

.developer-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Ensure news pages don't inherit style.css desktop body sidebar margins when bottom-nav is removed */
@media screen and (min-width: 769px) {
    body {
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background-color: var(--bg-body, #f4f6f9) !important;
    }
}

/* Categories inline scroller buttons styling */
.cat-scroll-btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cat-scroll-btn:hover {
    border-color: var(--accent-color, #FFC107) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    background-color: #f8fafc !important;
}

.cat-scroll-btn.active {
    background-color: var(--primary-color, #0d2b5e) !important;
    color: #ffffff !important;
    border-color: var(--primary-color, #0d2b5e) !important;
    box-shadow: 0 4px 12px rgba(13, 43, 94, 0.25) !important;
}

.categories-inline-scroller::-webkit-scrollbar {
    display: none !important;
}

/* Webstory Corner Card hover & visual effects */
.webstory-corner-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.15) !important;
}

.webstory-corner-card:hover .webstory-bg {
    transform: scale(1.06) !important;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.9;
    }
}

/* ==========================================================================
   NEW NEWS PORTAL STYLING (MATCHING SCREENSHOTS)
   ========================================================================== */

/* Header Restyling - White Theme with Shadow */
.land-header.news-white-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    padding: 6px 24px !important; /* Reduced vertical padding */
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    transition: all 0.3s ease !important;
}

.land-header.news-white-header .land-nav {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
}

/* Toggle Hamburger Button for White Header */
.land-header.news-white-header .mobile-menu-toggle {
    display: none !important;
    /* Hidden on desktop */
    color: #4b5563 !important; /* Softer light black/grey */
    font-size: 1.3rem !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 5px !important;
    transition: color 0.2s !important;
    order: -1 !important;
    /* Move to far left */
}

.land-header.news-white-header .mobile-menu-toggle:hover {
    color: #fd3752 !important;
}

.land-header.news-white-header .land-logo {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    margin-right: auto !important;
}

.land-header.news-white-header .land-nav-links a {
    color: #334155 !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.land-header.news-white-header .land-nav-links a:hover {
    color: #fd3752 !important;
}

/* pure CSS Dropdown Navigation for Housing.com layout style */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 190px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.08);
    z-index: 1001;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 0;
    margin-top: 5px;
}

.nav-dropdown-content a {
    color: #475569 !important;
    padding: 10px 20px !important;
    text-decoration: none;
    display: block !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    text-align: left;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
}

.nav-dropdown-content a:hover {
    background-color: #f8fafc;
    color: #fd3752 !important;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.land-header.news-white-header .land-nav-links .hamburger-menu-btn .bar {
    background-color: #1e293b !important;
}

/* Red Circle % Logo */
.logo-circle-percent {
    width: 32px;
    height: 32px;
    background-color: #fd3752;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 16px;
    font-family: Arial, sans-serif;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(253, 55, 82, 0.3);
}

.logo-brand-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-logo-img {
    height: 120px !important;
    max-height: 120px !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    margin-top: -35px !important;
    margin-bottom: -35px !important;
}

#dynamic-changing-word {
    color: #FFC107;
    /* Light yellow matching logo icon */
    font-weight: 700;
    transition: opacity 0.3s ease-in-out;
    border-bottom: 2px solid rgba(255, 193, 7, 0.3);
}

/* Header Search Icon and Search Bar */
.header-search-btn {
    background: none !important;
    border: none !important;
    color: #1e293b !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    padding: 5px !important;
    transition: color 0.2s !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mobile-only-search {
    display: none !important;
}

.header-search-btn:hover {
    color: #fd3752 !important;
}

.header-search-bar-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: none;
    z-index: 999;
}

.header-search-bar-container.active {
    display: block !important;
}

.header-search-input-wrapper {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.header-search-input {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.header-search-input:focus {
    border-color: #fd3752;
}

/* Author Profile Section Styling */
.author-profile-container {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 40px 30px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.author-profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.author-profile-name {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    font-family: 'Inter', sans-serif;
}

.author-profile-location {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 500;
}

.author-profile-socials {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
}

.author-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #1e293b;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.author-social-btn:hover {
    background-color: #fd3752;
    transform: translateY(-2px);
}

.author-profile-bio {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
}

.author-articles-divider-container {
    width: 100%;
    max-width: 900px;
    margin: 40px auto 20px;
    position: relative;
    text-align: center;
}

.author-articles-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    background: var(--bg-body, #f4f6f9);
    padding: 0 20px;
    position: relative;
    z-index: 2;
    display: inline-block;
    margin: 0 auto;
}

.author-articles-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #cbd5e1;
    z-index: 1;
}

/* Circular Pagination Styling */
.circular-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 60px 0;
}

.pagination-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #475569 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.pagination-circle-btn:hover {
    border-color: #fd3752;
    color: #fd3752 !important;
    background-color: #fff8f8;
    transform: scale(1.05);
}

.pagination-circle-btn.active {
    background-color: #10b981 !important;
    /* Green like screenshot */
    color: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.25);
}

.pagination-circle-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    background-color: #f1f5f9;
    border-color: #e2e8f0;
}

/* Explore More Authors Styles */
.explore-authors-section {
    background-color: #ffffff;
    padding: 50px 20px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.explore-authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 30px auto 0;
}

.author-explore-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.author-explore-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(13, 43, 94, 0.06);
    border-color: #cbd5e1;
}

.author-explore-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
}

.author-explore-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.author-explore-count {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* Services Pill Tags */
.services-tags-section {
    background-color: #ffffff;
    padding: 40px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.services-tags-container {
    max-width: 900px;
    margin: 20px auto 0;
}

.services-category-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.services-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-tag-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.service-tag-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-1px);
}

/* Double CTA Banners */
.cta-banners-section {
    background-color: #f8fafc;
    padding: 50px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.cta-banners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .cta-banners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.cta-banner-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-banner-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.cta-banner-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 320px;
}

.cta-banner-btn {
    background-color: #475569;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.cta-banner-btn:hover {
    background-color: #1e293b;
    transform: translateY(-1px);
}

/* Floating WhatsApp Widget */
.floating-whatsapp-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
}

.floating-whatsapp-widget:hover {
    background-color: #20ba5a;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-badge {
    background-color: #ffffff;
    color: #25d366;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 20px;
    line-height: 1;
    margin-left: 2px;
}

/* Mobile Header Layout override */
@media (max-width: 768px) {
    .land-header.news-white-header {
        padding: 4px 16px !important; /* Reduced vertical padding on mobile */
    }

    .land-header.news-white-header .mobile-menu-toggle {
        display: block !important;
        /* Show hamburger on mobile */
    }

    .logo-brand-text {
        font-size: 1.1rem !important;
    }

    .land-nav-links {
        display: none !important;
        /* Hide regular links on mobile */
    }

    .land-nav-links.active {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important; /* Align menu links to left side */
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 20px !important;
        gap: 15px !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
        z-index: 1000 !important;
    }

    .land-nav-links.active a {
        text-align: left !important;
        width: 100% !important;
        display: block !important;
        padding: 8px 0 !important;
    }

    .hamburger-menu-btn {
        display: none !important;
    }

    /* Flatten dropdown menus for easy tapping in mobile view list */
    .nav-dropdown {
        display: block !important;
        width: 100%;
        text-align: left;
    }

    .nav-dropdown-content {
        display: block !important;
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 5px 0 5px 15px !important;
        background: transparent !important;
        width: auto !important;
        margin-top: 0 !important;
    }

    .nav-dropdown-content a {
        padding: 8px 12px !important;
    }

    .nav-dropdown-toggle i {
        display: none !important;
    }

    /* Mobile search overrides */
    .mobile-only-search {
        display: inline-flex !important;
    }
}