/* File: /themes/theme-malda/style.css - Replica Theme */

/* --- General & Fonts --- */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    color: #333;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
a { text-decoration: none; }
.section-title {
    font-family: 'Teko', sans-serif;
    font-size: 28px;
    color: #163f73;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #163f73;
    padding-bottom: 5px;
    display: inline-block;
}

/* --- Header --- */
.header-top-bar {
    background-color: #163f73;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}
.header-top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left a { color: white; }
.top-bar-right span { margin-right: 10px; }
.top-bar-right a { color: white; margin: 0 5px; }

.header-logo-banner {
    background: white;
    padding: 15px 0;
}
.header-logo-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img, .banner-right-logo img { height: 90px; }
.banner-title { text-align: center; }
.banner-title h1 {
    font-family: 'Teko', sans-serif;
    font-size: 72px;
    color: #c41e24;
    margin: 0;
    line-height: 1.2;
}
.banner-title h2 {
    font-size: 24px;
    color: #163f73;
    margin: 0;
    font-weight: 500;
}

.main-navigation {
    background-color: #163f73;
    border-bottom: 3px solid #ff9800;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}
.main-navigation li a {
    color: white;
    padding: 15px 20px;
    display: block;
    font-weight: 500;
    transition: background-color 0.2s;
}
.main-navigation li a:hover { background-color: #ff9800; }

/* --- Content Area --- */
.notification-bar {
    background: white;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}
.notification-bar .container { display: flex; align-items: center; }
.notification-title {
    background: #c41e24;
    color: white;
    padding: 5px 15px;
    font-weight: bold;
    flex-shrink: 0;
}
.notification-content {
    padding-left: 15px;
}
.notification-content a {
    color: #333; margin-right: 30px;
}

.main-hero-slider {
    height: 450px;
    background-size: cover;
    background-position: center;
}

.stats-counter-bar {
    background-color: #163f73; /* Match your background color */
    padding: 20px 0;
}

.stats-counter-bar .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Space between items */
}

.stat-item {
    flex: 1 1 150px; /* Flexible, minimum width of 150px */
    text-align: center;
    color: white;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
}

.stat-label {
    font-size: 1rem;
    margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-value {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .stat-value {
        font-size: 1.2rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }
}


.main-content-wrapper { padding: 40px 0; }
.main-content-wrapper .container { display: flex; gap: 30px; }
.content-left-column { flex: 2; }
.content-right-column { flex: 1; }

.welcome-box {
    background: white;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
}
.welcome-box p { text-align: justify; line-height: 1.7; }

.notices-grid { display: flex; gap: 20px; }
.notice-column {
    flex: 1;
    background: white;
    border: 1px solid #ddd;
}
.notice-title {
    background-color: #f1f1f1;
    color: #163f73;
    font-size: 18px;
    padding: 12px 15px;
    margin: 0;
    border-bottom: 1px solid #ddd;
}
.notice-column ul {
    list-style: none;
    padding: 15px;
    margin: 0;
}
.notice-column li {
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.notice-column li a {
    color: #333;
    display: flex;
    justify-content: space-between;
}
.notice-column li a:hover { color: #c41e24; }
.notice-column li:last-child { border: none; }

.official-card {
    background: white;
    margin-bottom: 25px;
    border: 1px solid #ddd;
}
.official-designation {
    background-color: #163f73;
    color: white;
    padding: 12px;
    text-align: center;
    margin: 0;
    font-size: 18px;
}
.official-info { padding: 20px; text-align: center; }
.official-photo {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 4px solid #ddd;
    object-fit: cover;
}
.official-name {
    font-weight: bold;
    font-size: 18px;
    margin: 10px 0 5px 0;
}
.official-contact { font-size: 14px; line-height: 1.6; }

/* --- Gallery --- */
.photo-gallery-section {
    background: white;
    padding: 40px 0;
    border-top: 1px solid #ddd;
}
.gallery-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-grid-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    border: 3px solid #eee;
    transition: transform 0.3s;
}
.gallery-grid-item img:hover { transform: scale(1.05); }

/* --- Footer --- */
.footer-bottom-bar {
    background: #0f2c52;
    color: #ccc;
    padding: 20px 0;
    text-align: center;
}
.footer-bottom-bar a { color: white; }
/* ADD THIS TO THE END OF YOUR THEME'S style.css FILE */

.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow: hidden; /* Prevents horizontal scroll */
}

.mySlides {
  display: none;
  text-align: center;
}

.mySlides img {
  width: 100%;         /* Fill the container width */
  height: 400px;       /* Set fixed height (you can change) */
  object-fit: contain; /* Keep full image visible without cutting */
  background: #fff;    /* Background for empty spaces */
}

/* Caption text */
.text {
  color: #fff;
  font-size: 20px;
  padding: 12px 16px;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  background: rgba(0,0,0,0.5);
  border-radius: 6px;
  width: auto;
  max-width: 80%;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 14px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 12px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 22px;
  border-radius: 0 4px 4px 0;
  user-select: none;
  background: rgba(0,0,0,0.4);
  transition: background 0.3s;
}

.next {
  right: 0;
  border-radius: 4px 0 0 4px;
}

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.7);
}

/* Responsive: smaller devices */
@media screen and (max-width: 768px) {
  .text {
    font-size: 16px;
    padding: 8px 12px;
  }
  .prev, .next {
    font-size: 18px;
    padding: 8px;
  }
}

@media screen and (max-width: 480px) {
  .text {
    font-size: 14px;
  }
}
/* ADD THIS TO THE END of your theme's style.css */

/* ========================================= */
/*  STYLES FOR THE NEW LEADERS PAGE         */
/* ========================================= */

/* Main Title of the Leaders Page */
#representatives .section-title {
    text-align: center;
    display: block;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 700;
    color: #0d47a1;
    position: relative;
    padding-bottom: 10px;
    border: none;
}
#representatives .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #1976D2;
}

