

/* ================= GRID ================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* EXACT 3 PER ROW */
    gap: 28px;
}

.profile-contact {
    /* display: flex; */
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.profile-contact svg {
    width: 16px;
    height: 16px;
    fill: #332941; /* purple */
    flex-shrink: 0;
}

/* ================= CARD ================= */
.profile-card {
    display: flex;
    gap: 18px;
    background: #ffffff; /* WHITE CARD */
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--light-gray);
    box-shadow: 0 10px 28px rgba(104, 68, 147, 0.12);
    position: relative;
    overflow: hidden;

    /* Load animation */
    opacity: 0;
    transform: translateY(35px) scale(0.96);
    animation: cardLoad 0.75s ease forwards;
}

.profile-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background: var(--base-color);
}

/* ================= IMAGE ================= */
.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 105px;
    height: 105px;
    object-fit: cover;
    border-radius: 16px;
    border: 3px solid var(--base-color-light);
    background: #eaeaea;
}

/* ================= CONTENT ================= */
.profile-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 24px;
}

.profile-name {
    font-family: var(--alt-font);
    font-size: 17px;
    font-weight: 700;
    color: var(--base-color-dark);
    margin-bottom: 6px;
}

.profile-designation {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 6px;
}

.profile-contact {
    font-size: 13.5px;
    color: #555;
}

/* ================= ANIMATION ================= */
@keyframes cardLoad {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-image img {
        margin: 0 auto;
    }
}
/* ================= GRID ================= */
.region-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ================= CARD ================= */
.region-card {
    display: flex;
        flex-direction: column; /* 🔥 KEY FIX */

    /* align-items: center; */
    background: #ffffff;
    border-radius: 22px;
    padding: 20px;
    border: 1px solid var(--light-gray);
    box-shadow: 0 12px 30px rgba(104, 68, 147, 0.12);
    position: relative;
    overflow: hidden;

    opacity: 0;
    transform: translateY(40px);
    animation: cardLoad 0.8s ease forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.region-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(104, 68, 147, 0.2);
}

.region-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background: var(--base-color);
}

.region-top {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
}

.region-contact,
.region-address {
    width: 100%;
}


/* ================= AVATAR ================= */
.avatar {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f3f1f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
}

.avatar img {
    width: 50px;
    opacity: 0.7;
}

/* ================= TEXT ================= */
.region-info {
    flex: 1;
    line-height: 20px;
}

.region-name {
    font-family: var(--alt-font);
    font-size: 18px;
    font-weight: 700;
    color: var(--base-color-dark);
    margin-bottom: 6px;
    line-height: 16px;
}

