/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    /* background: #f8f9fa; */
    padding-top: 120px;
}

/* ===== HEADER STYLES ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 130px;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.background-decor {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    height: 100%;
    background: linear-gradient(to right, #87CEEB, #00BFFF);
    opacity: .9;
    /* Removed transform: skewX(-15deg) for performance */
    transform: skewX(-15deg);
    transform-origin: top right;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1380px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
    padding: 0 1rem;
}

/* ===== LOGO STYLES ===== */
.logo-link {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    z-index: 3;
    margin: 10px;
    margin-top: 15px;
    margin-left: -9vw;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
    /* Simplified transition */
}

.logo-img:hover {
    opacity: 0.9;
    /* Simplified hover effect */
}


.item-number:hover {
    color: #fbbf24;
}

/* ===== CONTACT INFO STYLES ===== */
.contact-info {
    display: flex;
    gap: 1.5rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.contact-info .item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}


/* ===== MOBILE MENU STYLES ===== */
.mobile-menu {
    display: none;
    position: relative;
}

.mobile-menu button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.mobile-menu button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    max-height: 80vh;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

.mobile-dropdown.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-dropdown li {
    border-bottom: 1px solid #eee;
}

.mobile-dropdown li:last-child {
    border-bottom: none;
}

.mobile-dropdown a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.mobile-dropdown a:hover {
    background-color: #f8f9fa;
}

/* ===== NAVIGATION STYLES ===== */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    /* Removed backdrop-filter for performance */
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    padding: 0.5rem 1rem;
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.3s, background-color 0.3s;
    cursor: pointer;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.05);
}

.nav-links a.red {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

/* ===== DROPDOWN MENU STYLES ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle i {
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 10;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
    padding-bottom: 0.5rem;
    margin-top: 5px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    border-bottom: 1px solid #f3f4f6;
    font-size: 1rem;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
}

/* ===== HERO SECTION STYLES ===== */
.hero-section {
    position: relative;
    width: 100%;
    height: 78vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

/* ===== MISSION BODY & CONTAINER ===== */
.mission-body {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 2rem 0;
}

.mission-container {
    width: 100%;
    max-width: 1200px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid #e9ecef;
    border-radius: 20px;
    margin: 0 1rem;
    padding: 2rem;
}

.plate-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    color: black;
    font-weight: 500;
    font-size: larger;
}

.plate-left,
.plate-right {
    padding: 2rem;
    border-radius: 20px;
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
    overflow: hidden;
}

.plate-left {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: #fff;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.plate-icon {
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: .9;
}

.plate-usg-title {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: .2em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

.plate-right {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border: 1px solid rgba(3, 105, 161, .1);
}

.plate-timing-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}

.plate-timing-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(45deg, #0369a1, #dc2626);
}

.plate-timing-title .plate-icon {
    font-size: 1.5rem;
    color: #0369a1;
    margin-bottom: 0;
}

.plate-timing-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #374151;
    letter-spacing: .1em;
}

.plate-timing-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.plate-timing-details p {
    position: relative;
    font-size: 1.19rem;
    padding: 1rem;
    border-radius: 15px;
    border-left: 4px solid #0369a1;
    line-height: 1.6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.plate-timing-details p:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(3, 105, 161, .2);
}

.plate-timing-details p:nth-child(1) {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
}

.plate-timing-details p:nth-child(2) {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
}

