/*!
Theme Name: Template Pro
Theme URI: https://sundarban-it.com
Author: Sundarban IT Ltd
Author URI: https://sundarban-it.com
Description: Professional WordPress News Theme.
Version: 5.0.1
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: templatepro_codedokan
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
*/

/* =====================
   Base CSS (Optimized)
===================== */

@font-face {
    font-family: 'SolaimanLipiNormal';
    src: url('fonts/solaiman-lipi.woff') format('woff'),
         url('fonts/solaiman-lipi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SolaimanLipiNormal', Arial, sans-serif;
    line-height: 1.6;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
    color: #0a4466;
}

/* Lists */
ul {
    list-style: none;
}

/* Alignment */
.alignleft { float: left; margin-right: 15px; }
.alignright { float: right; margin-left: 15px; }
.aligncenter { display: block; margin: 0 auto 15px; }

/* =====================
   Layout Grid Fix
===================== */

.row {
    display: flex;
    flex-wrap: wrap;
}

.codedokan-1 { width: 100%; }
.codedokan-2 { width: 50%; }
.codedokan-3 { width: 33.33%; }
.codedokan-4 { width: 25%; }
.codedokan-6 { width: 16.66%; }

/* =====================
   Header
===================== */

.logo img {
    width: 100%;
    height: auto;
}

.date {
    text-align: center;
    margin-top: 15px;
}

.header-social {
    text-align: right;
}

.header-social a {
    display: inline-block;
    width: 38px;
    height: 38px;
    line-height: 38px;
    border-radius: 50%;
    text-align: center;
    color: #fff;
    margin-left: 5px;
}

.header-social a:nth-child(1) { background: #3b5998; }
.header-social a:nth-child(2) { background: #00acee; }
.header-social a:nth-child(3) { background: #c4302b; }
.header-social a:nth-child(4) { background: #0e76a8; }

/* =====================
   Menu
===================== */

.menu-two {
    background: #fff;
    padding: 10px;
}

.menu-item-two ul li {
    display: inline-block;
    padding: 5px;
}

.menu-item-two ul li a {
    font-size: 16px;
    color: #000;
}

.menu-item-two ul li a:hover {
    color: #9d0000;
}

/* =====================
   Search Fix
===================== */

.searchBar {
    position: absolute;
    right: 20px;
    top: 60px;
    width: 250px;
    display: none;
    z-index: 999;
}

.searchBar.active {
    display: block;
}

.searchBar input {
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
}

/* =====================
   Section Box
===================== */

.box {
    box-shadow: 0 0 5px #ddd;
    margin-bottom: 15px;
    background: #fff;
}

/* =====================
   News Image
===================== */

.news-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* =====================
   Title Hover
===================== */

.title a:hover {
    color: #033f62;
}

/* =====================
   Buttons
===================== */

.btn {
    display: inline-block;
    padding: 8px 15px;
    background: #b30f0f;
    color: #fff;
}

.btn:hover {
    background: #900;
}

/* =====================
   Footer
===================== */

.footer {
    background: #111;
    color: #fff;
    padding: 30px 0;
}

.footer a {
    color: #ccc;
}

.footer a:hover {
    color: #fff;
}

.copy_right_section {
    border-top: 1px solid #333;
    margin-top: 20px;
    padding-top: 10px;
    text-align: center;
}

/* =====================
   Animation (Single Clean Version)
===================== */

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,0,0,0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,0,0,0); }
}

/* =====================
   AdSense Friendly Fix
===================== */

/* Prevent overflow issues */
.container {
    max-width: 1200px;
    margin: auto;
}

/* Avoid hidden ads */
iframe {
    max-width: 100%;
}

/* Avoid negative z-index issues */
* {
    z-index: auto;
}