/* 
  Pakistan Daily Hub - Main Stylesheet
  Focus: Performance, Premium Aesthetics, and AdSense-Friendly Layout
*/

:root {
    --primary-color: #059669;
    /* Emerald Green */
    --primary-dark: #064e3b;
    --accent-color: #fbbf24;
    /* Premium Gold */
    --text-color: #1E293B;
    --text-muted: #64748B;
    --bg-color: #F8FAFC;
    --white: #FFFFFF;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.heading-font {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 102, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo i {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(0, 102, 0, 0.2));
    background: linear-gradient(135deg, var(--primary-color), #00a800);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover i {
    transform: rotate(15deg) scale(1.1);
}

@keyframes logo-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.logo i {
    animation: logo-float 3s ease-in-out infinite;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.8rem 0;
    z-index: 1100;
    border: 1px solid #f1f5f9;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background: #f8fafc;
    color: var(--primary-color) !important;
}

/* Mobile Dropdown Styling */
@media (max-width: 768px) {
    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        display: block;
        padding-left: 1rem;
        background: #f8fafc;
        margin-top: 0.5rem;
        transform: none;
    }
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0.5rem;
}

/* Sidebar & 2-1 Grid (Responsive) */
.grid-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 992px) {
    .grid-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Advanced Hero Section */
.hero-advanced {
    position: relative;
    padding: 8rem 0 10rem;
    background: #05140b;
    background: radial-gradient(circle at top right, #01411C 0%, #05140b 100%);
    overflow: hidden;
    color: var(--white);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
    pointer-events: none;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.badge-trending {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pulse-icon {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    position: relative;
}

.pulse-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #22c55e;
    border-radius: 50%;
    animation: badge-pulse 1.5s infinite;
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-title span {
    color: var(--primary-color);
    background: linear-gradient(to right, #22c55e, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-search-container {
    max-width: 650px;
}

.search-glass {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.search-glass input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.search-btn:hover {
    background: #008000;
    transform: translateY(-2px);
}

.search-options {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    padding-left: 10px;
    color: #64748b;
}

.search-options a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
}

.search-options a:hover {
    color: var(--primary-color);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
}

.glass-floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.rate-up {
    top: 5%;
    left: 0%;
    animation: hero-float 6s ease-in-out infinite;
}

.weather-card {
    top: 40%;
    left: 30%;
    animation: hero-float 6s ease-in-out infinite 2s;
}

.news-card {
    bottom: 5%;
    left: 10%;
    animation: hero-float 6s ease-in-out infinite 4s;
}

.card-icon {
    width: 45px;
    height: 45px;
    background: rgba(0, 102, 0, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #22c55e;
}

.card-info .tag {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.card-info .val {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

@keyframes hero-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 992px) {
    .hero-advanced {
        padding: 4rem 0 6rem;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .hero-search-container {
        margin: 0 auto;
    }

    .search-options {
        justify-content: center;
    }

    .hero-visual {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .glass-floating-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        bottom: auto !important;
        animation: none !important;
        width: 100%;
        max-width: 350px;
    }
}

/* Ad Spaces */
.ad-space {
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.8rem;
    min-height: 90px;
    border-radius: 8px;
}

/* Grid Sections */
.section-title {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title h2 {
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Rate Cards */
.rate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.rate-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    border-bottom: 4px solid var(--primary-color);
}

.rate-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    align-items: center;
}

.rate-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.rate-value {
    font-size: 1.8rem;
    font-weight: 800;
}

.rate-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* AI Tool Cards */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid #e2e8f0;
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: #eefdf3;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

/* Footer */
footer {
    background: #111827;
    color: #e5e7eb;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links li {
    list-style: none;
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* Button Premium */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Table Styles for Rates */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.data-table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.data-table tr:hover {
    background: #f8fafc;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.text-reveal {
    animation: slideInUp 1s ease-out forwards;
}

/* Card Hover Effects */
.rate-card,
.tool-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rate-card:hover,
.tool-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .nav-wrapper {
        padding: 0.8rem 1.5rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 1.5rem;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 1.5rem;
        border-top: 1px solid #f1f5f9;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .dropdown {
        width: 100%;
    }

    .nav-links .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        border-left: 2px solid var(--primary-color);
        margin-top: 0.5rem;
        display: none;
    }

    .nav-links .dropdown.active .dropdown-content {
        display: block;
    }

    .mobile-nav-toggle {
        display: block;
        font-size: 1.5rem;
        color: var(--text-color);
        cursor: pointer;
        transition: color 0.3s ease;
    }

    .mobile-nav-toggle:hover {
        color: var(--primary-color);
    }

    /* Hero adjustments */
    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-search {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        gap: 12px;
    }

    .hero-search input {
        background: var(--white);
        width: 100%;
        padding: 1.2rem 1.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        border-radius: 12px;
    }

    .hero-search button {
        width: 100%;
        padding: 1.2rem;
        border-radius: 12px;
    }

    /* Rate Grid */
    .rate-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Section titles */
    .section-title h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .data-table::after {
        content: 'Scroll right →';
        display: block;
        font-size: 0.7rem;
        color: var(--text-muted);
        text-align: right;
        margin-top: 5px;
    }

    /* Banners & posters on mobile */
    .premium-banner {
        height: auto !important;
        min-height: 450px;
        align-items: flex-end;
    }

    .banner-content {
        padding: 2rem 1.5rem !important;
        text-align: center;
    }

    .banner-content h2 {
        font-size: 2rem !important;
    }

    .feature-poster {
        height: 400px !important;
    }

    .poster-info {
        left: 20px !important;
        right: 20px !important;
        bottom: 20px !important;
        padding: 1rem !important;
    }
}

/* Premium Banners & Posters */
.full-banner-section {
    width: 100%;
    margin: 4rem 0;
    overflow: hidden;
}

.premium-banner {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.premium-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 0 4rem;
    color: var(--white);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.banner-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
    line-height: 1.1;
}

.banner-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

.feature-poster {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 450px;
    /* Fixed height for consistent look */
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: transform 0.4s ease;
    margin-bottom: 1.5rem;
    background: #f1f5f9;
}

.feature-poster:hover {
    transform: translateY(-10px);
}

.feature-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feature-poster:hover img {
    transform: scale(1.1);
}

.poster-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--white);
    z-index: 2;
}

.poster-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--white);
}

.poster-info span {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .premium-banner {
        height: auto !important;
        min-height: 400px;
        align-items: flex-end;
    }

    .premium-banner::before {
        width: 100%;
        height: 100%;
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
    }

    .banner-content {
        padding: 3rem 1.5rem !important;
        text-align: center;
    }

    .banner-content h2 {
        font-size: 2.2rem !important;
        margin-bottom: 0.8rem !important;
    }

    .banner-content p {
        font-size: 1rem !important;
        margin: 0 auto 1.5rem !important;
    }
}

/* Feature Poster Overrides for Mobile */
@media (max-width: 600px) {
    .feature-poster {
        height: 380px !important;
        margin-bottom: 2rem !important;
    }

    .poster-info {
        left: 20px !important;
        right: 20px !important;
        bottom: 20px !important;
        padding: 1rem !important;
    }

    .poster-info h3 {
        font-size: 1.1rem !important;
    }
}