@font-face {
    font-family: "Nafeese";
    src: url("/front/fonts/nafeese.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* :root {
    --primary-color: #d9534f;
    --secondary-color: #f8f9fa;
    --tertiary-color: #6c757d;
    --dark-text: #000;
    --white-text: #ffff;
    --lighter-gray: #ddd;
    --hover-color: #f8b400;
  } */
/* :root {
    --primary-color: {{ $siteColors->primary ?? '#d9534f' }};
    --secondary-color: {{ $siteColors->secondary ?? '#f8f9fa' }};
    --tertiary-color: {{ $siteColors->tertiary ?? '#6c757d' }};
    --dark-text: {{ $siteColors->dark_text ?? '#000' }};
    --white-text: {{ $siteColors->white_text ?? '#ffff' }};
    --lighter-gray: {{ $siteColors->lighter_gray ?? '#ddd' }};
    --hover-color: {{ $siteColors->hover ?? '#f8b400' }};
} */
body {
    font-family: "Nafeese", sans-serif; /* Default Urdu Font */
}

/* English text should use standard fonts to avoid character rendering issues */
.footer p,
.footer .english-text,
[dir="ltr"],
.english-content {
    font-family: "Arial", "Helvetica", "Segoe UI", "Roboto", sans-serif !important;
    font-feature-settings: "liga" 1, "kern" 1;
    text-rendering: optimizeLegibility;
}

/* Specific styling for contact information */
.footer .contact-info {
    font-family: "Arial", "Helvetica", "Segoe UI", "Roboto", sans-serif !important;
    font-feature-settings: "liga" 1, "kern" 1;
    text-rendering: optimizeLegibility;
}

/* Ensure proper character rendering for mixed content */
.footer {
    font-variant-ligatures: common-ligatures;
    font-feature-settings: "liga" 1, "kern" 1;
}

/* Utility class for English content throughout the site */
.english-text {
    font-family: "Arial", "Helvetica", "Segoe UI", "Roboto", sans-serif !important;
    font-feature-settings: "liga" 1, "kern" 1;
    text-rendering: optimizeLegibility;
    direction: ltr;
}

/* For mixed content areas */
.mixed-content {
    font-family: "Arial", "Helvetica", "Segoe UI", "Roboto", sans-serif !important;
    font-feature-settings: "liga" 1, "kern" 1;
    text-rendering: optimizeLegibility;
}

/* Urdu text should use Nafeese font */
.urdu-text {
    font-family: "Nafeese", sans-serif !important;
    direction: rtl;
}

/* When Google Translate is active, use Poppins */
html.translated-ltr body, 
html.translated-rtl body {
    font-family: "Poppins", sans-serif !important;
}

.top-header {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.top-header-time,
.top-header-date {
    font-weight: bold;
    font-size: 18px;
    color: var(--primary-color);
}

.top-header-logo {
    height: 80px;
}

@media (max-width: 768px) {
    .top-header-time,
    .top-header-date {
        display: none !important;
    }
    .top-header {
        display: block !important;
    }
}
.nav-link.active,
.dropdown-item.active {
    font-weight: bold;
    color: var(--hover-color) !important;
    /* color: var(--primary-color) !important; */
    /* background-color: var(--primary-color); */
    /* background-color: var(--secondary-color); */
    /* border-bottom: 2px solid var(--primary-color); */
}

/* Center the hamburger icon */
.navbar-toggler {
    margin: 0 auto; /* Center horizontally */
    padding: 3px;
    border-radius: 5px;
}

/* Hamburger icon styles */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(217,83,79, 1)' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Responsive padding adjustments */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
    }

    .nav-item {
        margin: 5px 0;
    }
}
.news-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.news-card h5 {
    font-size: 1rem;
    margin-top: 1rem;
}
.news-card h5 a {
    line-height: 35px;
}

