/* Base Styles */
body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
}

.tm-pt-4 {
  padding-top: 2rem;
}

.tm-page-cols-container {
  display: flex;
  min-height: 100vh;
}

/* Fixed Sidebar */
.tm-page-col-left {
  position: fixed;
  left: 162px;
  top: 0;
  width: 212px;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid #e0e0e0;
  z-index: 1000;
  overflow-y: auto;
  padding: 0;
  transition: all 0.3s ease;
}

.tm-page-col-right {
  margin-left: 226px;
  flex: 1;
  padding: 30px;
  width: calc(100% - 210px);
  max-width: calc(100% - 210px);
  margin-right: 10px;
  margin-top: -47px;
  background-color: #fff;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Sidebar Navigation */
.tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  height: 100%;
}

.tabs li {
  margin: 0;
}

.tabs a {
  display: block;
  padding: 12px 15px;
  color: #555555;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  border: none;
  transition: all 0.3s ease;
}

.tabs a:hover {
  color: #F0746C;
}

.tabs a.active {
  color: #F0746C;
  font-weight: 600;
}

/* PDF List Styles */
.pdf-list-container {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  margin: 0;
  max-width: 100%;
  width: 67%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.5s ease-out;
  left: 89px;
  margin-left: 240px;
}

.pdf-list-container h2 {
  text-align: left;
  color: #2c3e50;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}

.pdf-list {
  display: block;
}

.pdf-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px 25px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  animation: slideUp 0.4s ease-out;
}

.pdf-item:hover {
  border-color: #cccccc;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.pdf-info {
  flex-grow: 1;
}

.pdf-info h4 {
  color: #2c3e50;
  font-size: 16px;
  margin: 0 0 5px 0;
  font-weight: 600;
}

.pdf-info p {
  color: #666666;
  margin: 0;
  font-size: 14px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  background: #2c3e50;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  border: none;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background: #3498db;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.download-btn i {
  margin-right: 6px;
  font-size: 12px;
}

/* Gallery Items */
.tm-gallery {
  display: grid;
  gap: 20px;
}

.tm-gallery-item {
  display: none;
}

.tm-gallery-item.show {
  display: block;
  animation: fadeIn 0.6s ease-out;
}

.effect-bubba {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.effect-bubba:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.effect-bubba img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.effect-bubba:hover img {
  transform: scale(1.05);
}

.effect-bubba figcaption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.85);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  text-align: center;
  padding: 20px;
}

.effect-bubba:hover figcaption {
  opacity: 1;
}

.effect-bubba figcaption h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.effect-bubba:hover figcaption h2 {
  transform: translateY(0);
}

.effect-bubba figcaption p {
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
  max-width: 80%;
}

.effect-bubba:hover figcaption p {
  transform: translateY(0);
}

.effect-bubba figcaption a {
  color: #3498db;
  text-decoration: none;
  margin-top: 15px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.9);
  border-radius: 4px;
  transition: all 0.3s ease;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.2s;
}

.effect-bubba:hover figcaption a {
  transform: translateY(0);
}

.effect-bubba figcaption a:hover {
  background: white;
  color: #2980b9;
}

/* Magazine Card Styles (Used for both Architect and Vaasthu) */
.architect-magazine,
.vaasthu-magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 31px;
  padding: 20px 0;
  margin-left: 193px;
  margin-right: 275px;
}

.magazine-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeInUp 0.6s ease-out;
  position: relative;
  height: 400px;
  width: 263px;
}

.magazine-card-vaasthu {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeInUp 0.6s ease-out;
  position: relative;
  height: 400px;
  width: 356px;
}


.magazine-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.magazine-image {
  height: 100%;
  overflow: hidden;
  position: relative;
}

.magazine-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s ease;
}

.magazine-card:hover .magazine-image img {
  transform: scale(1.1);
}

.magazine-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 30px;
  background: rgba(44, 62, 80, 0.9);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(2px);
}

.magazine-card:hover .magazine-content {
  opacity: 1;
  visibility: visible;
}

.magazine-title {
  font-size: 1.6rem;
  color: white;
  margin-bottom: 15px;
  font-weight: 600;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
  /* margin-right: 70px; */
}

.magazine-card:hover .magazine-title {
  transform: translateY(0);
}

.magazine-description {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-bottom: 25px;
  line-height: 1.6;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.2s;
  /* margin-right: 64px; */
}

.magazine-card:hover .magazine-description {
  transform: translateY(0);
}

.magazine-meta {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.3);
  transform: translateY(20px);
  transition: transform 0.4s ease 0.3s;
  /* margin-right: 60px; */
}

.magazine-card:hover .magazine-meta {
  transform: translateY(0);
}

.magazine-price {
  font-weight: 700;
  color: #3498db;
  font-size: 1.3rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.magazine-button {
  background: #3498db;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.magazine-button:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Section Titles */
.section-title {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
  position: relative;
  animation: fadeIn 0.6s ease-out;
  margin-left: 188px;
  margin-right: 277px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 3px;
  background: #3498db;
}

/* Vaasthu Grid Layout */
.vaasthu-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 31px;
  margin-bottom: 40px;
}
.row-style{
      gap: -8px;
    margin-left: 181px;
    margin-right: 261px;

}
/* Responsive Design */
@media (max-width: 1200px) {
  .vaasthu-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .vaasthu-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .vaasthu-magazine-grid,
  .architect-magazine {
    margin-left: 50px;
    margin-right: 50px;
  }
}

@media (max-width: 768px) {
  .tm-page-col-left {
    position: relative;
    width: 100%;
    height: auto;
  }

  .tm-page-col-right {
    margin-left: 0;
    width: 100%;
    padding: 20px;
  }

  .tm-page-cols-container {
    flex-direction: column;
  }

  .pdf-item {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .download-btn {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }
  
  .pdf-list-container {
    padding: 20px;
    width: auto;
    margin-left: 0;
  }
  
  .pdf-list-container h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  .tabs a {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .architect-magazine,
  .vaasthu-magazine-grid {
    grid-template-columns: 1fr;
    margin-left: 0;
    margin-right: 0;
  }

  .section-title {
    font-size: 1.6rem;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
  }

  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .magazine-card {
    height: 350px;
  }

  .vaasthu-row {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}