/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  padding: 20px;
  color: #333;
}

/* Layout Wrapper */
.layout-wrapper {
  width: 100%;
  margin-bottom: 25px;
  clear: both;
}

/* General Layout Styles */
.layout {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  gap: 15px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.layout:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.layout img {
  width: 40%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.layout:hover img {
  transform: scale(1.05);
}

.layout h3 {
  font-family: 'Georgia', serif;
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 6px;
}

.layout p {
  font-family: 'Courier New', monospace;
  font-style: italic;
  font-size: 1rem;
  color: #555;
}

.layout > div,
.layout .content,
.layout .card-text {
  flex: 1;
  min-width: 0;
}

/* Layout Variants */
.layout-1,
.layout-2 {
  flex-direction: row;
}

.layout-2 {
  flex-direction: row-reverse;
}

.layout-3,
.layout-4,
.layout-5,
.layout-9,
.layout-10 {
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.layout-6 {
  background-color: #f0f8ff;
}

.layout-7 .box {
  text-align: center;
  width: 100%;
}

.layout-7 img {
  width: 100px;
  margin: 0 auto;
}

/* Layout 8: Overlay Effect */
.layout-8 .overlay-container {
  position: relative;
  width: 100%;
}

.layout-8 img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.layout-8 .overlay {
  position: absolute;
  top: 15%;
  left: 10%;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
  border-radius: 6px;
  color: #fff;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

.layout-8:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Layout 9: Transparent Background */
.layout-9 {
  border: none;
  background: transparent;
  padding: 5px;
}

/* Layout 11: Highlighted Left Border */
.layout-11 {
  background: #fef6e4;
  border-left: 5px solid #ffae00;
}

/* Layout 12: Highlighted Left Border */
.layout-12 {
  background: #e0f7fa;
  border-left: 5px solid #00acc1;
}

/* Layout 13: Card Flip Effect */
.layout-13 .card-flip {
  perspective: 1000px;
  width: 100%;
}

.card-flip > div {
  width: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s;
  padding: 10px;
  border-radius: 8px;
}

.card-front {
  background: #ffffff;
  transform: rotateY(0deg);
}

.card-back {
  background: #e0e0e0;
  position: absolute;
  transform: rotateY(180deg);
}

.card-flip:hover .card-front {
  transform: rotateY(180deg);
}

.card-flip:hover .card-back {
  transform: rotateY(0deg);
}

/* Layout 14: Gradient Box */
.layout-14 .gradient-box {
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
  padding: 15px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
}

/* Layout 15: Circle Style */
.layout-15.circle-style img {
  border-radius: 50%;
  width: 80px;
}

.circle-style {
  text-align: center;
  background: #fff0f5;
  padding: 20px;
  border-radius: 50px;
}

/* Layout 16: Glass Style */
.layout-16.glass-style {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}

/* Layout 17: Shadow Box */
.layout-17.shadow-box {
  background: #fff;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 12px;
}

/* Layout 18: Border Bounce */
.layout-18.border-bounce {
  border: 2px dashed #ccc;
  transition: border-color 0.3s, transform 0.3s;
}

.layout-18.border-bounce:hover {
  border-color: #444;
  transform: scale(1.02);
}

/* Layout 19: Tiled Card */
.layout-19.tiled-card {
  background: repeating-linear-gradient(45deg, #f0f0f0, #f0f0f0 10px, #fff 10px, #fff 20px);
  border-radius: 10px;
  padding: 15px;
}

/* Layout 20: Minimal Style */
.layout-20.minimal {
  border: 1px solid #e1e1e1;
  padding: 15px;
  font-family: 'Arial', sans-serif;
  color: #444;
}

/* Responsive Design */
@media (max-width: 600px) {
  .layout {
    flex-direction: column !important;
    text-align: center;
  }

  .layout img {
    width: 100%;
    margin: 0 auto;
  }

  .layout-2 {
    flex-direction: column-reverse !important;
  }

  .layout-8 .overlay {
    top: 5%;
    left: 5%;
    font-size: 0.9rem;
  }
}










/*fromo 21 to 30*/
/* Base styles for all layouts */
.layout-wrapper1 {
    margin: 2rem 0;
    width: 100%;
}

.layout1 {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.layout1 img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Layout 21 - Playfair Display Elegant */
.layout-21 .content {
    padding: 2rem;
    background: white;
}
.layout-21 h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}
.layout-21 p {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

/* Layout 22 - Montserrat Modern */
.layout-22 .text-container {
    padding: 3rem;
    background: #f8f9fa;
}
.layout-22 h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #222;
    margin-bottom: 1.5rem;
}
.layout-22 p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
}

/* Layout 23 - Roboto Condensed Industrial */
.layout-23 {
    display: flex;
    flex-wrap: wrap;
}
.layout-23 .image-container {
    flex: 1;
    min-width: 300px;
}
.layout-23 .text-panel {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
    background: #2c3e50;
    color: white;
}
.layout-23 h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2.3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.layout-23 p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Layout 24 - Overlay with Poppins */
.layout-24 {
    position: relative;
}
.layout-24 .overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    padding: 2rem;
    color: white;
}
.layout-24 h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.layout-24 p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
}

/* Layout 25 - Card with Raleway */
.layout-25 .card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.layout-25 .card-body {
    padding: 2.5rem;
}
.layout-25 h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}
.layout-25 p {
    font-family: 'Raleway', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    font-weight: 400;
}

/* Layout 26 - Floating Text with Nunito */
.layout-26 {
    position: relative;
}
.layout-26 .floating-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    width: 90%;
}
.layout-26 h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 1.5rem;
}
.layout-26 p {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

/* Layout 27 - Split Container with Work Sans */
.layout-27 .split-container {
    display: flex;
    flex-wrap: wrap;
}
.layout-27 .image-side {
    flex: 1;
    min-width: 300px;
}
.layout-27 .text-side {
    flex: 1;
    min-width: 300px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.layout-27 h3 {
    font-family: 'Work Sans', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}
.layout-27 p {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    font-weight: 300;
}

/* Layout 28 - Modern Card with Source Sans Pro */
.layout-28 .modern-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.layout-28 .modern-content {
    padding: 2.5rem;
    background: white;
}
.layout-28 h3 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 2.3rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1rem;
}
.layout-28 p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #666;
}

/* Layout 29 - Minimal Text with Karla */
.layout-29 {
    position: relative;
}
.layout-29 .minimal-text {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    background: white;
    padding: 2rem;
    max-width: 500px;
}
.layout-29 h3 {
    font-family: 'Karla', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1rem;
}
.layout-29 p {
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

/* Layout 30 - Glass Morphism with Inter */
.layout-30 .glass-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}
.layout-30 .glass-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 2rem;
    color: #222;
}
.layout-30 h3 {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.layout-30 p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
}