.region-head {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.region-contact {
    font-size: 13.5px;
    color: #555;
    line-height: 1.6;
}

/* ================= ANIMATION ================= */
@keyframes cardLoad {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
    .region-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .region-card {
        flex-direction: column;
        text-align: center;
    }
    .avatar {
        margin-right: 0;
        margin-bottom: 12px;
    }
}

/* ================= STAGGERED ANIMATION ================= */
.region-card:nth-child(1) { animation-delay: 0.1s; }
.region-card:nth-child(2) { animation-delay: 0.2s; }
.region-card:nth-child(3) { animation-delay: 0.3s; }
.region-card:nth-child(4) { animation-delay: 0.4s; }
.region-card:nth-child(5) { animation-delay: 0.5s; }
.region-card:nth-child(6) { animation-delay: 0.6s; }
.region-card:nth-child(7) { animation-delay: 0.7s; }
.region-card:nth-child(8) { animation-delay: 0.8s; }
.region-card:nth-child(9) { animation-delay: 0.9s; }
.region-card:nth-child(10) { animation-delay: 1s; }
.region-card:nth-child(11) { animation-delay: 1.1s; }
.region-card:nth-child(12) { animation-delay: 1.2s; }

@media (max-width: 768px) {
  .region-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .region-card {
    padding: 16px;
  }

  .avatar {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
  }

  .region-name {
    font-size: 16px;
  }

  .region-head,
  .region-contact,
  .region-address {
    font-size: 13px;
  }
}


/* ======== GALLERY GRID ======== */
/* .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-grid a {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    display: block;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-grid a:hover img {
    transform: scale(1.1);
    opacity: 0.9;
}

.gallery-grid a::after {
    content: attr(data-title);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-grid a:hover::after {
    opacity: 1;
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid img {
        height: 180px;
    }
} */


.tenders-container {
        max-width: 420px;
        margin: auto;
    }

    .tender-card {
        display: flex;
        align-items: center;
        background: #fff;
        margin-bottom: 15px;
        padding: 14px 20px;
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.08);
        text-decoration: none;
        color: #332941;
        font-size: 16px;
        opacity: 0;
        transform: translateY(18px);
        transition: all 0.6s ease;
    }

    .tender-card:hover {
        background: #eaf4ff;
    }

    .tender-icon {
        width: 22px;
        height: 22px;
        background: #332941 url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSJ3aGl0ZSIgY2xhc3M9IiIgdmlld0JveD0iMCAwIDI0IDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0xMiAyYzUtMiAxMC41IDMuMSAxMCA4bC0xMiAxMmMtNS4xLS4yLTEwLjEtNS0xMC04czQuOS03LjggMTAtOHptLTEuNSAxMS41aDN2LTNoLTN2M3ptMC02aDN2LTNoLTN2M3oiLz48L3N2Zz4=') no-repeat center;
        background-size: 70%;
        margin-right: 12px;
    }

    .tender-card.show {
        opacity: 1;
        transform: translateY(0);
    }
    .login-grid{
        display:grid;
        grid-template-columns: 300px 1fr;
        gap:30px;
        max-width:1200px;
        margin:auto;
        align-items:stretch;
    }

    /* LEFT COLUMN */
    .left-column{
        display:grid;
        grid-template-rows: repeat(4, 1fr);
        gap:20px;
    }

    .left-column a,
    .right-column{
        opacity:0;
        transform:translateY(30px);
        transition:all 0.7s ease;
    }

    .left-column a.show,
    .right-column.show{
        opacity:1;
        transform:translateY(0);
    }

    .left-column a{
        display:block;
        background:#fff;
        border-radius:14px;
        overflow:hidden;
        /* box-shadow:0 6px 18px rgba(0,0,0,0.15); */
    }

    .left-column img{
        width:100%;
        height:100%;
        object-fit:cover;
    }

    /* RIGHT COLUMN */
    .right-column{
        background:#fff;
        border-radius:18px;
        overflow:hidden;
        /* box-shadow:0 10px 30px rgba(0,0,0,0.2); */
    }

    .right-column img{
        width:100%;
        height:100%;
        object-fit:cover;
    }

    /* RESPONSIVE */
    @media(max-width:900px){
        .login-grid{
            grid-template-columns:1fr;
        }
        .left-column{
            grid-template-columns: repeat(2,1fr);
            grid-template-rows:auto;
        }
    }
    .custom-format{
    width:100%;
    max-width:1200px;
    margin:auto;
    background:#ffffff;
    border-radius:10px;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
    overflow:hidden;
    font-family:Segoe UI, Arial, sans-serif;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.styled-table th{
    padding: 12px 15px;
    text-align: center;
    line-height: 24px;
}

.styled-table th, 
.styled-table td {
    padding: 12px 15px;
}

.styled-table th {
    background-color: #332941;
    color: #ffffff;
}

.styled-table tbody tr:nth-child(even) {
    background-color: #4e495311;
}

.styled-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.styled-table tbody tr.total-row {
    background-color: #332941;
    color: #ffffff;
    font-weight: bold;
}

.styled-table tbody tr td:first-child {
    font-weight: bold;
}

.styled-table tbody tr td:nth-child(2) {
    text-align: left;
}

/* 📱 MOBILE horizontal scroll */
@media (max-width: 768px){

    .custom-format{
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
    }

    .styled-table{
        min-width:700px; /* adjust if more columns */
    }

}

/* ================= Table Styling ================= */
.csc-commodities-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
}

/* Table Header */
.csc-commodities-table thead {
    background-color: #332941;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.csc-commodities-table thead th {
    padding: 12px 15px;
    border-bottom: 2px solid #332941;
    line-height: 18px;
}