/* Image Zoom Effect */
.news-card img {
    transition: transform 0.3s ease-in-out;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.news-card img:hover {
    transform: scale(1.1);
}

/* Title Hover Effect */
.news-card h5 {
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.news-card h5 a:hover {
    color: var(--primary-color);
}
.post-title-hover:hover{
    color: var(--hover-color) !important;
}

/* Date Styling */
.post-date {
    font-size: 14px;
    color: var(--tertiary-color);
    margin-top: 5px;
}

.news-category {
    font-weight: bold;
    border-bottom: 2px solid var(--dark-text);
    margin-bottom: 1rem;
}
.pdf-viewer-container {
    position: relative;
    height: 80vh;
    border: 1px solid var(--lighter-gray);
    border-radius: 5px;
    overflow: hidden;
}
.navbar {
    background-color: var(--primary-color);
}

.nav-link {
    color: var(--white-text);
    margin: 0 10px;
    font-size: 20px;
}

.nav-link:hover {
    color: var(--hover-color);
}

.main-content {
    padding: 20px;
}

.news-item {
    margin-bottom: 20px;
}

.footer {
    background-color: var(--primary-color);
    color: var(--white-text);
    padding-top: 30px;
    padding-bottom: 10px;
    /* font-size: 14px; */
}
.footer a {
    color: var(--white-text);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}
.footer a:hover {
    color: var(--hover-color);
    text-decoration: none;
}
.footer .social-icons a {
    font-size: 20px;
    margin: 0 10px;
    transition: transform 0.3s;
}
.footer .social-icons a:hover {
    transform: scale(1.2);
    color: var(--hover-color);
}
.footer .footer-bottom {
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-top: 20px;
    text-align: center;
}

/* Pdf Layout */
#pdf-container {
    width: 100%;
    height: 1200px;
    /* height: calc(100vh - 60px); */
    /* Full height minus button area */
    overflow: hidden;
    /* Prevent scrollbars from appearing */
    position: relative;
    cursor: grab;
    /* Change cursor to grab */
}

canvas {
    display: block;
    margin: auto;
}

.controls {
    position: absolute;
    /* top: 20px; */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    /* Ensure controls are above the canvas */
    background-color: var(--lighter-gray);
    /* Semi-transparent white background */
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.zoom-button {
    background-color: #007bff;
    color: var(--white-text);
    border: none;
    padding: 5px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.zoom-button .zoming-icon {
    font-size: 22px !important;
}

.zoom-button:hover {
    background-color: #0056b3;
    /* Darker blue on hover */
}

#zoom-level {
    color: #333;
    margin-top: 10px;
}

.editorial-container {
    /* background: white; */
    padding: 15px;
    border-radius: 8px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    margin-bottom: 20px;
}

/* .editorial-header {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
     padding-bottom: 10px;
    border-bottom: 2px solid #000;
} */

.editorial-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--lighter-gray);
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

.editorial-item:last-child {
    border-bottom: none;
}

.editorial-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-left: 10px;
    object-fit: cover;
}

.editorial-content {
    flex-grow: 1;
}

.editorial-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}
.editorial-title:hover {
    color: var(--hover-color) !important;
}
.newspaper-lists:hover {
    color: var(--hover-color) !important;
}
.newspaper-lists {
    text-decoration: none;
    color: var(--dark-text) !important;
}

.editorial-author {
    font-size: 14px;
    color: #666;
}

@media (max-width: 576px) {
    .editorial-item {
        flex-direction: row-reverse;
    }
}

/* Follow Us Buttons */
/* Follow Us Buttons */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    color: var(--white-text);
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.social-btn i {
    font-size: 22px;
}

.social-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease-in-out;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.social-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #0077b5);
}

.social-btn.facebook {
    background: linear-gradient(135deg, #3b5998, #2c3e50);
}

.social-btn.instagram {
    background: linear-gradient(135deg, #e4405f, #ff8c00);
}

.detail-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007bff; /* Change color as needed */
    color: white;
    text-decoration: none;
    font-size: 18px;
    margin-right: 10px;
    transition: 0.3s;
}

.detail-social-icons a:hover {
    background-color: #0056b3;
}

.main-container-adjustment {
    padding-left: 50px;
    padding-right: 50px;
    padding-top: 50px;
}

@media (max-width: 768px) {
    .main-container-adjustment {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 50px;
    }
}
