/* style.css */

/*  ---------------------------------------
    TABLE OF CONTENTS:
    ---------------------------------------
    1.  BASIC RESET
    2.  GENERAL STYLES
    3.  LANGUAGE-SPECIFIC STYLES
    4.  LAYOUT
    5.  HEADER
    6.  MAIN CONTENT
    7.  ARTICLE CARDS
    8.  PAGINATION
    9.  FOOTER
    10. RESPONSIVE DESIGN
	11. Article CSS
	12. Category CSS
*/


/* --------------------------------------- */
/* 1. BASIC RESET */
/* --------------------------------------- */

/* Basic Reset (Optional, but often helpful) */
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, form, input, textarea, button {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box; /* Important for consistent sizing */
}



/* --------------------------------------- */
/* 2. GENERAL STYLES */
/* --------------------------------------- */

:root {
    --primary-color: #4CAF50;
    --text-color: #333;
    --background-color: #f8f8f8;
    --font-family: 'Open Sans', sans-serif;
    --container-max-width: 1900px;
    --border-color: #eee;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: #ffffff;
   /* color: var(--text-color);*/
}

a {
    color: #91002F ;
    text-decoration: none;
}

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


a i {
	color:#0201B1;
		text-decoration: none;
	
}

/* --------------------------------------- */
/* 3. LANGUAGE-SPECIFIC STYLES */
/* --------------------------------------- */

html[lang="en"] body {
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

html[lang="hindi"] body {
    font-family: "Martel", serif;
}

html[lang="odia"] body {
    font-family: "Anek Odia", sans-serif;
}

html[lang="odia"] h1, html[lang="odia"] h2, html[lang="odia"] h3 {
    font-family: "Anek Odia", sans-serif;
}


html[lang="hindi"] h1, html[lang="hindi"] h2, html[lang="hindi"] h3 {
    font-family: "Martel", serif;
    font-weight: 700; /* Bold */
}
html[lang="hindi"] p {
    font-family: "Martel", serif;
    font-weight: 400; /* Regular */
}


html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 {
    font-family: "Open Sans", sans-serif;
    font-weight: 600; /* Semi-Bold */
}
html[lang="en"] p {
    font-family: "Open Sans", sans-serif;
    font-weight: 400; /* Regular */
}



/* --------------------------------------- */
/* 4. LAYOUT */
/* --------------------------------------- */

.container {
    width: 95%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 1px;
}


/* --------------------------------------- */
/* 5. HEADER */
/* --------------------------------------- */
header {
    background-color: #fff;
    
    width: 100%;
    
    margin: 0 auto;
   
    box-sizing: border-box; /* Add box-sizing */
}

.header-container {
    width: 100%; /* Make it full width */
    max-width: var(--container-max-width);
    margin: 0 auto;
    overflow: hidden; /* changed from auto to hidden*/
    box-sizing: border-box; /* Add box-sizing */
}


.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.language-links {
    text-align: right; /* Align to the right */
    margin-bottom: 10px;
    box-sizing: border-box; /* Add box-sizing */
    float: right; /* float to right */
}

.language-links a {
    margin: 0 5px;
    text-decoration: none;
    color: #555;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.language-links a:hover {
    background-color: #eee;
}

.header-content {
    display: flex;
    justify-content: space-between; /* Changed to space-between */
    align-items: center;
    box-sizing: border-box; /* Add box-sizing */
}

.logo {
    flex-grow: 1; /* Allow logo to take up remaining space */
    text-align: left; /* Align logo to the left */
    box-sizing: border-box; /* Add box-sizing */
}

.logo img {
    /* Already set height in HTML.  Consider max-width if needed */
    box-sizing: border-box; /* Add box-sizing */
}

.search-form {
    display: flex;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 5px;
}

.search-button {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}




/* --------------------------------------- */
/* 6. MAIN CONTENT */
/* --------------------------------------- */

main {
    padding: 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px; /* Creates gutter, adjust as needed */
}

.col-md-4 { /* Changed from col-md-2_4 */
    width: 33.333%; /* Three columns */
    padding: 0 10px; /* Keep content inside the column */
    margin-bottom: 20px;
    box-sizing: border-box; /* Important */
}


/* --------------------------------------- */
/* 7. ARTICLE CARDS */
/* --------------------------------------- */

.article-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.article-card img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 10px;
    height: 280px;

}

.article-card h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
    padding: 15px;

}

.article-card h3 a {
    text-decoration: none;
    color: #333;
}

.article-card p {
    font-size: 0.9em;
    color: #666;
    padding: 15px;

}

	/* Styles for the pagination links */
        .pagination {
            display: flex;
            justify-content: center; /* Center the pagination */
            padding: 20px 0;       /* Add some padding above and below */
        }

        .pagination a {
            color: #337ab7;      /* Link color */
            text-decoration: none; /* Remove underlines */
            padding: 5px 10px;    /* Add spacing around text */
            border: 1px solid #ddd;  /* Add a border */
            margin: 0 5px;        /* Add space between links */
        }

        .pagination a:hover {
            background-color: #eee; /* Highlight on hover */
        }

        .pagination .current {
            background-color: #337ab7; /* Background color for the current page */
            color: white;           /* Text color for the current page */
            border-color: #337ab7;    /* Border color for the current page */
        }


