/* ================= Welcome2DCC Section ================= */
#welcome2dcc {
    margin-top: -1%;          /* ensures initial spacing from header */
    padding-top: auto;       /* reserve space for text animation */
    background-color: #67b8e0;
    padding: 100px 8% 100px 8%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}
  
  @keyframes fadeInSection {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  
  .welcome2dcc-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    width: 100%;
  }

  /* Animation only when active */
#welcome2dcc.active {
    animation: fadeInSection 1.2s ease forwards;
  }
  
  @keyframes fadeInSection {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  
  /* Text Section */
  .welcome2dcc-text {
    flex: 2 1 60%;
    animation: typingText 2.5s steps(30, end) 0.5s 1 normal both;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid rgba(1, 2, 10, 0.7);
    min-width: 20ch; /* minimum width equals approx 20 characters */
    min-height: 3rem; /* reserve height for main text */
    max-width: 50%;
    display: inline-block;
  }

  /* Styling for Bagodar, JH */
.welcome2dcc-address {
    display: block;             /* ensures it is on a new line below Classes */
    font-family: 'Roboto', sans-serif;
    font-size: 20px;            /* much smaller than Classes */
    font-weight: 700;           /* bold */
    color: white;               /* text color white */
    margin-top: 2px;            /* small spacing from Classes */
    line-height: 1;             /* compact vertical spacing */
  }
  
  @keyframes typingText {
    from { width: 0; }
    to { width: 100%; }
  }
  
  .welcome2dcc-subtitle {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
  }
  
  .welcome2dcc-main {
    font-size: 3rem;
    font-weight: 800;
    color: #0b1c67;
    line-height: 1.2;
  }
  
  .welcome2dcc-highlight {
    font-size: 3rem;
    font-weight: 800;
    color: #f28c1e;
    line-height: 1.2;
  }
  
  /* Buttons */
  .welcome2dcc-buttons {
    display: flex;
    gap: 20px;
    margin-top: 25px;
  }
  
  .welcome2dcc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
  }
  
  .yellow-btn {
    background-color: #ffc107;
    color: #000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  .yellow-btn:hover {
    background-color: #e0a800;
  }
  
  .dark-btn {
    background-color: #333;
    color: #fff;
  }
  .dark-btn:hover {
    background-color: #000;
  }
  
  /* Right Images Section */
  .welcome2dcc-images {
    display: flex;
    gap: 20px;
    flex: 1 1 35%;
    justify-content: center;
    align-items: center;
  }
  
  .welcome2dcc-img-card {
    overflow: hidden;
    border-radius: 50px;
    flex: 1;
    max-width: 200px;
    opacity: 0;
    transform: translateX(120px);
    animation: slideInRight 1s ease forwards;
  }
  
  .welcome2dcc-img-card:nth-child(1) { animation-delay: 0.4s; }
  .welcome2dcc-img-card:nth-child(2) { animation-delay: 0.6s; }
  .welcome2dcc-img-card:nth-child(3) { animation-delay: 0.8s; }
  
  @keyframes slideInRight {
    0% { opacity: 0; transform: translateX(140px); }
    100% { opacity: 1; transform: translateX(0); }
  }

.welcome2dcc-img-card:nth-child(1),
.welcome2dcc-img-card:nth-child(3) {
    height: 200px; /* or whatever fixed height you want */
}

.welcome2dcc-img-card:nth-child(2) {
    height: 360px; /* middle image height */
}
  
  .welcome2dcc-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }
  
  .welcome2dcc-img-card:hover img {
    transform: scale(1.05);
  }
  /* ========== Responsive Design for Welcome2DCC ========== */
@media (max-width: 768px) {

    #welcome2dcc {
        padding: 8% 5%;       /* reduce top/bottom padding */
        margin-top: -5%;      /* spacing from header */
        margin-bottom: 2%;    /* keep small space below */
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        overflow: visible;    /* ensure animations are visible */
    }

    .welcome2dcc-container {
        flex-direction: row ;   /* stack text and images */
        text-align: center;
        gap: 15px;                /* smaller gap between elements */
        width: 100%;
    }

    .welcome2dcc-address {
        display: block;             /* ensures it is on a new line below Classes */
        font-family: 'Roboto', sans-serif;
        font-size: 10px;            /* much smaller than Classes */
        font-weight: 700;           /* bold */
        color: white;               /* text color white */
        margin-top: 2px;            /* small spacing from Classes */
        line-height: 1;             /* compact vertical spacing */
      }
    /* Text section */
    .welcome2dcc-text {
        flex: 1 1 100%;               /* take full width */
        white-space: nowrap;
        overflow: hidden;
        border-right: 1px solid rgba(1, 2, 10, 0.7);
        max-width: 90%;               /* typing effect visible */
        margin: 0 auto;
        min-width: 25ch;              /* reserve space for animation */
        animation: typingText 2.5s steps(30, end) 0.5s 1 normal both;
        font-family: "Ubuntu", sans-serif !important;
    }

    .welcome2dcc-subtitle {
        font-size: 0.9rem;
        margin-bottom: 5px;
        font-family: "Ubuntu", sans-serif !important;
    }

    .welcome2dcc-main, 
    .welcome2dcc-highlight {
        font-size: 2rem;      /* smaller text for mobile */
        line-height: 0.5;
        font-family: "Ubuntu", sans-serif !important;
    }

    /* Buttons */
    .welcome2dcc-buttons {
        justify-content: center;
        flex-wrap: wrap;
        margin: 10px 0 15px 0;   /* compact spacing around buttons */
        gap: 12px;
        margin-bottom: 2px;
    }

    .welcome2dcc-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    /* Images */
    .welcome2dcc-images {
        order: 1;
        justify-content: center;
        margin-top: 10px;
        gap: 10px;               /* smaller gap between cards */
        flex-wrap: wrap;
    }

    .welcome2dcc-img-card {
        max-width: 150px;        /* smaller cards for mobile */
        border-radius: 15px;
        margin-bottom: 10px;
    }
   
}