/* The Grid Container for the cards */
.representative-grid {
    display: grid;
    /* This will create 3 columns on large screens, 2 on medium, 1 on small */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px; /* Space between cards */
}

/* The Leader Card itself */
.leader-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    overflow: hidden; /* Important for the header's rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Header of the card (Designation) */
.leader-card-header {
    background-color: #1e88e5; /* A nice blue color */
    color: white;
    padding: 12px 15px;
    font-weight: 500;
    font-size: 16px;
}

/* Body of the card */
.leader-card-body {
    padding: 25px 20px;
}

/* The Photo */
.leader-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    margin-bottom: 15px;
}

/* The Name */
.leader-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

/* Contact Details */
.leader-contact p {
    font-size: 14px;
    color: #555;
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.leader-contact i {
    color: #1e88e5;
}

/* --- MOBILE RESPONSIVENESS --- */

/* For Tablets (e.g., iPads) */
@media (max-width: 992px) {
    .representative-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
    }
}

/* For Mobile Phones */
@media (max-width: 768px) {
    .representative-grid {
        grid-template-columns: 1fr; /* 1 column */
    }
}

/* ADD THIS TO THE END of your theme's style.css */

/* ========================================= */
/*  STYLES FOR THE NEW GOOGLE MAP SECTION    */
/* ========================================= */

.map-section {
    background-color: #ffffff;
    padding: 40px 0;
    border-top: 1px solid #ddd;
}

/* This is the magic wrapper that makes the iframe responsive */
.map-responsive-wrapper {
    position: relative;
    overflow: hidden;
    /* This creates a 16:9 aspect ratio. For a more square map, use 75% */
    padding-top: 56.25%; 
    border-radius: 8px; /* Optional: adds nice rounded corners to the map */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Style the iframe itself to fill the wrapper */
.map-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0; /* Remove the default border from the iframe */
}


.styled-box {
  background: #fff;
  padding: 30px;
  margin: 30px auto;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 600px;
  text-align: center;
}

.styled-box.alt {
  background: #f9faff; /* Light alternate shade for festivals */
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a3a6d;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #1a3a6d;
  margin: 8px auto 0;
  border-radius: 2px;
}

.styled-box p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