/* Table Body */
.csc-commodities-table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #f3f1f5;
    font-size: 15px;
}

/* Alternating Row Colors */
.csc-commodities-table tbody tr:nth-child(odd) {
    background-color: #4e495311;
}

.csc-commodities-table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

/* Highlight first column */
.csc-commodities-table tbody td:first-child {
    font-weight: bold;
    text-align: center;
}

/* Left align second column (Age Group) */
.csc-commodities-table tbody td:nth-child(2) {
    text-align: left;
}

/* Center align numeric columns */
.csc-commodities-table tbody td:nth-child(3),
.csc-commodities-table tbody td:nth-child(4),
.csc-commodities-table tbody td:nth-child(5),
.csc-commodities-table tbody td:nth-child(6),
.csc-commodities-table tbody td:nth-child(7),
.csc-commodities-table tbody td:nth-child(8),
.csc-commodities-table tbody td:nth-child(9) {
    text-align: center;
}

/* Optional Total Row */
.csc-commodities-table tbody tr.total-row {
    background-color: #4a2f6e;
    color: #ffffff;
    font-weight: bold;
}
/* 📱 mobile horizontal scroll support */
@media (max-width: 768px){

    .csc-table-wrapper{
        width:100%;
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
    }

    .csc-commodities-table{
        min-width:900px; /* adjust depending on column count */
    }

}


/* table css d-code */
.tncsc-staff-table{
	width:100%;
	border-collapse:collapse;
	font-size:14px;
	color:#000;
}
.tncsc-staff-table th{
	padding:14px;
	background:#332941;
	color:#fff;
	text-align:center;
	font-weight:600;
	border:1px solid #d0d4e4;
}
.tncsc-staff-table td{
	padding:14px;
	text-align:center;
	border:1px solid #d0d4e4;
}
.tncsc-staff-table tbody tr:nth-child(odd){
	background:#4e495311;
}
.tncsc-staff-table tbody tr:nth-child(even){
	background:#ffffff;
}
.tncsc-staff-table .category-row td{
	background:#f3f1f5;
	font-weight:700;
}
.tncsc-staff-table .total-row td{
	background:#413d4611;
	font-weight:700;
}
/* Mobile responsiveness */
@media (max-width: 768px){

  .tncsc-staff-table{
    display:block;
    width:100%;
    overflow-x:auto;
    white-space:nowrap;
    font-size:12px;
  }

  .tncsc-staff-table th,
  .tncsc-staff-table td{
    padding:10px;
  }

}



/* timeline previous cmd */
.tncsc-container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}
.tncsc-title {
  text-align: center;
  margin-bottom: 50px;
  color: #332941;
  font-size: 26px;
  font-weight: 600;
}

/* Timeline Nodes */
.tncsc-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 50px;
}
.tncsc-timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: #e5e7eb;
  z-index: 0;
}
.tncsc-year-node {
  position: relative;
  z-index: 1;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}
.tncsc-year-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid #332941;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transition: all 0.3s;
}
.tncsc-year-node.active .tncsc-year-circle {
  background: #332941;
  color: #fff;
  transform: scale(1.1);
  font-size: 13px;

}
.tncsc-year-label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

