/* ============================================
   RNT College of Agriculture - Complete Stylesheet
   With Multi-level Dropdown Support
   ============================================ */

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f9f4;
    color: #1e3a2f;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: #2d7d4a;
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
}

.btn:hover {
    background: #1f5f38;
    transform: scale(1.03);
}

.btn-outline {
    background: transparent;
    border: 2px solid #2d7d4a;
    color: #2d7d4a;
    box-shadow: none;
}

.btn-outline:hover {
    background: #2d7d4a;
    color: white;
}

/* ---------- Section Title ---------- */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 15px;
    color: #0f3b2a;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: #f5b042;
    margin: 10px auto 0;
    border-radius: 4px;
}

.section-subtitle {
    text-align: center;
    color: #3a5a4a;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ---------- Header / Navbar ---------- */
header {
    background: #0a2a1a;
    color: white;
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f5b042;
}

.logo span {
    font-weight: 300;
    font-size: 0.8rem;
    display: block;
    color: #a8d5b8;
}

/* ---------- Navigation ---------- */
nav ul {
    display: flex;
    list-style: none;
    gap: 2px;
    flex-wrap: wrap;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 6px;
    transition: 0.3s;
    font-size: 0.9rem;
    display: block;
    white-space: nowrap;
}

nav ul li a:hover,
nav ul li a.active {
    background: #f5b042;
    color: #0a2a1a;
}

/* ---------- Dropdown Menu (Level 1) ---------- */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0a2a1a;
    min-width: 220px;
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    z-index: 200;
    border-top: 4px solid #f5b042;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    list-style: none;
    padding: 0;
    position: relative;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    color: #d4e8dc;
    font-weight: 400;
    transition: 0.3s;
    border-radius: 0;
    font-size: 0.9rem;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: #1a4d3a;
    color: #f5b042;
}

.dropdown-menu li a i {
    margin-right: 10px;
    width: 18px;
    color: #f5b042;
}

/* ---------- Dropdown Menu (Level 2 - Nested) ---------- */
.dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 2px;
    border-top: 4px solid #f5b042;
    border-left: 4px solid #f5b042;
    min-width: 200px;
}

/* Show dropdown on hover */
.nav-item:hover > .dropdown-menu {
    display: block;
}

.dropdown-item:hover > .dropdown-menu {
    display: block;
}