/* --------------------------------------- */
/* 8. PAGINATION */
/* --------------------------------------- */

.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 20px 0;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    color: #337ab7;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.page-link:hover {
    background-color: #eee;
}

.page-item.disabled .page-link {
    color: #999;
    background-color: #fff;
    border-color: #ddd;
    cursor: not-allowed;
}


/* --------------------------------------- */
/* 9. FOOTER */
/* --------------------------------------- */




/* --------------------------------------- */
/* 10. RESPONSIVE DESIGN */
/* --------------------------------------- */

@media (max-width: 768px) {

    .col-md-4 {
        width: 50%; /* Two columns on medium screens */
    }
}

@media (max-width: 576px) {
    .col-md-4 {
        width: 100%; /* One column on small screens */
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 10px;
    }

    .search-form {
        width: 100%;
    }

    .search-input {
        width: 100%;
    }
}

/* --------------------------------------- */
/* 11. Article CSS */
/* --------------------------------------- */

.article-image {
    max-width: 100%;
    height: auto;
}

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

.article-content {
    width: 66.666%;
    padding-right: 20px;
    box-sizing: border-box;
}

.article-content h1 {
        font-size:2.3em  !important; font-weight: 600
    }
.article-content .pb_date
{
	font-size: 13px;
}

.article-content .art-cont-image{width:100%; }

.article-sidebar {
    width: 33.333%;
    box-sizing: border-box;
}


/* Media query for screens smaller than 768px (tablets) */
@media (max-width: 768px) {
    .article-content {
        width: 100%; /* Make content take full width */
        padding-right: 0; /* Remove padding */
    }
	
	.article-content h1 {
        font-size:1.3em  !important; font-weight: 600
    }

	.article-content .pb_date
    {
	font-size: 12px;
    }
	.article-content .art-cont-image{width:100%}
    .article-sidebar {
        width: 100%; /* Make sidebar take full width */
    }
}

/* Media query for screens smaller than 576px (mobile phones) */
@media (max-width: 576px) {
    .article-content {
        width: 100%;
    }

	.article-content h1 {
        font-size:1.3em  !important; font-weight: 600
    }
	
	.article-content .pb_date
    {
	font-size: 10px;
     }
	
	.article-content .art-cont-image{width:100%}
    .article-sidebar {
        width: 100%;
    }
}

/* --------------------------------------- */
/* 12. Category CSS */
/* --------------------------------------- */
 /* Basic container for grid layout */
        .article-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns */
            gap: 15px; /* Space between grid items */
            padding: 15px;
        }

        /* Style for each individual article block */
        .article-block {
            border: 1px solid #ddd; /* Light border for separation */
            
            text-align: left;
            height: 400px; /* Enforce a consistent height */
            overflow: hidden; /* Ensure content doesn't overflow */
        }

        .article-block img {
            width: 100%;
            height: 200px; /* Fixed height for images */
            object-fit: cover; /* Maintain aspect ratio, crop if necessary */
            margin-bottom: 10px;
        }

        .article-block h3 {
            font-size: 1.2em;
            margin-bottom: 5px;
			padding: 0 8px 0 8px;
        }

        .article-block .article-text {
            font-size: 0.9em;
            color: #666;
			padding: 0 8px 8px 8px;
            height: 75px; /* Fixed height for descriptions */
            overflow: hidden; /* Hide overflowing text */
        }

        .article-block .publish-date {
            font-size: 0.8em;
            color: #888;
            margin-top: 5px;
			padding: 0 8px 0 8px;
        }
/* News Ticker */
.breaking-news-ticker {
    background-color: #f00;
    color: white;
    overflow: hidden;
    position: relative;
    font-family: sans-serif;
    height: 40px;
    line-height: 40px;
    display: flex;
    align-items: center;
}

.breaking-news-button {
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.breaking-news-container {
    position: relative;
    z-index: 1;
    padding-left: 10px;
    height: 40px; /* Fixed height */
    overflow: hidden; /* Ensure only one is visible */
}

.breaking-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative; /* Ensure the relative positioning */
    height: 100%;    /* Important: Occupy the full height of the container */
}

.breaking-news-list li {
    position: absolute; /* Items positioned absolutely */
    top: 0px;        /* initially below the ticker container */
    left: 0;
    width: 100%;
    height: 100%;
}

.breaking-news-list li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: block;
    width: 100%;
    height: 100%;
}



/* In your frontend style.css */
.ql-video { /* Quill wraps iframe in a div with this class */
    width: 100%;
    max-width: 720px; /* Or your preferred max video width */
    margin: 1em auto; /* Center it */
    aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
}
.ql-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* If Quill doesn't add a wrapper with aspect-ratio support, you might need to do: */

article .ql-editor iframe[src*="youtube.com"],
article .ql-editor iframe[src*="vimeo.com"] {
    display: block;
    max-width: 100%;
    width: 720px;  Adjust as needed
    height: 405px;  Calculated for 16:9 from 720px width
    margin: 1em auto;
}
@media (max-width: 768px) {
    article .ql-editor iframe[src*="youtube.com"],
    article .ql-editor iframe[src*="vimeo.com"] {
        width: 100%;
        height: calc(100vw * 9 / 16); /* Full viewport width, 16:9 height */
    }
}
