/*
Theme Name: ISarva Theme
Theme URI: https://isarvait.com
Description: ISarva Theme is simple theme mainly used in Elementor based theme
Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&display=swap');

* {
  margin:0px;
  padding:0px;
}

body {
  margin: 0;
  box-sizing: border-box;
  font-family: "Merriweather", Sans-serif;
}

/* Contact form */

.contact-form {
  max-width: 100%;
  width: 100%;
  margin: auto;
  border: 1px solid #dbdbdb;
  border-radius: 5px;
  padding: 40px 40px 20px 40px;
  background-color: white;
 

}


.form-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 26px;
}

.form-column {
  width: 48%;
}

.form-full {
  width: 100%;
}

.contact-form input, 
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  background-color: #f4f4fa;
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

.contact-form .wpcf7-submit {
  background-color: #970205;
  border: 1px solid #970205;
  color: white;
  padding: 12px;
  font-size: 18px;
  cursor: pointer;
  width: 100%;
  border-radius: 5px;
}

.contact-form .wpcf7-submit:hover {
  background-color: #ffffff;
  color: #970205;
}

.contact-form .wpcf7-spinner {
   display: none;
}


a[href="https://isarvait.com"]:hover {
    color: #0C7A4B!important;
}

.header-background-img{
  margin-top: -150px;
  width: 100%;
  height: 400px; 
  z-index: -1;
  background: url('https://srvramakunja.com/wp-content/uploads/2025/03/Strip.jpg') no-repeat center center/cover;
  display: flex;

  justify-content: center;
  position: relative; 
}

/* Green Overlay with Transparency */
.header-background-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 56, 33, 0.7); 
  z-index: 1;
}

.header-background-img h1 {
  font-size: 40px;
  color: #fff;
  font-weight: 900;
  z-index: 2; 
  position: relative; 
  text-align: center;
  margin-top:auto;
  margin-bottom:100px;
}

/* Main Layout */
.main-container {
  display: flex;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 0px;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
}

.sidebar {
  flex: 0 0 25%;
  padding: 20px;
  border-radius: 8px;
  order: -1;
}

.main-content {
  flex: 0 0 68%;
  padding-left: 30px;
}

/* Post Styling */
.single-post .post-title {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 15px;
  font-weight: 700;
  color: #222;
}

.single-post .post-meta {
  color: #2ec4b6;
  font-size: 14px;
  margin: 15px 0;
  display: flex;
  align-items: center;
}

.single-post .post-meta i {
  margin-right: 8px;
}

.single-post .post-thumbnail {
  margin: 20px 0;
  overflow: hidden;
}

.single-post .post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* Ensure alt text for accessibility */
.single-post .post-content {
  font-size: 18px;
  color: #444;
  line-height: 1.8;
  margin-top: 30px;
}

.single-post .post-content p {
  margin-bottom: 1.5em;
}

/* Sidebar Styling */
.sidebar h2 {
  font-size: 20px;
  border-bottom: 2px solid #2ec4b6;
  margin-bottom: 20px;
  padding-bottom: 10px;
  font-weight: 600;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.sidebar .recent-post-thumbnail {
  flex: 0 0 80px;
  height: 80px;
  overflow: hidden;
  margin-right: 15px;
  border-radius: 4px;
}

.sidebar .recent-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sidebar ul li:hover .recent-post-thumbnail img {
  transform: scale(1.05);
}

.sidebar .recent-post-info {
  display: flex;
  flex-direction: column;
}

.sidebar .recent-post-date {
  font-size: 13px;
  color: #2ec4b6;
  margin-bottom: 5px;
}

.sidebar .recent-post-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.sidebar .recent-post-title:hover {
  color: #2ec4b6;
}

/* Gallery Styling */
.gallery-container {
  display: flex;
  flex-wrap: wrap;
  margin: 30px -5px;
}

.gallery-container a {
  flex: 0 0 calc(25% - 10px);
  margin: 5px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.gallery-container img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-container a:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-container a:hover img {
  transform: scale(1.05);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .main-container {
      flex-direction: column;
      padding: 20px;
  }
  
  .main-content, .sidebar {
      flex: 0 0 100%;
      padding: 0;
  }
  
  .sidebar {
      order: 1;
      margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .gallery-container a {
      flex: 0 0 calc(50% - 10px);
  }
  
  .single-post .post-title {
      font-size: 28px;
  }
}

@media (max-width: 480px) {
  .gallery-container a {
      flex: 0 0 100%;
  }
  
  .sidebar .recent-post-thumbnail {
      flex: 0 0 60px;
      height: 60px;
  }
}
/* Gallery Container Styling */
.wp-block-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  margin: 40px 0;
  padding: 0;
}

.wp-block-gallery figure {
  flex: 0 0 calc(25% - 15px);  /* 4 columns layout */
  margin: 0;
  overflow: hidden;
  position: relative;
}
 




.wp-block-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  
}


/* Responsive Design */
@media (max-width: 1200px) {
  .wp-block-gallery figure {
      flex: 0 0 calc(33.333% - 15px);  /* 3 columns */
  }
}

@media (max-width: 768px) {
  .wp-block-gallery figure {
      flex: 0 0 calc(50% - 15px);  /* 2 columns */
  }
}

@media (max-width: 480px) {
  .wp-block-gallery figure {
      flex: 0 0 100%;  /* 1 column */
  }
}

