/* ===========================
   GLOBAL RESET
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===========================
   BASE STYLING
=========================== */
body {
  font-family: "Poppins", sans-serif;
  background: #f4f6fa;
  color: #1a1a1a;
  line-height: 1.7;
  padding-bottom: 80px;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ===========================
   HEADER
=========================== */
.header {
  width: 100%;
  height: 220px;   /* ideal for mobile */
  overflow: hidden;
}

.header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-title {
  text-align: center;
  font-size: 20px;
  animation: fadeIn 1.2s ease-in-out forwards;
  opacity: 0;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* ===========================
   NAVIGATION
=========================== */
nav {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: white;
  background: #1b263b;
  padding: 10px 18px;
  margin: 4px;
  border-radius: 8px;
  font-size: 15px;
  transition: 0.35s ease;
}

nav a:hover {
  background: #ff6600;
  transform: translateY(-3px);
}

/* ===========================
   MAIN CONTENT / TITLES
=========================== */
main {
  text-align: center;
  padding: 45px 25px;
}

h2 {
  font-size: 26px;
  color: #ff6600;
  margin-bottom: 22px;
  font-weight: 600;
}

/* ===========================
   CARD DESIGN (PROFESSIONAL)
=========================== */
.card, .news-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 15px;
  padding: 22px;
  margin: 17px auto;
  max-width: 750px;
  text-align: left;
  box-shadow: 0px 4px 18px rgba(0,0,0,0.15);
  transition: 0.35s ease-out;
  border: 1px solid rgba(255,255,255,0.25);
}

.card:hover, .news-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0px 6px 22px rgba(0,0,0,0.25);
}
.tamilnadu-title {
  text-align: center;
  font-size: 20px;
  animation: fadeIn 1.2s ease-in-out forwards;
  opacity: 0;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
.india-title {
  text-align: center;
  font-size: 20px;
  animation: fadeIn 1.2s ease-in-out forwards;
  opacity: 0;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.world-title {
  text-align: center;
  font-size: 20px;
  animation: fadeIn 1.2s ease-in-out forwards;
  opacity: 0;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
.card h3, .news-card h3 {
  color: #ff6600;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card p, .news-card p {
  color: #444;
  font-size: 15px;
}

/* ===========================
   BUTTONS
=========================== */
button, .read-btn {
  display: inline-block;
  background: #ff6600;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  margin-top: 10px;
  transition: 0.25s ease;
}

button:hover, .read-btn:hover {
  background: #e65c00;
  transform: translateY(-2px);
}

/* ===========================
   INPUTS / FORMS
=========================== */
input, textarea {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #bbb;
  outline: none;
  transition: 0.25s ease;
}

input:focus, textarea:focus {
  border-color: #ff6600;
}

/* ===========================
   GALLERY
=========================== */
.gallery {
  display: flex;
  flex-wrap: nowrap;      /* Prevent images from going down */
  overflow-x: auto;       /* Enable horizontal scrolling */
  gap: 15px;
  padding: 10px;
  scroll-behavior: smooth;
}

.gallery::-webkit-scrollbar {
  height: 8px;
}

.gallery::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.gallery img {
  width: 400px;           /* Your image size */
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;         /* REQUIRED to prevent shrinking */
}
.gallery img:hover {
  transform: scale(1.05);
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: #0d1b2a;
  color: white;
  text-align: center;
  padding: 14px;
  position: fixed;
  bottom: 0;
  width: 100%;
  font-size: 14px;
  letter-spacing: 0.4px;
}

/* ===========================
   ENTRY ANIMATIONS
=========================== */
@keyframes smoothFade {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.card, .news-card, header, nav a {
  animation: smoothFade 0.6s ease-out;
}
