/* ============================================================
   Government College of Pharmacy, Amravati
   Elegant Maroon–Gold Theme (Responsive + Animated)
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&family=Noto+Sans+Devanagari:wght@400;500;700&display=swap');

/* -------------------------
   GLOBAL
-------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    color: #222;
    background-color: #f9f6f3;
    overflow-x: hidden;
}

/* Marathi text */
.marathi, #marathi-title, #college-name-marathi {
    font-family: 'Noto Sans Devanagari', sans-serif;
}

/* -------------------------
   HEADER
-------------------------- */
.header {
   background-color: #ffffff !important;
    color: #001f4d !important;
    padding: 10px 0;
    border-bottom: 3px solid #d4af37;
    transition: background-color 0.5s ease;
    position: relative;
    z-index: 1000;
}

.header .logo img {
    height: 70px;
    transition: transform 0.3s ease;
}

.header .logo img:hover {
    transform: scale(1.05);
}

/* College Name */
.header-text {
    text-align: center;
}

#college-name, #college-name-marathi {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 5px rgba(212,175,55,0.8);
}

/* -------------------------
   NAVIGATION MENU
-------------------------- */
.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #7a1f1f;
    flex-wrap: wrap;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 10px 0;
}

.nav ul li {
    position: relative;
}

.nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav a:hover {
    background-color: #a83232;
    color: #fff3cd;
    box-shadow: 0 2px 10px rgba(212,175,55,0.5);
}

/* Dropdown */
.nav ul li ul {
    position: absolute;
    top: 40px;
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    min-width: 200px;
    z-index: 999;
}

.nav ul li:hover > ul {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

.nav ul li ul li a {
    color: #7a1f1f;
    padding: 10px 15px;
    font-weight: 500;
}

.nav ul li ul li a:hover {
    background: #fbeec1;
    color: #7a1f1f;
}

/* Dropdown animation */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}

/* -------------------------
   BANNER / SLIDER
-------------------------- */
.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: auto;
    transition: transform 8s ease-in-out;
}

.banner img:hover {
    transform: scale(1.1);
}

/* -------------------------
   CONTENT SECTIONS
-------------------------- */
.section {
    padding: 60px 20px;
}

.card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(122,31,31,0.2);
}

/* -------------------------
   FOOTER
-------------------------- */
.footer {
    background: linear-gradient(90deg, #7a1f1f, #a83232);
    color: #fff;
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer a {
    color: #f5d76e;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* -------------------------
   ANIMATIONS
-------------------------- */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------
   RESPONSIVE DESIGN
-------------------------- */
@media (max-width: 992px) {
    .nav ul {
        flex-direction: column;
        align-items: center;
    }
}
/* ===== Light Background + Dark Navy Font (All Devices) ===== */
.header-container {
    background-color: #f8fbff !important;  /* light bluish background */
    border-bottom: 2px solid silver !important;
    color: #001a33 !important;  /* dark navy */
}

.header-container * {
    color: #001a33 !important;
    font-weight: 600;
}

/* ===== Navigation Matching Theme ===== */
#menu {
    background-color: #f8fbff !important;
    border-top: 2px solid silver !important;
    border-bottom: 2px solid silver !important;
}

#menu a {
    color: #001a33 !important;
}

#menu a:hover,
#menu a.active {
    background-color: #d9e6ff !important; /* hover effect */
    color: #000 !important;
}

/* ===== Main Header: Light Bluish Background + Navy Font ===== */
.header-container {
    background-color: #f0f6ff !important; /* softer bluish tone */
    border-bottom: 2px solid silver !important;
    color: #001a33 !important;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 20px !important;
}

/* Header text and icons unified */
.header-container * {
    color: #001a33 !important;
    font-weight: 600;
}

/* ===== Logo Alignment (Fixes Slight Disturbance) ===== */
.header-left img,
.center-logo,
.header-right img {
    max-height: 65px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    vertical-align: middle !important;
}

/* Satyamev Jayate (center logo) centered perfectly */
.center-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ===== College Names ===== */
#college-name {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #001a33 !important;
    text-align: center !important;
}

#college-name-marathi {
    font-size: 1rem !important;
    color: #001a33 !important;
    text-align: center !important;
}

/* ===== Navigation Bar (Different but Matching Background) ===== */
nav, #menu {
    background-color: #dfeeff !important;  /* Slightly darker bluish tone */
    border-top: 1px solid silver !important;
    border-bottom: 2px solid silver !important;
    text-align: center !important;
}

#menu a {
    color: #001a33 !important;
    padding: 10px 18px !important;
    font-weight: 600 !important;
}

#menu a:hover,
#menu a.active {
    background-color: #c8defa !important;
    color: #000 !important;
}

/* ===== Maintain Same Desktop-Like Layout on Mobile ===== */
@media (max-width: 768px) {
    .header-container {
        grid-template-columns: 1fr auto 1fr !important;
        padding: 8px 10px !important;
        background-color: #f0f6ff !important;
    }

    .header-left img,
    .center-logo,
    .header-right img {
        max-height: 55px !important;
    }

    #college-name {
        font-size: 1.3rem !important;
    }

    #college-name-marathi {
        font-size: 0.95rem !important;
    }

    nav, #menu {
        background-color: #d8ebff !important;
    }
}
/* ===== Submenu (Dropdown) Visibility Fix ===== */
nav ul ul,
#menu ul ul {
    background-color: #ffffff !important;   /* white background for submenu */
    border: 1px solid silver !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}

nav ul ul li a,
#menu ul ul li a {
    color: #001a33 !important;              /* dark navy font */
    background-color: #ffffff !important;   /* clear white contrast */
    padding: 8px 16px !important;
    display: block !important;
}

nav ul ul li a:hover,
#menu ul ul li a:hover {
    background-color: #e6f0ff !important;   /* soft bluish hover */
    color: #000000 !important;
}