/* Year Content */
.tncsc-content {
  display: none;
  animation: tncsc-fadeUp 0.4s ease;
}
.tncsc-content.active {
  display: block;
}
.tncsc-inner-timeline {
  border-left: 4px solid #332941;
  margin-left: 40px;
  padding-left: 30px;
}
.tncsc-item {
  margin-bottom: 20px;
  position: relative;
}
.tncsc-item::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 14px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #332941;
}
.tncsc-card {
  background: #fff !important;
  padding: 16px 20px !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.12) !important;
  
}
.tncsc-card h4 { margin: 0; font-size: 18px !important; color: #332941; line-height:35px !important; font-weight: 700;}
.tncsc-card p { margin: 0px 0; font-weight: 600; font-size:15px !important; color: #444444 !important; }
.tncsc-card small { color: #555 !important; }

@keyframes tncsc-fadeUp{
  from {opacity:0; transform: translateY(15px);}
  to {opacity:1; transform:none;}
}


/* Year range inside circle */
/* .tncsc-year-circle.tncsc-range {
  flex-direction: column;
  line-height: 1.1;
}

.tncsc-year-circle .from {
  font-size: 17px;
  font-weight: 700;
}

.tncsc-year-circle .to {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
} */

/* Year range inside circle (FROM - to - TO) */
.tncsc-year-circle.tncsc-range {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1.05;
}

.tncsc-year-circle .from,
.tncsc-year-circle .to {
  font-size: 14px;
  font-weight: 600;
}

.tncsc-year-circle .mid {
  font-size: 11px;
  font-weight: 600;
  text-transform: lowercase;
  opacity: 0.85;
  margin: 5px 0;
}

/* ================= MOBILE RESPONSIVENESS ================= */
@media (max-width: 768px) {

  .tncsc-container {
    margin: 30px auto;
    padding: 0 12px;
  }

  .tncsc-title {
    font-size: 20px;
    margin-bottom: 30px;
  }

  /* Timeline becomes vertical */
  .tncsc-timeline {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .tncsc-timeline::before {
    display: none;
  }

  .tncsc-year-circle {
    width: 100px;
    height: 100px;
    font-size: 12px;
  }

  .tncsc-year-label {
    font-size: 12px;
  }

  /* Inner timeline spacing */
  .tncsc-inner-timeline {
    margin-left: 10px;
    padding-left: 20px;
  }

  .tncsc-item::before {
    left: -29px;
    width: 14px;
    height: 14px;
  }

  .tncsc-card {
    padding: 14px 16px !important;
  }

  .tncsc-card h4 {
    font-size: 15px !important;
    line-height: 24px !important;
  }

  .tncsc-card p {
    font-size: 13px !important;
  }

  .tncsc-year-circle .from,
  .tncsc-year-circle .to {
    font-size: 12px;
  }

  .tncsc-year-circle .mid {
    font-size: 9px;
    margin: 2px 0;
  }
}


/* ===============================
   ROOT
================================ */
.region-flip-ui {
  --rf-primary: #332941;
  --rf-accent: #f4f6fb;
  /* font-family: "Segoe UI", sans-serif; */
}

/* ===============================
   GRID
================================ */
.region-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 40px;
}

/* ===============================
   CARD
================================ */
.rf-card {
  height: 400px;
  perspective: 1400px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.rf-card.rf-visible {
  opacity: 1;
  transform: translateY(0);
}

.rf-inner {
  height: 350px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(.4,.2,.2,1);
}

.rf-card:hover .rf-inner {
  transform: rotateY(180deg);
}

/* ===============================
   FACE BASE
================================ */
.rf-face {
  height: 350px;
  backface-visibility: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  padding: 26px;
  display: flex;
  flex-direction: column;
}

/* ===============================
   FRONT
================================ */
.rf-front {
  background: linear-gradient(135deg, #9c77e0 0%, #332941 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.rf-front::before {
  content: "";
  position: absolute;
  bottom: -40%;
  right: -30%;
  width: 120%;
  height: 120%;
  background: rgba(255,255,255,0.06);
  transform: rotate(-18deg);
}

.rf-badge {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 18px;
}

.rf-front h3 {
  font-size: 28px;
  margin: 0 0 12px;
  font-weight: 600;
}

.rf-count-big {
  font-size: 40px;
  font-weight: 700;
  margin-top: auto;
  text-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

.rf-label {
  font-size: 14px;
  opacity: 0.85;
}

/* ===============================
   BACK (FIT + SCROLL)
================================ */
.rf-back {
  background: #fff;
  transform: rotateY(180deg);
  position: absolute;
  inset: 0;
}

.rf-back h3 {
  color: var(--rf-primary);
  font-size: 24px;
  margin-bottom: 6px;
  font-weight:600;
}

.rf-count {
  font-size: 13px;
  color: #777;
  border-bottom: 2px solid var(--rf-primary);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

/* THIS IS THE KEY FIX */
.rf-back-body {
  flex: 1;
  overflow: hidden;
  display: flex;
}

.rf-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
}

/* ===============================
   LIST
================================ */
.rf-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rf-list li {
  background: var(--rf-accent);
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rf-primary);
  position: relative;
}

.rf-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 4px;
  background: var(--rf-primary);
  border-radius: 4px;
}

/* ===============================
   SCROLLBAR
================================ */
.rf-scroll::-webkit-scrollbar { width: 6px; }
.rf-scroll::-webkit-scrollbar-track { background: #F9F5FF; }
.rf-scroll::-webkit-scrollbar-thumb {
  /* background: linear-gradient(180deg,#332941,#f3f1f5); */
  background: linear-gradient(180deg, #8f78b3, #332941);
  border-radius: 10px;
}

.rf-scroll {
  scrollbar-width: thin;
  scrollbar-color: #332941 #F9F5FF;
}

/* ==== RTI Number Circle ==== */
.rti-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #F9F5FF;
    color: #332941;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    transition: all 0.3s ease;
}

/* hover effect (optional) */
.row:hover .rti-number {
    background: #332941;
    color: #fff;
}

.rf-vertical-pro {
  --rfp-primary: #332941;
  --rfp-accent: #f4f6fb;
  font-family: "Segoe UI", sans-serif;
}

/* Layout */
.rfp-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  max-width: 700px;
  margin: auto;
}

/* Card */
.rfp-card {
  height: 240px;
  perspective: 1200px;
}

.rfp-inner {
  height: 240px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(.4,.2,.2,1);
}

.rfp-card:hover .rfp-inner {
  transform: rotateY(180deg);
}

/* Face */
.rfp-face {
  height: 240px;
  backface-visibility: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

/* Front */
.rfp-front {
  background: linear-gradient(135deg, #9c77e0 0%, #332941 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.rfp-front::before {
  content: "";
  position: absolute;
  bottom: -40%;
  right: -30%;
  width: 120%;
  height: 120%;
  background: rgba(255,255,255,0.06);
  transform: rotate(-18deg);
}

.rfp-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 10px;
}

.rfp-front h3 {
  font-size: 20px;
  margin: 0 0 6px;
  font-weight: 600;
}

.rfp-label {
  font-size: 13px;
  opacity: 0.9;
  margin-top: auto;
}

/* Back */
.rfp-back {
  background: #fff;
  transform: rotateY(180deg);
  position: absolute;
  inset: 0;
}

.rfp-back h3 {
  color: var(--rfp-primary);
  font-size: 18px;
  margin-bottom: 4px;
  font-weight: 600;
}

.rfp-count {
  font-size: 12px;
  color: #777;
  border-bottom: 2px solid var(--rfp-primary);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

/* Scroll area */
.rfp-back-body {
  flex: 1;
  overflow: hidden;
  display: flex;
}

.rfp-scroll {
  flex: 1;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 6px;
}

/* List */
.rfp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rfp-list li {
  background: var(--rfp-accent);
  padding: 8px 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rfp-primary);
  position: relative;
}

.rfp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 4px;
  background: var(--rfp-primary);
  border-radius: 4px;
}

/* Scrollbar */
.rfp-scroll::-webkit-scrollbar {
  width: 6px;
}

.rfp-scroll::-webkit-scrollbar-track {
  background: #F9F5FF;
}

.rfp-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8f78b3, #332941);
  border-radius: 10px;
}

.rfp-scroll {
  scrollbar-width: thin;
  scrollbar-color: #332941 #F9F5FF;
}

.rf-vertical-pro {
  --rfp-primary: #332941;
  --rfp-accent: #f4f6fb;
  font-family: "Segoe UI", sans-serif;
  margin-bottom:20px;
}

/* Layout */
.rfp-cards {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 20px;
  max-width: 450px;
  margin: auto;
}

/* Card */
.rfp-card {
  height: 240px;
  perspective: 1200px;
}

.rfp-inner {
  height: 240px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(.4,.2,.2,1);
}

.rfp-card:hover .rfp-inner {
  transform: rotateY(180deg);
}

/* Face */
.rfp-face {
  height: 300px;
  backface-visibility: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

/* Front */
.rfp-front {
  background: linear-gradient(135deg, #9c77e0 0%, #332941 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.rfp-front::before {
  content: "";
  position: absolute;
  bottom: -40%;
  right: -30%;
  width: 120%;
  height: 120%;
  background: rgba(255,255,255,0.06);
  transform: rotate(-18deg);
}

.rfp-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 10px;
}

.rfp-front h3 {
  font-size: 30px;
  margin: 0 0 6px;
  font-weight: 600;
}

.rfp-label {
  font-size: 13px;
  opacity: 0.9;
  margin-top: auto;
}

/* Back */
.rfp-back {
  background: #fff;
  transform: rotateY(180deg);
  position: absolute;
  inset: 0;
}

.rfp-back h3 {
  color: var(--rfp-primary);
  /* font-size: 18px;
  margin-bottom: 4px;
  font-weight: 600; */
  font-size: 28px;
  margin: 0 0 12px;
  font-weight: 600;
}

.rfp-count {
  font-size: 12px;
  color: #777;
  border-bottom: 2px solid var(--rfp-primary);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

/* Scroll area */
.rfp-back-body {
  flex: 1;
  overflow: hidden;
  display: flex;
}

.rfp-scroll {
  flex: 1;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 6px;
}

/* List */
.rfp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rfp-list li {
  background: var(--rfp-accent);
  padding: 8px 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rfp-primary);
  position: relative;
}

.rfp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 4px;
  background: var(--rfp-primary);
  border-radius: 4px;
}

/* Scrollbar */
.rfp-scroll::-webkit-scrollbar {
  width: 6px;
}

.rfp-scroll::-webkit-scrollbar-track {
  background: #F9F5FF;
}

.rfp-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8f78b3, #332941);
  border-radius: 10px;
}

.rfp-scroll {
  scrollbar-width: thin;
  scrollbar-color: #332941 #F9F5FF;
}

/* ===============================
   REGION ICON ROTATION
================================ */
.rf-badge {
  transition: transform 0.9s cubic-bezier(.4,.2,.2,1);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.rf-card:hover .rf-badge {
  transform: rotateY(180deg) rotateZ(360deg) scale(1.1);
}

.rfp-badge {
  transition: transform 0.8s cubic-bezier(.4,.2,.2,1);
  transform-style: preserve-3d;
}

.rfp-card:hover .rfp-badge {
  transform: rotateY(180deg) rotateZ(360deg);
}

/*MOBILE RESPONSIVENESS */
/* ===================== Organo Cards Zig Zag ===================== */

.rfp-vertical-alt {
  --rfp-primary: #332941;
  --rfp-accent: #f4f6fb;
  /* font-family: "Segoe UI", sans-serif; */
  margin-bottom: 20px;
  padding: 20px;
}

/* Container */
.rfp-vertical-alt .rfp-cards-alt {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 20px;
  max-width: 1200px; /* allow horizontal offsets */
  position: relative;
}

/* Card */
.rfp-vertical-alt .rfp-card-alt {
  height: 240px;
  width: 500px;
  perspective: 1200px;
  position: relative; /* allow left offsets */
  transition: transform 0.5s ease;
}

/* Zigzag horizontal offsets */
.rfp-vertical-alt .rfp-card-alt:nth-child(1) {
  left: 0px;
}
.rfp-vertical-alt .rfp-card-alt:nth-child(2) {
  left: 300px;
  top: 50px;
}
.rfp-vertical-alt .rfp-card-alt:nth-child(3) {
  left: 600px;
  top: 20px;

}
.rfp-vertical-alt .rfp-card-alt:nth-child(4) {
  left: 900px;
  bottom: 10px;
}
/* Optional: repeat pattern or continue incrementing for more cards */
.rfp-vertical-alt .rfp-card-alt:nth-child(5) {
  left: 0px;
}
.rfp-vertical-alt .rfp-card-alt:nth-child(6) {
  left: 400px;
}

/* Flip Inner */
.rfp-vertical-alt .rfp-inner-alt {
  height: 240px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(.4,.2,.2,1);
}

.rfp-vertical-alt .rfp-card-alt:hover .rfp-inner-alt {
  transform: rotateY(180deg);
}

/* Face */
.rfp-vertical-alt .rfp-face-alt {
  height: 300px;
  backface-visibility: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

/* Front */
.rfp-vertical-alt .rfp-front-alt {
  background: linear-gradient(135deg, #9c77e0 0%, #332941 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.rfp-vertical-alt .rfp-front-alt::before {
  content: "";
  position: absolute;
  bottom: -40%;
  right: -30%;
  width: 120%;
  height: 120%;
  background: rgba(255,255,255,0.06);
  transform: rotate(-18deg);
}

.rfp-vertical-alt .rfp-badge-alt {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 10px;
  transition: transform 0.8s cubic-bezier(.4,.2,.2,1);
  transform-style: preserve-3d;
}

.rfp-card-alt:hover .rfp-badge-alt {
  transform: rotateY(180deg) rotateZ(360deg);
}

.rfp-vertical-alt .rfp-front-alt h3 {
  font-size: 30px;
  margin: 0 0 6px;
  font-weight: 600;
}

.rfp-vertical-alt .rfp-label-alt {
  font-size: 13px;
  opacity: 0.9;
  margin-top: auto;
}

/* Back */
.rfp-vertical-alt .rfp-back-alt {
  background: #fff;
  transform: rotateY(180deg);
  position: absolute;
  inset: 0;
}

.rfp-vertical-alt .rfp-back-alt h3 {
  color: var(--rfp-primary);
  font-size: 28px;
  margin: 0 0 12px;
  font-weight: 600;
}

.rfp-vertical-alt .rfp-count-alt {
  font-size: 12px;
  color: #777;
  border-bottom: 2px solid var(--rfp-primary);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

/* Scroll area */
.rfp-vertical-alt .rfp-back-body-alt {
  flex: 1;
  overflow: hidden;
  display: flex;
}

.rfp-vertical-alt .rfp-scroll-alt {
  flex: 1;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 6px;
}

/* List */
.rfp-vertical-alt .rfp-list-alt {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rfp-vertical-alt .rfp-list-alt li {
  background: var(--rfp-accent);
  padding: 8px 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rfp-primary);
  position: relative;
}

.rfp-vertical-alt .rfp-list-alt li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 4px;
  background: var(--rfp-primary);
  border-radius: 4px;
}

/* Scrollbar */
.rfp-vertical-alt .rfp-scroll-alt::-webkit-scrollbar {
  width: 6px;
}

.rfp-vertical-alt .rfp-scroll-alt::-webkit-scrollbar-track {
  background: #F9F5FF;
}

.rfp-vertical-alt .rfp-scroll-alt::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8f78b3, #332941);
  border-radius: 10px;
}

.rfp-vertical-alt .rfp-scroll-alt {
  scrollbar-width: thin;
  scrollbar-color: #332941 #F9F5FF;
}
/* Loading animation keyframe */
@keyframes rfpCardLoad {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Apply animation to cards */
.rfp-vertical-alt .rfp-card-alt {
  opacity: 0;
  animation: rfpCardLoad 0.8s ease forwards;
}

/* Staggered delay (cards appear one by one) */
.rfp-vertical-alt .rfp-card-alt:nth-child(1) { animation-delay: 0.1s; }
.rfp-vertical-alt .rfp-card-alt:nth-child(2) { animation-delay: 0.25s; }
.rfp-vertical-alt .rfp-card-alt:nth-child(3) { animation-delay: 0.4s; }
.rfp-vertical-alt .rfp-card-alt:nth-child(4) { animation-delay: 0.55s; }
.rfp-vertical-alt .rfp-card-alt:nth-child(5) { animation-delay: 0.7s; }
.rfp-vertical-alt .rfp-card-alt:nth-child(6) { animation-delay: 0.85s; }

/* Scroll animation initial state */
.rfp-vertical-alt .rfp-card-alt {
  opacity: 0;
  transform: translateY(50px) scale(0.96);
  transition: all 0.8s cubic-bezier(.2,.8,.2,1);
}

/* Visible state */
.rfp-vertical-alt .rfp-card-alt.rfp-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* Mobile responsiveness */
@media (max-width: 768px) {
  .region-flip-ui{
    padding-top:20px !important;
  }
  .region-cards{
    gap:0px !important;
  }
  .rfp-vertical-alt .rfp-card-alt {
    width: 100%;
    left: 0 !important;
    /* top: 0 !important; */
    bottom: auto !important;
  }

  .rfp-vertical-alt .rfp-cards-alt {
    gap: 50px; /* reduce gap on mobile */
    padding: 10px;
  }

  .rfp-vertical-alt .rfp-front-alt h3 {
    font-size: 24px;
  }

  .rfp-vertical-alt .rfp-back-alt h3 {
    font-size: 22px;
  }

  .rfp-vertical-alt .rfp-back-body-alt {
    flex-direction: column;
  }
}




/* d-code */
.gov-steps-wrapper {
  max-width: 1000px;
  margin: 60px auto;
  display: flex;
  flex-direction: column;
  gap: 120px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
}

/* Each step container */
.gov-step {
  position: relative;
  width: 480px;
  transition: transform 0.3s ease;
  user-select: none;
}

/* Card style */
.gov-card {
  background:linear-gradient(135deg, #5c506e 0%, #332941 100%);;
  color: #ecf0f1;
  padding: 22px 28px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.25rem;
  font-weight: 600;
  transition: box-shadow 0.25s ease;
}

.gov-card h3{
  font-size: 30px;
  margin-bottom: 0px;
}
/* Icon styling */
.gov-icon {
  font-size: 2.2rem;
  background: #34495e;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.25);
}

/* Hover effect on card */
.gov-card:hover {
  box-shadow: 0 10px 20px rgba(44, 62, 80, 0.6);
  background-color: #34495e;
}

/* Panel style (hidden by default) */
.gov-panel {
  position: absolute;
  top: 0;
  width: 360px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  padding: 22px 24px;
  font-weight: 500;
  font-size: 0.95rem;
  color: #2c3e50;
  line-height: 1.5;
  max-height: 280px;
  overflow-y: auto;
  z-index: 8;
}
.gov-panel h4{
  font-size: 28px;
  font-weight: 600;
}
/* Show panel on hover */
.gov-step:hover .gov-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* List inside panel */
.gov-panel ul {
  padding-left: 18px;
  margin-top: 8px;
  margin-bottom: 0;
  list-style-type: disc;
}

/* Zig-zag positioning */

/* 1st card: shift right, panel on right */
.gov-left {
  margin-left: 0px;
}

.gov-left .gov-panel {
  left: 100%;
  margin-left: 20px;
  transform: translateX(20px);
}

/* 2nd card: shift right, panel on right */
.gov-center {
  margin-left: 280px;
}

.gov-center .gov-panel {
  left: 100%;
  margin-left: 20px;
  transform: translateX(20px);
}

/* 3rd card: aligned left, panel on left */
.gov-right {
  margin-left: 450px;
}

.gov-right .gov-panel {
  right: 100%;
  margin-right: 20px;
  transform: translateX(-20px);
}

/* Scrollbar styling for panels */
.gov-panel::-webkit-scrollbar {
  width: 6px;
}

.gov-panel::-webkit-scrollbar-track {
  background: #ecf0f1;
  border-radius: 8px;
}

.gov-panel::-webkit-scrollbar-thumb {
  background: #34495e;
  border-radius: 8px;
}

.gov-panel {
  scrollbar-width: thin;
  scrollbar-color: #34495e #ecf0f1;
}

/* Responsive: stack cards and panels full width on smaller screens */
@media (max-width: 640px) {
  .gov-steps-wrapper {
    max-width: 100%;
    padding: 0 12px;
  }
  .gov-step {
    width: 100%;
    margin-left: 0 !important;
  }
  .gov-left,
  .gov-center,
  .gov-right {
    margin-left: 0 !important;
  }
  .gov-panel {
    position: relative !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    width: 100%;
    max-height: none;
    box-shadow: none;
    border-radius: 0;
    margin-top: 12px !important;
  }
  .gov-card {
    font-size: 1.1rem;
  }
}
