/*
Theme Name: Binod Academic Theme
Theme URI: https://example.com
Author: Dr. Binod Shah
Author URI: https://example.com
Description: A clean academic WordPress theme for publishing books, research, and teaching resources.
Version: 1.0
License: GPLv2 or later
Text Domain: binod-academic-theme
Tags: education, academic, responsive, research
*/

/* Base Styles */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #fffaf3;
  color: #333;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

h1, h2, h3 {
  color: #d35400;
  margin-bottom: 10px;
}

a {
  color: #d35400;
  text-decoration: none;
}

a:hover {
  color: #e67e22;
  text-decoration: underline;
}

/* Hero Section */
.hero {
  background-color: #fdf1e6;
  padding: 50px 20px;
  text-align: center;
}

.hero p {
  font-size: 1.1em;
}

/*css for home thumb */

.about-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 20px; /* Smaller horizontal gap */
  row-gap: 30px;    /* Space between items on small screens */
  max-width: 1000px;
  margin: 0 auto;
}

.about-thumb-wrapper {
  flex: 0 0 220px; /* Fixed width */
  text-align: center;
}

.about-thumb {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

.about-text {
  flex: 1;
  min-width: 260px;
  max-width: 700px;
}
/*css for home thumb */

/* Grid Layout for Books and Research */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.card {
  flex: 1 1 calc(33.333% - 20px);
  box-sizing: border-box;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.1em;
  margin-top: 10px;
}



/* Responsive Layout */
@media (max-width: 768px) {
  .card {
    flex: 1 1 100%;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #e67e22;
  color: white;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #000;
  color:#fff;	
}

/* Footer */
footer {
  background: #f4f4f4;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #555;
}

/* Navigation */
.nav-menu {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #d35400;
  font-weight: 500;
  font-size: 1.05em;
}

.nav-menu a:hover {
  color: #e67e22;
  text-decoration: underline;
}
.alt-color-0 {
  background-color: #fff; /* White for even posts */
}

.alt-color-1 {
  background-color: #eeeeee; /* Light orange for odd posts */
}

.post {
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item img {
  width: 100%;
  height: 250px; /* Or your preferred height */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}


.gallery-item img:hover {
  transform: scale(1.03);
}

img.attachment-large.size-large.wp-post-image {
  width: 300px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}