|
Server IP : 2a02:4780:2b:1556:0:9c6:43c4:d / Your IP : 216.73.217.162 Web Server : LiteSpeed System : Linux us-bos-web1456.main-hosting.eu 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64 User : u163988420 ( 163988420) PHP Version : 8.5.4 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u163988420/domains/awskotra.in/../dnnindia.news/public_html/AACSITE/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php include 'includes/header.php'; ?>
<!-- =========================
HERO NEWS SECTION START
========================= -->
<section class="hero-news-section">
<div class="container">
<div class="row">
<!-- LEFT MAIN NEWS -->
<div class="col-lg-8">
<?php
$featured = $articles[0];
?>
<div class="main-news-card">
<img src="admin/uploads/articles/<?php echo $featured['image']; ?>" alt="">
<div class="main-news-overlay"></div>
<div class="main-news-content">
<span class="news-tag">
<?php echo $featured['category_name']; ?>
</span>
<a href="article.php?slug=<?php echo $featured['slug']; ?>" class="text-decoration-none">
<h1 class="main-news-title">
<?php echo $featured['title']; ?>
</h1>
</a>
<div class="news-meta">
<div>
<i class="bi bi-clock"></i>
<?php echo date('d M Y', strtotime($featured['created_at'])); ?>
</div>
</div>
</div>
</div>
</div>
<!-- RIGHT SIDEBAR -->
<div class="col-lg-4">
<?php for ($i = 1; $i <= 1 && $i < count($articles); $i++): ?>
<?php $article = $articles[$i]; ?>
<div class="side-news-card">
<div class="side-news-image">
<img src="admin/uploads/articles/<?php echo $article['image']; ?>" alt="">
</div>
<div class="side-news-content">
<span class="side-news-tag">
<?php echo $article['category_name']; ?>
</span>
<a href="article.php?slug=<?php echo $article['slug']; ?>"
class="text-decoration-none">
<h3 class="side-news-title">
<?php echo $article['title']; ?>
</h3>
</a>
<div class="side-news-meta">
<i class="bi bi-clock"></i>
<?php echo date('d M Y', strtotime($article['created_at'])); ?>
</div>
</div>
</div>
<?php endfor; ?>
<!-- UPDATE BOX -->
<div class="update-box">
<h3 class="update-title">
ЁЯУК рдЖрдЬ рдХреА рдкреНрд░рдореБрдЦ рдЕрдкрдбреЗрдЯ
</h3>
<ul class="update-list">
<li>
<div>
<i class="bi-star-fill"></i>
<?php echo $breakingnews1['title']; ?>
</div>
<span>
<?php echo $breakingnews1['subtitle']; ?>
</span>
</li>
<li>
<div>
<i class="bi-star-fill"></i>
<?php echo $breakingnews2['title']; ?>
</div>
<span>
<?php echo $breakingnews2['subtitle']; ?>
</span>
</li>
<li>
<div>
<i class="bi-star-fill"></i>
<?php echo $breakingnews3['title']; ?>
</div>
<span>
<?php echo $breakingnews3['subtitle']; ?>
</span>
</li>
</ul>
</div>
</div>
</div>
</div>
</section>
<style>
.hero-news-section {
padding: 40px 0;
background: #f1f5f9;
}
/* =========================
MAIN NEWS CARD
========================= */
.main-news-card {
position: relative;
border-radius: 28px;
overflow: hidden;
height: 520px;
}
.main-news-card img {
width: 100%;
height: 100%;
object-fit: cover;
transition: 0.5s;
}
.main-news-card:hover img {
transform: scale(1.05);
}
.main-news-overlay {
position: absolute;
inset: 0;
background: linear-gradient(to top,
rgba(0, 0, 0, 0.88),
rgba(0, 0, 0, 0.15),
rgba(0, 0, 0, 0.05));
}
.main-news-content {
position: absolute;
left: 30px;
bottom: 30px;
z-index: 2;
max-width: 85%;
}
.news-tag {
display: inline-block;
background: #e11d48;
color: #fff;
padding: 7px 15px;
border-radius: 30px;
font-size: 13px;
font-weight: 700;
margin-bottom: 18px;
}
.main-news-title {
color: #fff;
font-size: 52px;
font-weight: 800;
line-height: 1.25;
margin-bottom: 20px;
}
.news-meta {
display: flex;
align-items: center;
gap: 20px;
flex-wrap: wrap;
color: #fff;
font-size: 15px;
}
.news-meta i {
margin-right: 6px;
}
/* =========================
SIDE NEWS CARD
========================= */
.side-news-card {
background: #fff;
border-radius: 22px;
overflow: hidden;
display: flex;
margin-bottom: 20px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
transition: 0.3s;
}
.side-news-card:hover {
transform: translateY(-4px);
}
.side-news-image {
width: 38%;
}
.side-news-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.side-news-content {
width: 62%;
padding: 15px;
}
.side-news-tag {
display: inline-block;
background: #e11d48;
color: #fff;
padding: 5px 14px;
border-radius: 30px;
font-size: 12px;
font-weight: 700;
margin-bottom: 12px;
}
.side-news-title {
font-size: 21px;
font-weight: 700;
color: #111;
line-height: 1.5;
margin-bottom: 12px;
}
.side-news-meta {
color: #777;
font-size: 14px;
}
/* =========================
UPDATE BOX
========================= */
.update-box {
background: #fff;
border-radius: 22px;
padding: 25px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.update-title {
font-size: 24px;
font-weight: 800;
color: #111;
margin-bottom: 20px;
}
.update-list {
list-style: none;
padding: 0;
margin: 0;
}
.update-list li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 0;
border-bottom: 1px solid #eee;
font-size: 17px;
font-weight: 600;
}
.update-list li:last-child {
border-bottom: none;
}
.update-list span {
color: #e11d48;
font-weight: 800;
}
.update-list i {
margin-right: 8px;
color: #e11d48;
}
/* =========================
RESPONSIVE
========================= */
@media(max-width:991px) {
.main-news-card {
height: 450px;
margin-bottom: 25px;
}
.main-news-title {
font-size: 38px;
}
.side-news-title {
font-size: 18px;
}
}
@media(max-width:768px) {
.hero-news-section {
padding: 25px 0;
}
.main-news-card {
height: 380px;
border-radius: 20px;
}
.main-news-content {
left: 20px;
bottom: 20px;
max-width: 92%;
}
.main-news-title {
font-size: 28px;
}
.news-meta {
gap: 12px;
font-size: 13px;
}
.side-news-card {
flex-direction: column;
}
.side-news-image,
.side-news-content {
width: 100%;
}
.side-news-image {
height: 200px;
}
.update-title {
font-size: 21px;
}
.update-list li {
font-size: 15px;
}
}
</style>
<!-- =========================
CATEGORY SECTION START
========================= -->
<?php $colors = ['pink', 'orange', 'blue', 'green', 'purple', 'orange-dark', 'cyan', 'pink-light', 'red', 'health']; ?>
<section class="category-section">
<div class="container">
<div class="row g-4">
<?php foreach ($categories as $index => $category): ?>
<?php
$color = $colors[$index % count($colors)];
?>
<div class="col-lg-3 col-md-4 col-6">
<a href="category.php?slug=<?php echo $category['slug']; ?>"
class="category-card text-decoration-none">
<div class="category-icon <?php echo $color; ?>">
<i class="bi <?php echo $category['icon']; ?>"></i>
</div>
<h4>
<?php echo $category['name']; ?>
</h4>
</a>
</div>
<?php endforeach; ?>
</div>
</div>
</section>
<style>
.category-section {
padding: 60px 0;
background: #f1f5f9;
}
.category-card {
background: #f1f2f4;
border-radius: 24px;
padding: 40px 20px;
text-align: center;
display: block;
transition: 0.35s ease;
border: 2px solid transparent;
height: 100%;
}
.category-card:hover {
transform: translateY(-6px);
background: #fff;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.active-category {
border-color: #f1d8a7;
background: #f8f8f8;
}
.category-icon {
width: 56px;
height: 56px;
border-radius: 16px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 18px;
}
.category-icon i {
color: #fff;
font-size: 26px;
}
.category-card h4 {
font-size: 24px;
font-weight: 700;
color: #111827;
margin: 0;
}
/* ICON COLORS */
.pink {
background: #e11d48;
}
.orange {
background: #f4a000;
}
.blue {
background: #3b82f6;
}
.green {
background: #10b981;
}
.purple {
background: #8b5cf6;
}
.orange-dark {
background: #f97316;
}
.cyan {
background: #06b6d4;
}
.pink-light {
background: #ec4899;
}
.red {
background: #dc2626;
}
.health {
background: #22c55e;
}
/* RESPONSIVE */
@media(max-width:991px) {
.category-card {
padding: 35px 15px;
}
.category-card h4 {
font-size: 20px;
}
}
@media(max-width:576px) {
.category-section {
padding: 40px 0;
}
.category-card {
border-radius: 18px;
padding: 28px 12px;
}
.category-icon {
width: 50px;
height: 50px;
border-radius: 14px;
}
.category-icon i {
font-size: 22px;
}
.category-card h4 {
font-size: 17px;
}
}
</style>
<!-- =========================
LATEST NEWS SECTION START
========================= -->
<section class="latest-news-section">
<div class="container">
<!-- SECTION TITLE -->
<div class="section-header">
<h2 class="section-title">
<span></span>
рддрд╛рдЬрд╛ рдЦрдмрд░реЗрдВ
</h2>
<a href="category.php" class="view-all-btn">
рдФрд░ рджреЗрдЦреЗрдВ
<i class="bi bi-arrow-right"></i>
</a>
</div>
<!-- NEWS GRID -->
<div class="row g-4">
<!-- NEWS ITEM -->
<?php foreach ($articles as $index => $article): ?>
<?php
if ($index < 3) {
continue;
}
if ($index > 8) {
break;
}
?>
<div class="col-lg-4 col-md-6">
<div class="news-card">
<div class="news-image">
<img src="admin/uploads/articles/<?php echo $article['image']; ?>" alt="">
</div>
<div class="news-content">
<span class="news-category">
<?php echo $article['category_name']; ?>
</span>
<a href="article.php?slug=<?php echo $article['slug']; ?>" class="text-decoration-none">
<h3 class="news-title">
<?php echo $article['title']; ?>
</h3>
</a>
<div class="news-time">
<i class="bi bi-clock"></i>
<?php echo date('d M Y', strtotime($article['created_at'])); ?>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</section>
<style>
.latest-news-section {
padding: 70px 0;
background: #f1f5f9;
}
/* =========================
SECTION HEADER
========================= */
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 35px;
flex-wrap: wrap;
gap: 15px;
}
.section-title {
font-size: 34px;
font-weight: 800;
color: #0f172a;
display: flex;
align-items: center;
gap: 12px;
margin: 0;
}
.section-title span {
width: 4px;
height: 32px;
background: #e11d48;
border-radius: 10px;
display: inline-block;
}
.view-all-btn {
border: 1.5px solid #e11d48;
color: #e11d48;
padding: 10px 20px;
border-radius: 30px;
font-size: 15px;
font-weight: 700;
display: flex;
align-items: center;
gap: 8px;
transition: 0.3s;
text-decoration: none;
}
.view-all-btn:hover {
background: #e11d48;
color: #fff;
}
/* =========================
NEWS CARD
========================= */
.news-card {
background: #fff;
border-radius: 18px;
overflow: hidden;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
transition: 0.35s ease;
height: 100%;
}
.news-card:hover {
transform: translateY(-6px);
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}
.news-image {
overflow: hidden;
}
.news-image img {
width: 100%;
height: 230px;
object-fit: cover;
transition: 0.5s;
}
.news-card:hover .news-image img {
transform: scale(1.08);
}
.news-content {
padding: 20px;
}
.news-category {
display: inline-block;
background: #e11d48;
color: #fff;
padding: 6px 16px;
border-radius: 30px;
font-size: 12px;
font-weight: 700;
margin-bottom: 16px;
}
.news-title {
font-size: 22px;
font-weight: 700;
color: #111827;
line-height: 1.6;
margin-bottom: 18px;
}
.news-time {
color: #94a3b8;
font-size: 14px;
display: flex;
align-items: center;
gap: 7px;
}
/* =========================
RESPONSIVE
========================= */
@media(max-width:991px) {
.section-title {
font-size: 28px;
}
.news-title {
font-size: 20px;
}
.news-image img {
height: 210px;
}
}
@media(max-width:576px) {
.latest-news-section {
padding: 50px 0;
}
.section-header {
align-items: flex-start;
}
.section-title {
font-size: 24px;
}
.section-title span {
height: 26px;
}
.view-all-btn {
padding: 9px 16px;
font-size: 14px;
}
.news-content {
padding: 18px;
}
.news-title {
font-size: 18px;
}
.news-image img {
height: 200px;
}
}
</style>
<!-- =========================
AJMER NEWS SECTION START
========================= -->
<section class="ajmer-news-section">
<div class="container">
<!-- SECTION HEADER -->
<div class="section-header">
<h2 class="section-title">
<span></span>
рдЕрдЬрдореЗрд░ рд╕рдорд╛рдЪрд╛рд░
</h2>
<a href="category.php?slug=ajmer" class="view-all-btn">
рдЕрдЬрдореЗрд░ рдХреА рд╕рднреА рдЦрдмрд░реЗрдВ
<i class="bi bi-arrow-right"></i>
</a>
</div>
<div class="row g-4">
<?php
$ajmerNews = [];
foreach ($articles as $article) {
if ($article['category_slug'] == 'ajmer') {
$ajmerNews[] = $article;
}
}
?>
<div class="col-lg-7">
<div class="ajmer-main-news">
<img src="admin/uploads/articles/<?php echo $ajmerNews[0]['image']; ?>">
<div class="ajmer-overlay"></div>
<div class="ajmer-news-content">
<span class="ajmer-tag">
<?php echo $ajmerNews[0]['category_name']; ?>
</span>
<a href="article.php?slug=<?php echo $ajmerNews[0]['slug']; ?>" class="text-decoration-none">
<h3 class="ajmer-main-title">
<?php echo $ajmerNews[0]['title']; ?>
</h3>
</a>
<div class="ajmer-news-time">
<i class="bi bi-clock"></i>
<?php echo date('d M Y', strtotime($ajmerNews[0]['created_at'])); ?>
</div>
</div>
</div>
</div>
<div class="col-lg-5">
<div class="side-news-wrapper">
<?php foreach ($ajmerNews as $index => $article): ?>
<?php
if ($index == 0) {
continue;
}
if ($index > 3) {
break;
}
?>
<div class="mini-news-card">
<div class="mini-news-image">
<img src="admin/uploads/articles/<?php echo $article['image']; ?>">
</div>
<div class="mini-news-content">
<a href="article.php?slug=<?php echo $article['slug']; ?>" class="text-decoration-none">
<h4>
<?php echo $article['title']; ?>
</h4>
</a>
<div class="mini-news-time">
<i class="bi bi-clock"></i>
<?php echo date('d M Y', strtotime($article['created_at'])); ?>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</div>
</div>
</section>
<style>
.ajmer-news-section {
padding: 70px 0;
background: #f1f5f9;
}
/* =========================
SECTION HEADER
========================= */
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 35px;
flex-wrap: wrap;
gap: 15px;
}
.section-title {
font-size: 34px;
font-weight: 800;
color: #0f172a;
display: flex;
align-items: center;
gap: 12px;
margin: 0;
}
.section-title span {
width: 4px;
height: 32px;
background: #e11d48;
border-radius: 10px;
}
.view-all-btn {
border: 1.5px solid #e11d48;
color: #e11d48;
padding: 10px 20px;
border-radius: 30px;
font-size: 14px;
font-weight: 700;
text-decoration: none;
display: flex;
align-items: center;
gap: 8px;
transition: 0.3s;
}
.view-all-btn:hover {
background: #e11d48;
color: #fff;
}
/* =========================
MAIN NEWS
========================= */
.ajmer-main-news {
position: relative;
height: 420px;
border-radius: 20px;
overflow: hidden;
}
.ajmer-main-news img {
width: 100%;
height: 100%;
object-fit: cover;
transition: 0.5s;
}
.ajmer-main-news:hover img {
transform: scale(1.06);
}
.ajmer-overlay {
position: absolute;
inset: 0;
background: linear-gradient(to top,
rgba(0, 0, 0, 0.85),
rgba(0, 0, 0, 0.15),
rgba(0, 0, 0, 0));
}
.ajmer-news-content {
position: absolute;
left: 25px;
bottom: 25px;
z-index: 2;
width: 85%;
}
.ajmer-tag {
display: inline-block;
background: #e11d48;
color: #fff;
padding: 6px 16px;
border-radius: 30px;
font-size: 12px;
font-weight: 700;
margin-bottom: 15px;
}
.ajmer-main-title {
color: #fff;
font-size: 34px;
font-weight: 800;
line-height: 1.45;
margin-bottom: 15px;
}
.ajmer-news-time {
color: #dbe4ee;
font-size: 14px;
display: flex;
align-items: center;
gap: 8px;
}
/* =========================
SIDE NEWS
========================= */
.side-news-wrapper {
background: #fff;
border-radius: 18px;
padding: 20px;
height: 100%;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.mini-news-card {
display: flex;
gap: 15px;
padding-bottom: 18px;
margin-bottom: 18px;
border-bottom: 1px solid #ececec;
}
.mini-news-image {
width: 120px;
min-width: 120px;
height: 78px;
border-radius: 10px;
overflow: hidden;
}
.mini-news-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: 0.4s;
}
.mini-news-card:hover img {
transform: scale(1.08);
}
.mini-news-content h4 {
font-size: 16px;
font-weight: 700;
color: #111827;
line-height: 1.6;
margin-bottom: 10px;
}
.mini-news-time {
color: #94a3b8;
font-size: 13px;
display: flex;
align-items: center;
gap: 7px;
}
/* =========================
RESPONSIVE
========================= */
@media(max-width:991px) {
.ajmer-main-news {
height: 360px;
}
.ajmer-main-title {
font-size: 28px;
}
.side-news-wrapper {
margin-top: 20px;
}
}
@media(max-width:576px) {
.ajmer-news-section {
padding: 50px 0;
}
.section-title {
font-size: 24px;
}
.section-title span {
height: 26px;
}
.view-all-btn {
font-size: 13px;
padding: 8px 15px;
}
.ajmer-main-news {
height: 300px;
border-radius: 16px;
}
.ajmer-news-content {
left: 18px;
bottom: 18px;
width: 92%;
}
.ajmer-main-title {
font-size: 22px;
}
.mini-news-card {
flex-direction: column;
}
.mini-news-image {
width: 100%;
height: 180px;
}
.mini-news-content h4 {
font-size: 15px;
}
}
</style>
<!-- =========================
SPORTS NEWS SECTION START
========================= -->
<section class="sports-news-section">
<div class="container">
<!-- SECTION HEADER -->
<div class="section-header dark-header">
<h2 class="section-title white-title">
<span></span>
рдЦреЗрд▓ рд╕рдорд╛рдЪрд╛рд░
</h2>
<a href="category.php?slug=sports" class="view-all-btn white-btn">
рд╕рднреА рдЦреЗрд▓ рдЦрдмрд░реЗрдВ
<i class="bi bi-arrow-right"></i>
</a>
</div>
<!-- SPORTS NEWS GRID -->
<div class="row g-4">
<?php
$count = 0;
foreach ($articles as $article):
?>
<?php if ($article['category_slug'] == 'sports'):
$count++;
if ($count > 4) break;
?>
<div class="col-lg-3 col-md-6">
<div class="sports-card">
<img src="admin/uploads/articles/<?php echo $article['image']; ?>" alt="">
<div class="sports-overlay"></div>
<div class="sports-content">
<span class="sports-tag">
<?php echo $article['category_name']; ?>
</span>
<a href="article.php?slug=<?php echo $article['slug']; ?>" class="text-decoration-none">
<h3>
<?php echo $article['title']; ?>
</h3>
</a>
<div class="sports-time">
<i class="bi bi-clock"></i>
<?php echo date('d M Y', strtotime($article['created_at'])); ?>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php endforeach; ?>
</div>
</div>
</section>
<style>
.sports-news-section {
padding: 70px 0;
background: linear-gradient(90deg, #09162f, #16233d);
}
.dark-header {
margin-bottom: 35px;
}
.white-title {
color: #fff;
}
.white-btn {
border-color: #fff;
color: #fff;
}
.white-btn:hover {
background: #fff;
color: #111827;
}
/* =========================
SPORTS CARD
========================= */
.sports-card {
position: relative;
height: 320px;
border-radius: 18px;
overflow: hidden;
}
.sports-card img {
width: 100%;
height: 100%;
object-fit: cover;
transition: 0.5s;
}
.sports-card:hover img {
transform: scale(1.08);
}
.sports-overlay {
position: absolute;
inset: 0;
background: linear-gradient(to top,
rgba(0, 0, 0, 0.9),
rgba(0, 0, 0, 0.2),
rgba(0, 0, 0, 0));
}
.sports-content {
position: absolute;
left: 18px;
bottom: 18px;
z-index: 2;
width: 85%;
}
.sports-tag {
display: inline-block;
background: #e11d48;
color: #fff;
padding: 5px 14px;
border-radius: 30px;
font-size: 11px;
font-weight: 700;
margin-bottom: 14px;
}
.sports-content h3 {
color: #fff;
font-size: 18px;
font-weight: 700;
line-height: 1.6;
margin-bottom: 12px;
}
.sports-time {
color: #d1d5db;
font-size: 13px;
display: flex;
align-items: center;
gap: 6px;
}
/* =========================
RESPONSIVE
========================= */
@media(max-width:991px) {
.sports-card {
height: 300px;
}
}
@media(max-width:576px) {
.sports-news-section {
padding: 50px 0;
}
.sports-card {
height: 280px;
}
.sports-content h3 {
font-size: 16px;
}
}
</style>
<!-- =========================
RAJASTHAN NEWS SECTION START
========================= -->
<section class="rajasthan-news-section">
<div class="container">
<!-- SECTION HEADER -->
<div class="section-header">
<h2 class="section-title">
<span></span>
рд░рд╛рдЬрд╕реНрдерд╛рди рд╕рдорд╛рдЪрд╛рд░
</h2>
<a href="category.php?slug=rajasthan" class="view-all-btn">
рд░рд╛рдЬрд╕реНрдерд╛рди рдХреА рд╕рднреА рдЦрдмрд░реЗрдВ
<i class="bi bi-arrow-right"></i>
</a>
</div>
<!-- NEWS LIST -->
<div class="row g-4">
<?php
$count = 0;
foreach ($articles as $article):
?>
<?php
if ($article['category_slug'] == 'rajasthan'):
$count++;
if ($count > 6) {
break;
}
?>
<div class="col-lg-6">
<div class="rajasthan-card">
<div class="rajasthan-image">
<img src="admin/uploads/articles/<?php echo $article['image']; ?>">
</div>
<div class="rajasthan-content">
<span class="rajasthan-tag">
<?php echo $article['category_name']; ?>
</span>
<a href="article.php?slug=<?php echo $article['slug']; ?>" class="text-decoration-none">
<h3>
<?php echo $article['title']; ?>
</h3>
</a>
<div class="rajasthan-time">
<i class="bi bi-clock"></i>
<?php echo date('d M Y', strtotime($article['created_at'])); ?>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php endforeach; ?>
</div>
</div>
</section>
<style>
.rajasthan-news-section {
padding: 70px 0;
background: #f1f5f9;
}
/* =========================
NEWS CARD
========================= */
.rajasthan-card {
background: #fff;
border-radius: 16px;
overflow: hidden;
display: flex;
align-items: center;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
transition: 0.3s;
height: 100%;
}
.rajasthan-card:hover {
transform: translateY(-4px);
}
.rajasthan-image {
width: 140px;
min-width: 140px;
height: 120px;
overflow: hidden;
}
.rajasthan-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: 0.5s;
}
.rajasthan-card:hover img {
transform: scale(1.08);
}
.rajasthan-content {
padding: 18px;
}
.rajasthan-tag {
display: inline-block;
background: #f4a000;
color: #fff;
padding: 5px 16px;
border-radius: 30px;
font-size: 12px;
font-weight: 700;
margin-bottom: 12px;
}
.rajasthan-content h3 {
font-size: 17px;
font-weight: 700;
color: #111827;
line-height: 1.6;
margin-bottom: 12px;
}
.rajasthan-time {
color: #94a3b8;
font-size: 13px;
display: flex;
align-items: center;
gap: 7px;
}
/* =========================
RESPONSIVE
========================= */
@media(max-width:576px) {
.rajasthan-news-section {
padding: 50px 0;
}
.rajasthan-card {
flex-direction: column;
align-items: flex-start;
}
.rajasthan-image {
width: 100%;
height: 200px;
}
.rajasthan-content {
padding: 16px;
}
.rajasthan-content h3 {
font-size: 16px;
}
}
</style>
<!-- =========================
VIDEO NEWS SECTION START
========================= -->
<section class="video-news-section">
<div class="container">
<!-- SECTION HEADER -->
<div class="section-header dark-header">
<h2 class="section-title white-title purple-line">
<span></span>
рд╡реАрдбрд┐рдпреЛ рдиреНрдпреВрдЬрд╝
</h2>
<a href="video.php" class="view-all-btn white-btn">
рд╕рднреА рд╡реАрдбрд┐рдпреЛ
<i class="bi bi-arrow-right"></i>
</a>
</div>
<!-- VIDEO GRID -->
<div class="row g-4">
<?php foreach (array_slice($videos, 0, 6) as $video): ?>
<div class="col-lg-4 col-md-6">
<div class="video-card">
<div class="video-frame">
<iframe
src="https://www.youtube.com/embed/<?php echo $video['youtube_video_id']; ?>"
title="<?php echo htmlspecialchars($video['title']); ?>"
frameborder="0"
allowfullscreen>
</iframe>
</div>
<div class="video-body">
<span class="video-category">
<?php echo $video['category_name']; ?>
</span>
<h3 class="video-title">
<?php echo $video['title']; ?>
</h3>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</section>
<style>
.video-news-section {
padding: 70px 0;
background: linear-gradient(90deg, #08162f, #14233d);
}
.purple-line span {
background: #8b5cf6;
}
/* =========================
VIDEO CARD
========================= */
.video-card {
background: #fff;
border-radius: 20px;
overflow: hidden;
height: 100%;
box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}
.video-frame {
position: relative;
width: 100%;
padding-top: 56.25%;
}
.video-frame iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
}
.video-body {
padding: 18px;
}
.video-category {
display: inline-block;
background: rgba(225, 29, 72, .1);
color: #e11d48;
font-size: 13px;
font-weight: 600;
padding: 6px 14px;
border-radius: 30px;
margin-bottom: 12px;
}
.video-title {
font-size: 18px;
font-weight: 700;
color: #1f2937;
line-height: 1.5;
margin-bottom: 15px;
}
/* =========================
RESPONSIVE
========================= */
@media(max-width:991px) {
.video-card {
height: 300px;
}
}
@media(max-width:576px) {
.video-news-section {
padding: 50px 0;
}
.video-card {
height: 280px;
}
.video-title {
font-size: 16px;
}
}
</style>
<!-- =========================
ENTERTAINMENT SECTION START
========================= -->
<section class="entertainment-section">
<div class="container">
<!-- SECTION HEADER -->
<div class="section-header">
<h2 class="section-title entertainment-title">
<span></span>
рдордиреЛрд░рдВрдЬрди
</h2>
<a href="category.php?slug=entertainment" class="view-all-btn">
рдФрд░ рдордиреЛрд░рдВрдЬрди
<i class="bi bi-arrow-right"></i>
</a>
</div>
<!-- ENTERTAINMENT GRID -->
<div class="row g-4">
<?php
$count = 0;
foreach ($articles as $article):
?>
<?php
if ($article['category_slug'] == 'entertainment'):
$count++;
if ($count > 6) break;
?>
<div class="col-lg-4 col-md-6">
<div class="entertainment-card">
<div class="entertainment-image">
<img src="admin/uploads/articles/<?php echo $article['image']; ?>" alt="">
</div>
<div class="entertainment-content">
<span class="entertainment-tag">
<?php echo $article['category_name']; ?>
</span>
<a href="article.php?slug=<?php echo $article['slug']; ?>" class="text-decoration-none">
<h3>
<?php echo $article['title']; ?>
</h3>
</a>
<div class="entertainment-time">
<i class="bi bi-clock"></i>
<?php echo date('d M Y', strtotime($article['created_at'])); ?>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php endforeach; ?>
</div>
</div>
</section>
<style>
.entertainment-section {
padding: 70px 0;
background: #f1f5f9;
}
.entertainment-title span {
background: #8b5cf6;
}
/* =========================
ENTERTAINMENT CARD
========================= */
.entertainment-card {
background: #fff;
border-radius: 18px;
overflow: hidden;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
transition: 0.35s;
height: 100%;
}
.entertainment-card:hover {
transform: translateY(-5px);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.entertainment-image {
overflow: hidden;
}
.entertainment-image img {
width: 100%;
height: 250px;
object-fit: cover;
transition: 0.5s;
}
.entertainment-card:hover img {
transform: scale(1.08);
}
.entertainment-content {
padding: 22px;
}
.entertainment-tag {
display: inline-block;
background: #8b5cf6;
color: #fff;
padding: 6px 16px;
border-radius: 30px;
font-size: 12px;
font-weight: 700;
margin-bottom: 16px;
}
.entertainment-content h3 {
font-size: 21px;
font-weight: 700;
color: #111827;
line-height: 1.6;
margin-bottom: 15px;
}
.entertainment-time {
color: #94a3b8;
font-size: 14px;
display: flex;
align-items: center;
gap: 7px;
}
/* =========================
RESPONSIVE
========================= */
@media(max-width:576px) {
.entertainment-section {
padding: 50px 0;
}
.entertainment-image img {
height: 220px;
}
.entertainment-content {
padding: 18px;
}
.entertainment-content h3 {
font-size: 18px;
}
}
</style>
<!-- =========================
PHOTO GALLERY SECTION START
========================= -->
<section class="photo-gallery-section">
<div class="container">
<!-- SECTION HEADER -->
<div class="section-header dark-header">
<h2 class="section-title white-title pink-line">
<span></span>
рдлреЛрдЯреЛ рдЧреИрд▓рд░реА
</h2>
<a href="gallery.php" class="view-all-btn white-btn">
рд╕рднреА рдлреЛрдЯреЛ
<i class="bi bi-arrow-right"></i>
</a>
</div>
<!-- GALLERY GRID -->
<div class="row g-4">
<?php foreach (array_slice($gallery, 0, 6) as $item) { ?>
<div class="col-lg-4 col-md-6">
<a href="gallery.php"
class="gallery-card text-decoration-none">
<div class="gallery-image">
<img
src="admin/uploads/gallery/<?php echo $item['image']; ?>"
alt="<?php echo htmlspecialchars($item['title']); ?>">
<div class="gallery-overlay"></div>
<div class="gallery-content">
<span class="gallery-tag">
<?php echo $item['category_name']; ?>
</span>
<h4>
<?php echo $item['title']; ?>
</h4>
</div>
</div>
</a>
</div>
<?php } ?>
</div>
<!-- BUTTON -->
<div class="gallery-btn-wrap">
<a href="gallery.php" class="gallery-main-btn">
<i class="bi bi-images"></i>
рдФрд░ рдлреЛрдЯреЛ рджреЗрдЦреЗрдВ
</a>
</div>
</div>
</section>
<style>
.photo-gallery-section {
padding: 70px 0;
background: linear-gradient(90deg, #07152b, #0e1f3f);
}
.pink-line span {
background: #e11d48;
}
/* =========================
GALLERY CARDS
========================= */
.gallery-card {
display: block;
}
.gallery-image {
position: relative;
height: 280px;
overflow: hidden;
border-radius: 18px;
}
.gallery-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: .4s;
}
.gallery-card:hover img {
transform: scale(1.08);
}
.gallery-overlay {
position: absolute;
inset: 0;
background: linear-gradient(to top,
rgba(0, 0, 0, .9),
rgba(0, 0, 0, .2),
rgba(0, 0, 0, 0));
}
.gallery-content {
position: absolute;
left: 20px;
right: 20px;
bottom: 20px;
z-index: 2;
}
.gallery-tag {
display: inline-block;
background: #e11d48;
color: #fff;
padding: 5px 14px;
border-radius: 30px;
font-size: 11px;
font-weight: 700;
margin-bottom: 10px;
}
.gallery-content h4 {
color: #fff;
font-size: 18px;
font-weight: 700;
line-height: 1.6;
margin: 0;
}
@media(max-width:768px) {
.gallery-image {
height: 240px;
}
}
/* =========================
BUTTON
========================= */
.gallery-btn-wrap {
text-align: center;
margin-top: 35px;
}
.gallery-main-btn {
display: inline-flex;
align-items: center;
gap: 10px;
background: #e11d48;
color: #fff;
padding: 14px 28px;
border-radius: 40px;
text-decoration: none;
font-weight: 700;
transition: 0.3s;
}
.gallery-main-btn:hover {
background: #fff;
color: #111827;
}
/* =========================
RESPONSIVE
========================= */
@media(max-width:991px) {
.gallery-big-card {
height: 420px;
margin-bottom: 15px;
}
}
@media(max-width:576px) {
.photo-gallery-section {
padding: 50px 0;
}
.gallery-big-card {
height: 320px;
}
.gallery-small-card {
height: 220px;
}
.gallery-content h3 {
font-size: 22px;
}
.gallery-content h4 {
font-size: 15px;
}
.gallery-main-btn {
width: 100%;
justify-content: center;
}
}
</style>
<!-- =========================
WHATSAPP JOIN SECTION START
========================= -->
<section class="whatsapp-join-section">
<div class="container">
<div class="whatsapp-box">
<!-- SHAPES -->
<div class="circle-shape top-shape"></div>
<div class="circle-shape bottom-shape"></div>
<!-- CONTENT -->
<div class="whatsapp-content">
<div class="whatsapp-icon">
ЁЯУ▒
</div>
<h2>
WhatsApp рдкрд░ рдЬреБрдбрд╝реЗрдВ
</h2>
<p>
рдЕрдЬрдореЗрд░ рдФрд░ рд░рд╛рдЬрд╕реНрдерд╛рди рдХреА рд╣рд░ рдмрдбрд╝реА рдЦрдмрд░ рд╕рдмрд╕реЗ рдкрд╣рд▓реЗ рдкрд╛рдиреЗ рдХреЗ рд▓рд┐рдП рд╣рдорд╛рд░реЗ WhatsApp рдЪреИрдирд▓ рд╕реЗ рдЬреБрдбрд╝реЗрдВред
</p>
<a href="https://wa.me/<?php echo $contactDetails[5]['subtitle'] ?? ''; ?>" class="join-whatsapp-btn" target="_blank">
<i class="bi bi-whatsapp"></i>
Join WhatsApp Channel
</a>
</div>
</div>
</div>
</section>
<style>
.whatsapp-join-section {
padding: 70px 0;
background: #f1f5f9;
}
.whatsapp-box {
position: relative;
overflow: hidden;
background: linear-gradient(90deg, #e11d48, #991b1b);
border-radius: 24px;
padding: 70px 30px;
text-align: center;
}
.whatsapp-content {
position: relative;
z-index: 2;
max-width: 700px;
margin: auto;
}
.whatsapp-icon {
font-size: 36px;
margin-bottom: 18px;
}
.whatsapp-content h2 {
color: #fff;
font-size: 48px;
font-weight: 800;
margin-bottom: 18px;
}
.whatsapp-content p {
color: rgba(255, 255, 255, 0.9);
font-size: 17px;
line-height: 1.9;
margin-bottom: 30px;
}
/* =========================
BUTTON
========================= */
.join-whatsapp-btn {
display: inline-flex;
align-items: center;
gap: 10px;
background: #fff;
color: #111827;
padding: 15px 30px;
border-radius: 40px;
text-decoration: none;
font-size: 15px;
font-weight: 700;
transition: 0.3s;
}
.join-whatsapp-btn i {
color: #25D366;
font-size: 20px;
}
.join-whatsapp-btn:hover {
transform: translateY(-3px);
background: #f3f4f6;
}
/* =========================
SHAPES
========================= */
.circle-shape {
position: absolute;
border-radius: 50%;
background: rgba(255, 255, 255, 0.08);
}
.top-shape {
width: 170px;
height: 170px;
top: -40px;
right: -30px;
}
.bottom-shape {
width: 140px;
height: 140px;
bottom: -50px;
left: -30px;
}
/* =========================
RESPONSIVE
========================= */
@media(max-width:768px) {
.whatsapp-box {
padding: 50px 20px;
}
.whatsapp-content h2 {
font-size: 34px;
}
.whatsapp-content p {
font-size: 15px;
}
.join-whatsapp-btn {
width: 100%;
justify-content: center;
}
}
</style>
<?php include 'includes/footer.php'; ?>