.plate-timing-details p:nth-child(3) {
    background: linear-gradient(135deg, #00c9ff, #92fe9d);
}

.plate-timing-details p:nth-child(4) {
    background: linear-gradient(135deg, #b67cbd, #f5576c);
}

.plate-timing-details p:only-child {
    background: linear-gradient(135deg, #7e8681, #5ce6cc);
    border-left-color: #2d8659;
}

.plate-timing-text span {
    color: #dc2626;
}

/* Machine Section */
.machine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.machine-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #4a3a9c;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.machine-item:nth-child(1) {
    background: linear-gradient(135deg, #5ee7df, #6e239c);
}

.machine-item:nth-child(2) {
    background: linear-gradient(135deg, #190cd3, #59bd86);
}

.machine-item:hover {
    transform: translateY(-2px);
}

.machine-logo {
    max-width: 120px;
    height: auto;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 8px;
}

.machine-text {
    font-size: 1rem;
    font-weight: bold;
}

/* ===== MEDIA CONTAINER FOR PAGES ===== */
.mediaContainer-class-p2 {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    /* Needed for absolute positioning of children */
}

.hero-media-p2 {
    width: 75%;
    height: 100%;
    object-fit: fill;
    /* Changed for better aspect ratio */
    position: absolute;
    /* All media elements stack on top of each other */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    border-radius: 30px;
    transition: opacity 1s ease-in-out;
}

.hero-media-p2.active {
    opacity: 1;
    /* This class will make the current media visible */
}

/* ===== IMPROVED RATE CHART STYLES ===== */
.rate-chart-section {
    width: 100%;
    max-width: 1300px;
    margin: 3rem auto;
    padding: 2rem 1rem;
}

.rate-chart-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #374151;
    background: linear-gradient(45deg, #0369a1, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 0.5rem;
}

.rate-chart-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #0369a1, #dc2626);
    border-radius: 2px;
}

.table-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.rate-table {
    width: 100%;
    border-collapse: collapse;
}

.rate-table th,
.rate-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.rate-table thead th {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 1;
}

.rate-table tbody tr {
    transition: background-color 0.3s ease;
}

.rate-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.rate-table tbody tr:hover {
    background-color: #e9ecef;
}

.rate-table td:first-child {
    color: #2c3e50;
    font-weight: 500;
}

.rate-table td:last-child {
    color: #dc2626;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-align: right;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: rgb(190, 0, 0);
    color: white;
    padding: 30px 0;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 0 20px;
}

.footer-section {
    flex: 1 1 220px;
    min-width: 220px;
}

.footer-section h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-image-container {
    position: relative;
    width: 100%;
    height: 150px;
    border-radius: 15px;
    overflow: hidden;
}

.footer-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Footer Map Styles */
.footer-map-container {
    flex: 1 1 300px;
    min-width: 250px;
    height: 200px;
    min-height: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
}

.footer-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.green {
    color: #72ffa6;
    font-size: 25px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-text span {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.contact-text a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.quick-links {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin-bottom: 12px;
}

.quick-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: #ffcdd2;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: #ffffff;
    padding-top: 20px;
    margin-top: 30px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1600px) {
    .logo-link {
        margin-left: 0;
    }
}

@media (max-width: 1200px) {
    .plate-container {
        flex-direction: column;
    }

    .hero-media-p2 {
        width: 90%;
        border-radius: 15px;
    }

    .footer-content {
        padding: 0 15px;
        gap: 15px;
    }

    .footer-section {
        flex: 1 1 280px;
        min-width: 250px;
    }

    .footer-map-container {
        flex: 1 1 300px;
        min-width: 280px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .logo-img {
        height: 60px;
    }
}

@media (max-width: 1000px) {

    .contact-info {
        display: none;
    }

    .logo-img {
        height: 50px;
    }
    .hero-section {
        height: 60vh;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
        font-size: 15px;
    }

    .logo-link {
        margin-top: 30px;
    }

    .mobile-menu {
        display: block;
    }

    nav {
        display: none;
    }

    .top-bar {
        padding: 0;
    }

    .logo-img {
        height: 50px;
    }

    #header {
        height: 80px;
    }

    .table-container {
        box-shadow: none;
        background: transparent;
    }

    .mission-container {
        margin: 0 0.5rem;
        padding: 1.5rem;
    }

    .plate-left,
    .plate-right {
        padding: 1.5rem;
    }

    .plate-icon {
        font-size: 2.5rem;
    }

    .plate-usg-title {
        font-size: 1.8rem;
    }

    .plate-timing-text {
        font-size: 1.3rem;
    }

    .plate-timing-details p {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .hero-section {
        height: 50vh;
    }

    .rate-chart-title {
        font-size: 2rem;
    }

    .rate-chart-section {
        padding: 1.5rem 0.5rem;
    }

    .rate-table,
    .rate-table thead,
    .rate-table tbody,
    .rate-table th,
    .rate-table td,
    .rate-table tr {
        display: block;
    }

    .rate-table thead {
        display: none;
    }

    .rate-table tr {
        background: #fff;
        border-radius: 15px;
        margin-bottom: 1.5rem;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .rate-table td {
        border: none !important;
        padding: 1rem 1.5rem;
        text-align: right !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f1f3f4;
    }

    .rate-table td:first-of-type {
        background: linear-gradient(135deg, #0369a1, #0284c7);
        color: white;
        font-weight: 600;
        padding: 1.25rem 1.5rem;
        font-size: 1.2rem;
        border-bottom: none;
        text-align: left !important;
    }

    .rate-table td:last-of-type {
        border-bottom: none;
    }

    .rate-table td:before {
        content: attr(data-label);
        font-weight: 500;
        color: #555;
        text-transform: uppercase;
        font-size: 0.9rem;
        letter-spacing: 0.05em;
        text-align: left;
    }

    .rate-table td:first-of-type:before {
        display: none;
    }

    .rate-table td[data-label="Price (₹)"] {
        font-size: 1.4rem;
        font-weight: 700;
        color: #dc2626;
    }

    .footer {
        padding: 25px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 25px;
        padding: 0 15px;
    }

    .footer-section {
        flex: 1 1 100%;
        min-width: 100%;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .footer-image-container {
        height: 120px;
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-map-container {
        height: 180px;
        margin: 0 auto;
        flex: 1 1 100%;
        min-width: 100%;
    }

    .contact-item {
        justify-content: center;
        text-align: left;
    }

    .quick-links {
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .background-decor {
        width: 85%;
    }

    .mobile-dropdown {
        min-width: 200px;
    }

    .container {
        padding: 0 0.5rem;
    }

    .mission-container {
        padding: 1rem;
    }

    .plate-left,
    .plate-right {
        padding: 1rem;
    }

    .plate-usg-title {
        font-size: 1.5rem;
    }

    .plate-timing-text {
        font-size: 1.1rem;
    }

    .plate-timing-details p {
        font-size: 0.9rem;
    }

    .hero-section {
        height: 35vh;
    }

    .rate-chart-title {
        font-size: 1.8rem;
    }

    .footer {
        padding: 20px 0;
    }

    .footer-content {
        padding: 0 10px;
        gap: 20px;
    }

    .footer-section h3 {
        font-size: 1.25rem;
        margin-bottom: 12px;
        letter-spacing: 0.5px;
    }

    .footer-image-container {
        height: 100px;
        max-width: 250px;
    }

    .footer-map-container {
        height: 160px;
        border-radius: 8px;
    }

    .contact-item {
        gap: 10px;
        padding: 8px 0;
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .contact-text span {
        font-size: 1rem;
    }

    .contact-text a {
        font-size: 0.9rem;
    }

    .quick-links a {
        font-size: 1rem;
    }

    .quick-links li {
        margin-bottom: 10px;
    }

    .footer-bottom {
        padding-top: 15px;
        margin-top: 20px;
        font-size: 0.9rem;
    }

    .logo-img {
        height: 45px;
    }
}