@import url(https://fonts.googleapis.com/css?family=Roboto:400,300);

.card-container {
    height: 900px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    /* margin-top: 30px; */
    overflow: hidden;

     /* ✅ Background image settings */
    background-image: url("../assets/home_backgroundImg.png"); /* Adjust path as needed */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* border-radius: 8px; optional, for rounded corners */
    /* padding: 20px; */

}


.card {
    margin: 0 40px;
    margin-top: 5%;
    padding: 5px 30px;
    width: 290px;
    height: 470px;
    border-radius: 15px;
    background-color: rgba(245, 241, 241, 0.6);
    box-shadow: 1px 2px 10px rgba(0, 0, 0, .2);
    -webkit-animation: open 2s cubic-bezier(.39, 0, .38, 1);
}

@-webkit-keyframes open {
    from {
        padding: 0 30px;
        height: 0;
    }
    to {
        height: 470px;
    }
}

h1,
h2,
h3,
h4 {
    position: relative;
}

h1 {
    float: right;
    color: #666;
    font-weight: 300;
    font-size: 6.59375em;
    line-height: .2em;
    -webkit-animation: up 2s cubic-bezier(.39, 0, .38, 1) .2s;
}

h2 {
    font-weight: 300;
    font-size: 2.25em;
    -webkit-animation: up 2s cubic-bezier(.39, 0, .38, 1);
}

h3 {
    float: left;
    /* margin-right: 33px; */
    color: #777;
    font-weight: 400;
    font-size: 1em;
    -webkit-animation: up 2s cubic-bezier(.39, 0, .38, 1) .1s;
}

span {
    margin-left: 24px;
    color: #999;
    font-weight: 300;
}

span span {
    margin-left: 0;
}

.dot {
    font-size: .9em;
}

.sky {
    position: relative;
    margin-top: 108px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #03A9F4;
    -webkit-animation: up 2s cubic-bezier(.39, 0, .38, 1) .2s;
}

.sun {
    position: relative;
    top: -3px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #FFEB3B;
    -webkit-animation: up 2s cubic-bezier(.39, 0, .38, 1) .5s;
}

.cloud {
    position: absolute;
    top: 60px;
    left: 30px;
    -webkit-animation: up 2s cubic-bezier(.39, 0, .38, 1) .7s;
}

.cloud:before,
.cloud:after {
    position: absolute;
    display: block;
    content: "";
}

.cloud:before {
    margin-left: -10px;
    width: 51px;
    height: 18px;
    background: #fff;
}

.cloud:after {
    position: absolute;
    top: -10px;
    left: -22px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 50px -6px 0 6px #fff, 25px -19px 0 10px #fff;
}

table {
    position: relative;
    top: 10px;
    width: 100%;
    text-align: center;
}

tr:nth-child(1) td:nth-child(1),
tr:nth-child(1) td:nth-child(2),
tr:nth-child(1) td:nth-child(3),
tr:nth-child(1) td:nth-child(4),
tr:nth-child(1) td:nth-child(5) {
    padding-bottom: 32px;
    -webkit-animation: up 2s cubic-bezier(.39, 0, .38, 1) .7s;
}

tr:nth-child(2) td:nth-child(1),
tr:nth-child(2) td:nth-child(2),
tr:nth-child(2) td:nth-child(3),
tr:nth-child(2) td:nth-child(4),
tr:nth-child(2) td:nth-child(5) {
    padding-bottom: 7px;
    -webkit-animation: up 2s cubic-bezier(.39, 0, .38, 1) .9s;
}

tr:nth-child(3) td:nth-child(1),
tr:nth-child(3) td:nth-child(2),
tr:nth-child(3) td:nth-child(3),
tr:nth-child(3) td:nth-child(4),
tr:nth-child(3) td:nth-child(5) {
    padding-bottom: 7px;
    -webkit-animation: up 2s cubic-bezier(.39, 0, .38, 1) .9s;
}

tr:nth-child(2),
tr:nth-child(3) {
    font-size: .9em;
}

tr:nth-child(3) {
    color: #999;
}

@-webkit-keyframes up {
    0% {
        opacity: 0;
        -webkit-transform: translateY(15px);
    }
    50% {
        opacity: 0;
        -webkit-transform: translateY(15px);
    }
    99% {
        -webkit-animation-play-state: paused;
    }
    100% {
        opacity: 1;
    }
}


/* style for services section here  */
.animated-services {
    padding: 5px 30px;
    background: linear-gradient(to bottom right, #ffffff, #ffffff);
    text-align: center;
}

.section-title {
    font-size: 3em;
    color: #1a237e;
    /* margin-bottom: 10px; */
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  /* margin-top: 30px; */
}

.section-title {
  font-size: 3em;
  color: #3866ace1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-line {
  flex: 1;
  height: 3px;
  background: linear-gradient(to right, #0d47a1, #42a5f5);
  border-radius: 5px;
}


.section-subtitle {
    font-size: 1.2em;
    color: #455a64;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.animated-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.animated-card {
    flex: 0 1 380px;
    height: 300px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
     transform-style: preserve-3d;
     will-change: transform;
    border-radius: 10px;
    overflow: hidden;
    perspective: 1000px;
    display: flex;
    align-items: stretch;
}

.animated-card:hover {
  transform: scale(1.08) translateY(-12px) rotateX(2deg);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2);
  z-index: 2;
}
.card-content {
    padding: 30px 0px;
    background: #3866ace1;
    border: 1px solid rgba(200, 200, 200, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
     text-align: center;
}

.card-content img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    animation: floatIcon 2s infinite ease-in-out;
}

.card-content h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #ffffff;
    text-transform: uppercase;
   
}

.card-content p {
    font-size: 1em;
    color: #333;
    text-align: center;
    padding: 0 10px;
}

@keyframes floatIcon {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}


/* ***************** for notices and visitors counter *********************** */
.stats-bulletin-section {
    margin-top: 50px;
    padding: 80px 30px;
    background: linear-gradient(to bottom, #e3f2fd, #ffffff);
}

.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
        height: 250px;

}

/* Total Visitors Block */
.visitors-summary {
    background: #fff;
    /* padding: 30px; */
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 320px;
     height: 200px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.visitors-summary h3 {
    font-size: 1.6em;
    color: #0d47a1;
    margin-bottom: 15px;
}

.visitors-count {
    font-size: 3em;
    font-weight: bold;
    color: #1a237e;
}

.since-label {
    margin-top: 10px;
    color: #607d8b;
    font-size: 0.95em;
}

/* Visitors Today Card */
.visitors-today-card {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    /* padding: 30px; */
    border-radius: 15px;
    width: 320px;
    height: 200px;
    text-align: center;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03), 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.visitors-today-card h4 {
    font-size: 1.4em;
    color: #1565c0;
    margin-bottom: 10px;
}

.today-count {
    font-size: 2.5em;
    color: #0d47a1;
    font-weight: bold;
}

.trend-badge {
    margin-top: 10px;
    font-size: 0.95em;
    background: #e1f5fe;
    color: #0277bd;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
}

/* Bulletin Board */
.bulletin-section {
    background: #f1f8ff;
    padding: 40px 30px;
    border-radius: 15px;
    max-width: 880px;
    margin: auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.bulletin-title {
    font-size: 1.8em;
    text-align: center;
    color: #0d47a1;
    margin-bottom: 20px;
}

.bulletin-wrapper {
    height: 120px;
    overflow: hidden;
    position: relative;
}

.bulletin-list {
    list-style: none;
    padding: 0;
    margin: 0;
    animation: vertical-scroll 12s linear infinite;
}

.bulletin-list li {
    padding: 12px 0;
    font-size: 1em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Scroll animation */
@keyframes vertical-scroll {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}