/* Dropdown indicator arrow */
.nav-link-with-dropdown {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link-with-dropdown .fa-chevron-down,
.nav-link-with-dropdown .fa-chevron-right {
    font-size: 0.6rem;
    transition: 0.3s;
}

.nav-item:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-item:hover .fa-chevron-right {
    transform: rotate(90deg);
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(rgba(10, 42, 26, 0.75), rgba(10, 42, 26, 0.85)),
                url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?w=1200&h=500&fit=crop') no-repeat center center/cover;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 30px;
}

.hero h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 25px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-small {
    padding: 50px 0;
}

.hero-small h2 {
    font-size: 2rem;
}

/* ---------- Quick Info Cards ---------- */
.quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: -25px 0 35px;
    position: relative;
    z-index: 10;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-left: 5px solid #2d7d4a;
    transition: 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.info-card i {
    font-size: 2rem;
    color: #2d7d4a;
    margin-bottom: 10px;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.info-card p {
    color: #3a5a4a;
    font-size: 0.9rem;
}

/* ---------- Grid Layouts ---------- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 30px 0 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

/* ---------- Cards ---------- */
.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: 0.3s;
    border-bottom: 4px solid #f5b042;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 2.2rem;
    color: #2d7d4a;
    margin-bottom: 10px;
}

.card h3 {
    margin-bottom: 6px;
    color: #0f3b2a;
    font-size: 1.1rem;
}

.card p {
    color: #3a5a4a;
    font-size: 0.9rem;
}

/* ---------- Background Variants ---------- */
.bg-light {
    background: #e8f3ec;
    padding: 40px 0;
    border-radius: 20px;
    margin: 30px 0;
}

.bg-white {
    background: white;
    padding: 40px 0;
    margin: 30px 0;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    font-size: 0.9rem;
    color: #3a5a4a;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #d4e0d8;
}

.breadcrumb a {
    color: #2d7d4a;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #f5b042;
}

.breadcrumb span {
    color: #0a2a1a;
}

/* ---------- Tables ---------- */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

table th {
    background: #0a2a1a;
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 10px 16px;
    border-bottom: 1px solid #e8f0ec;
}

table tr:hover td {
    background: #f5fcf7;
}

/* ---------- Footer ---------- */
footer {
    background: #0a2a1a;
    color: #d4e8dc;
    padding: 35px 0 20px;
    margin-top: 40px;
    border-top: 5px solid #f5b042;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.footer-grid h4 {
    color: #f5b042;
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid ul li {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.footer-grid ul li i {
    margin-right: 8px;
    color: #f5b042;
    width: 18px;
}

.footer-grid ul li a:hover {
    color: #f5b042;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #1a4d3a;
    padding-top: 15px;
    font-size: 0.85rem;
    color: #8ab8a0;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .dropdown-menu .dropdown-menu {
        left: 0;
        top: 100%;
        border-left: none;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        font-size: 1.6rem;
        cursor: pointer;
        color: white;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #0a2a1a;
        padding: 15px 0;
        border-radius: 10px;
        margin-top: 10px;
        gap: 3px;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li a {
        padding: 10px 18px;
        border-radius: 4px;
        white-space: normal;
    }

    .dropdown-menu {
        position: static;
        background: #1a3d2a;
        box-shadow: none;
        border-radius: 6px;
        margin: 3px 0 3px 20px;
        border-top: none;
        border-left: 3px solid #f5b042;
        animation: none;
        min-width: auto;
    }

    .dropdown-menu .dropdown-menu {
        border-left: 3px solid #f5b042;
        border-top: none;
        margin-left: 15px;
    }

    .nav-item:hover > .dropdown-menu {
        display: none;
    }

    .dropdown-item:hover > .dropdown-menu {
        display: none;
    }

    .nav-item.active > .dropdown-menu {
        display: block;
    }

    .dropdown-item.active > .dropdown-menu {
        display: block;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }
    .hero h2 {
        font-size: 1.5rem;
    }
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   Hero Section with Background Image - Common
   ============================================ */

.hero {
    background: linear-gradient(rgba(10, 42, 26, 0.70), rgba(10, 42, 26, 0.80)),
                url('../image/rnt-pg-college-kapasan.jpg') no-repeat center center/cover;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 30px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 25px;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.8);
}

.hero .btn {
    display: inline-block;
    background: #f5b042;
    color: #0a2a1a;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-decoration: none;
}

.hero .btn:hover {
    background: #e6a030;
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Tablet */
@media (max-width: 992px) {
    .hero {
        padding: 70px 0;
        min-height: 350px;
    }
    .hero h2 {
        font-size: 2.4rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
        min-height: 320px;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
        max-width: 95%;
    }
    .hero .btn {
        padding: 12px 32px;
        font-size: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
        min-height: 260px;
    }
    .hero h2 {
        font-size: 1.5rem;
    }
    .hero p {
        font-size: 0.9rem;
        max-width: 100%;
    }
    .hero .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}
/* ============================================
   Faculty Page Styles
   ============================================ */

.faculty-card {
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.faculty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.faculty-card .designation {
    color: #2d7d4a;
    font-weight: 600;
}

.faculty-card .subjects {
    color: #3a5a4a;
    font-size: 0.9rem;
    margin-top: 5px;
}

.faculty-card .contact-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e8f0ec;
    font-size: 0.85rem;
    width: 100%;
}

.faculty-card .contact-info i {
    color: #2d7d4a;
    width: 20px;
}

/* Faculty Images - Center */
.faculty-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2d7d4a;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .faculty-img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .faculty-img {
        width: 80px;
        height: 80px;
    }
}
/* ============================================
   Events Page Styles
   ============================================ */

/* Event Card */
.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: 0.3s;
    border-bottom: 4px solid #f5b042;
    margin-bottom: 25px;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Event Image */
.event-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Event Content */
.event-content {
    padding: 20px;
}

.event-date {
    color: #2d7d4a;
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.event-title {
    font-size: 1.2rem;
    color: #0f3b2a;
    margin-bottom: 10px;
}

.event-description {
    color: #3a5a4a;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Event Grid */
.events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Full Width Event */
.event-full {
    grid-column: 1 / -1;
}

/* Event Category Tags */
.event-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
}

.tag-workshop { background: #e8f3ec; color: #2d7d4a; }
.tag-celebration { background: #fef3e8; color: #e67e22; }
.tag-placement { background: #e8eef7; color: #2980b9; }
.tag-awareness { background: #fce8e8; color: #c0392b; }
.tag-culture { background: #f5e8fc; color: #8e44ad; }
.tag-seminar { background: #e8f7f7; color: #1abc9c; }
.tag-other { background: #f0f0f0; color: #555; }

/* Event Status */
.event-status-completed {
    color: #2d7d4a;
    font-weight: 600;
    font-size: 0.85rem;
}

.event-status-upcoming {
    color: #f5b042;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
    .event-img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .event-img {
        height: 180px;
    }
    .event-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .event-img {
        height: 150px;
    }
    .event-content {
        padding: 15px;
    }
}