

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* HERO */
.intro-hero {
    background-color: #8B0000;
    color: white;
    text-align: center;
    padding: 60px 40px;
}

.intro-hero-label {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 12px;
}

.intro-hero h2 {
    font-size: 46px;
    font-weight: bold;
    margin-bottom: 12px;
}

.intro-hero p {
    font-size: 18px;
    opacity: 0.85;
}

/* MARQUEE */
.marquee {
    background: #8B0000;
    color: white;
    padding: 10px;
    overflow: hidden;
    white-space: nowrap;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 18s linear infinite;
    font-weight: bold;
    font-size: 14px;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(rgba(255,255,255,0.55), rgba(255,255,255,0.55)),
                url('./Images/rice.webp') no-repeat center center;
    background-size: cover;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(255, 255, 255, 0.6); 
    z-index: -1;
}

.navbar h1 {
    color: white;
}

.navbar {
  display: flex;
  align-items: center;
  background-color: #8B0000;
  padding: 15px 40px;
}

.logo {
  color: white;
  font-size: 28px;
  font-weight: bold;
}

.navbar ul {
  display: flex;
  list-style: none;
  margin-left: auto;
}

.navbar a {
  color: white;
  text-decoration: none;
  padding: 20px 30px;
  font-weight: 1000;
}

.navbar a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}


.dropdown { position: relative; }
.submenu {
  display: none;
  position: absolute;
  background-color: #8B0000;
  min-width: 150px;
  flex-direction: column; 
}

.dropdown:hover .submenu { display: flex; }


/* INTRO */
.intro {
    background: #8B0000;
    color: white;
    margin: 20px auto;
    padding: 20px;
    width: 80%;
    border-radius: 30px;
    text-align: center;
}

/* CAROUSEL */
.carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
    scroll-behavior: smooth;
}

.carousel img {
    width: 300px;
    height: 180px;
    border-radius: 15px;
    object-fit: cover;
}

/* MARQUEE */
.marquee {
    background: #8B0000;
    color: white;
    padding: 10px;
    overflow: hidden;
    white-space: nowrap;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 12s linear infinite;
    font-weight: bold;
}

@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* SECTION */
.section {
    padding: 40px;
}

.section h2 {
    color: #8B0000;
    font-size: 36px;
}

.section p {
    margin: 10px 0 30px;
    color: #555;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ✅ correct */
    gap: 20px;
    padding: 20px;
}


/* FLIP CARD STRUCTURE */
.card {
    height: 250px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

/* FRONT + BACK */
.card-front, 
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    backface-visibility: hidden;
}

/* FRONT */
.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.card-front h3 {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-size: 28px;
    text-shadow: 2px 2px 5px black;
}

/* BACK */
.card-back {
    background: rgba(139, 0, 0, 0.9);
    color: white;
    transform: rotateY(180deg);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-back p {
    font-size: 15px;
    line-height: 1.4;
    max-height: 100%;
    overflow-y: auto; 
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card-back p {
    color: white;
}

/* DIVIDER */
.divider {
    border: none;
    border-top: 3px solid #8B0000;
    margin: 40px 80px;
}

/* VIDEO SECTION */
.video-section {
    padding: 20px 80px 60px;
    text-align: center;
}

.video-section h2 {
    color: #8B0000;
    font-size: 32px;
    margin-bottom: 25px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}