/* --- ROOT VARIABLES --- */
:root { --green: #006b3f; --deep: #06281b; --gold: #c69c3e; --shadow: 0 20px 50px rgba(0,0,0,.14); }

/* General Reset */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f9f9f9; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Utility Classes */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; }
.align-center { display: flex; align-items: center; }
.btn-green { display: inline-block; background-color: #004d2b; color: #fff; padding: 8px 15px; border-radius: 3px; font-size: 14px; transition: 0.3s; }
.btn-green:hover { background-color: #006b3c; }
.btn-gold { display: inline-block; background-color: #c69c3e; color: #fff; padding: 8px 15px; border-radius: 3px; font-size: 14px; transition: 0.3s; }
.btn-gold:hover { background-color: #a37d2e; }

/* Top Bar */
.top-bar { background-color: #004d2b; color: #fff; padding: 8px 0; font-size: 13px; }
.top-bar .left-info span { margin-right: 20px; }
.top-bar .left-info i { margin-right: 5px; }
.top-bar .right-info { display: flex; gap: 15px; align-items: center; }
.top-bar .right-info a { opacity: 0.9; }
.top-bar .social-icons i { margin-left: 10px; cursor: pointer; }

/* Header */
header { background-color: #fff; padding: 20px 0; border-bottom: 4px solid #004d2b; }
.logo-wrapper img { width: 70px; margin-right: 15px; }
.logo-text h2 { color: #004d2b; font-size: 16px; letter-spacing: 1px; }
.logo-text span { color: #666; font-size: 12px; }
.divider { font-size: 30px; color: #ccc; margin: 0 20px; font-weight: 300; }
.site-title h1 { color: #004d2b; font-size: 22px; font-weight: 700; }
.site-title span { color: #c69c3e; font-size: 13px; letter-spacing: 1px; display: block; }
.search-box { display: flex; }
.search-box input { padding: 8px 12px; border: 1px solid #ccc; border-right: none; width: 250px; outline: none; }
.search-box button { background-color: #004d2b; color: #fff; border: none; padding: 8px 15px; cursor: pointer; }

/* Navigation */
nav { background-color: #005c34; border-bottom: 3px solid #c69c3e; }
.nav-links { display: flex; flex-wrap: wrap; }
.nav-links li { position: relative; }
.nav-links li a { display: block; color: #fff; padding: 15px 18px; font-size: 14px; font-weight: 600; transition: 0.3s; }
.nav-links li a.active, .nav-links li a:hover { background-color: #004d2b; border-bottom: 3px solid #c69c3e; margin-bottom: -3px; }
.nav-links li a i { font-size: 10px; margin-left: 4px; }

/* Hero Slider */
.hero { position: relative; width: 100%; height: 500px; overflow: hidden; }
.hero-slide { width: 100%; height: 100%; background-size: cover; background-position: center; display: flex; align-items: center; position: relative; }
.hero-content { display: flex; justify-content: space-between; width: 100%; align-items: center; position: relative; z-index: 2; }
.hero-portrait { width: 25%; display: flex; justify-content: center; }
.hero-portrait img { max-width: 100%; height: auto; max-height: 400px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.hero-text { width: 40%; color: #fff; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); padding: 0 20px; }
.hero-text h3 { font-size: 32px; font-family: cursive; font-weight: normal; margin-bottom: 5px; }
.hero-text h1 { font-size: 48px; line-height: 1.1; margin-bottom: 10px; }
.hero-text h2 { font-size: 26px; margin-bottom: 15px; color: #c69c3e; }
.hero-text p { font-size: 16px; line-height: 1.6; max-width: 500px; }
.hero-vision { width: 30%; background: rgba(0, 80, 40, 0.85); padding: 20px; border-radius: 5px; color: #fff; }
.vision-box { margin-bottom: 20px; }
.vision-box:last-child { margin-bottom: 0; }
.vision-box h4 { color: #c69c3e; margin-bottom: 5px; font-size: 16px; }
.vision-box p { font-size: 13px; line-height: 1.4; }

/* Slider Controls */
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.3); color: #fff; border: none; padding: 15px; cursor: pointer; border-radius: 50%; z-index: 10; }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }
.dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.dot { width: 12px; height: 12px; background-color: #fff; border-radius: 50%; cursor: pointer; opacity: 0.5; }
.dot.active { background-color: #c69c3e; opacity: 1; }

/* Quick Actions */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: -40px auto 40px; position: relative; z-index: 5; }
.action-card { background: #fff; padding: 20px; display: flex; align-items: flex-start; gap: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border-top: 4px solid #004d2b; }
.action-card:nth-child(even) { border-top-color: #c69c3e; }
.action-card i { font-size: 32px; color: #004d2b; margin-top: 5px; }
.action-card:nth-child(even) i { color: #c69c3e; }
.action-card h4 { font-size: 14px; margin-bottom: 5px; color: #333; }
.action-card p { font-size: 12px; color: #666; margin-bottom: 10px; line-height: 1.4; }

/* Main Grid */
.main-grid { display: grid; grid-template-columns: 350px 1fr; gap: 30px; margin-bottom: 50px; }
.main-grid h3 { font-size: 16px; color: #333; margin-bottom: 15px; font-weight: 700; }

/* Dean Section (Homepage) */
.dean-card { background: #fff; display: flex; padding: 15px; gap: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border: 1px solid #eee; }
.dean-card img { width: 120px; height: 120px; object-fit: cover; border-radius: 5px; }
.dean-text h4 { font-size: 16px; color: #004d2b; margin-bottom: 3px; }
.dean-text .title { font-size: 12px; color: #666; display: block; margin-bottom: 8px; }
.dean-text p { font-size: 13px; color: #555; line-height: 1.6; margin-bottom: 10px; }

/* Faculties Section (Homepage) */
.faculty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: #fff; padding: 20px; border: 1px solid #eee; }
.faculty-item { font-size: 13px; color: #333; padding: 5px 0; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; }
.faculty-item span { background: #005c34; color: #fff; width: 20px; height: 20px; display: flex; justify-content: center; align-items: center; font-size: 11px; margin-right: 10px; border-radius: 3px; font-weight: bold; }
.faculty-btn-wrapper { text-align: right; margin-top: 15px; }

/* Footer */
footer { background-color: #003d22; color: #fff; padding-top: 50px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-bottom: 30px; }
.footer-col h4 { color: #c69c3e; font-size: 18px; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: #c69c3e; }
.footer-col p { font-size: 14px; line-height: 1.6; color: #ddd; margin-bottom: 15px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #ddd; font-size: 14px; transition: 0.3s; display: flex; align-items: center; }
.footer-col ul li a i { font-size: 10px; margin-right: 8px; color: #c69c3e; }
.footer-col ul li a:hover { color: #c69c3e; padding-left: 5px; }
.footer-col .contact-info li { display: flex; align-items: flex-start; gap: 10px; }
.footer-col .contact-info li i { color: #c69c3e; margin-top: 3px; }
.footer-social i { display: inline-block; width: 35px; height: 35px; line-height: 35px; text-align: center; background: rgba(255,255,255,0.1); border-radius: 50%; margin-right: 10px; cursor: pointer; transition: 0.3s; }
.footer-social i:hover { background: #c69c3e; transform: translateY(-3px); }
.footer-bottom { background-color: #002c19; padding: 15px 0; text-align: center; font-size: 13px; color: #aaa; border-top: 1px solid rgba(255,255,255,0.05); }

/* --- DROPDOWN MENU --- */
.dropdown-container { position: relative; }
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; background-color: #004d2b;
    min-width: 180px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); z-index: 1000; border-top: 3px solid #c69c3e;
}
.dropdown-container:hover .dropdown-menu { display: block; }
.dropdown-menu li a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); font-weight: 500; }
.dropdown-menu li a:hover { background-color: #006b3c; border-bottom: none; margin-bottom: 0; }

/* --- FACULTY SAMPLE TEMPLATE --- */
.faculty-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.faculty-feature-card { background: #fff; border-radius: 8px; padding: 25px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-left: 5px solid #c69c3e; transition: transform 0.3s ease; }
.faculty-feature-card:hover { transform: translateY(-5px); }
.faculty-feature-card .f-icon { font-size: 24px; color: #004d2b; margin-bottom: 10px; }
.faculty-feature-card h4 { margin: 0 0 10px 0; color: #004d2b; font-size: 16px; }
.faculty-feature-card p { font-size: 13px; color: #555; line-height: 1.5; margin-bottom: 15px; }
.btn-sm-green { display: inline-block; background-color: #004d2b; color: #fff; padding: 6px 12px; border-radius: 3px; font-size: 12px; text-decoration: none; }
.btn-sm-green:hover { background-color: #006b3c; }
@media (max-width: 768px) { .faculty-feature-grid { grid-template-columns: 1fr; } }

/* --- INNER PAGE STYLES (The Dean's Page) --- */
.inner-hero { background: linear-gradient(135deg, #004d2b 0%, #002c19 100%); padding: 60px 0; text-align: center; color: #fff; border-bottom: 4px solid #c69c3e; margin-bottom: 40px; }
.inner-hero h1 { font-size: 38px; margin-bottom: 10px; letter-spacing: 1px; }
.inner-hero p { font-size: 18px; opacity: 0.85; margin: 0; }
.inner-content { padding-bottom: 60px; }

/* --- THE WRAP LAYOUT (FROM THE WORKING TEST) --- */
.profile-container { overflow: hidden; margin-bottom: 50px; }

.profile-image-wrapper {
    float: left;
    width: 340px;
    margin-right: 40px;
    margin-bottom: 20px; 
}
.profile-image-wrapper img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 20px; border: 5px solid #fff; }
.profile-contact { background: #f8fbf9; padding: 20px; border-radius: 10px; border-top: 4px solid #c69c3e; }
.profile-contact h4 { margin: 0 0 10px 0; color: #004d2b; font-size: 16px; }
.profile-contact p { font-size: 14px; margin: 8px 0; display: flex; align-items: center; gap: 10px; color: #444; }
.profile-contact p i { color: #c69c3e; width: 20px; }

.profile-bio-wrapper h2 { margin: 0 0 5px 0; color: #004d2b; font-size: 32px; }
.profile-title { font-size: 16px; color: #666; display: block; margin-bottom: 15px; }
.divider-line { width: 50px; height: 3px; background-color: #c69c3e; margin-bottom: 20px; }
.bio-lead { font-size: 18px; font-weight: 600; color: #333; line-height: 1.6; }
.bio-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: #f1f6f3; padding: 15px 20px; border-radius: 8px; margin: 20px 0 30px 0; }
.highlight-item { font-size: 14px; color: #333; }
.highlight-item strong { color: #004d2b; font-weight: 800; }
.dean-message { font-style: italic; color: #555; font-size: 16px; line-height: 1.8; background: #fff; padding: 20px; border-left: 4px solid #c69c3e; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); clear: both; }
.reusable-note { background: #eef7f2; padding: 15px; border-radius: 8px; margin-top: 30px; font-size: 14px; color: #004d2b; border: 1px dashed #004d2b; }
.reusable-note i { margin-right: 8px; }

/* --- TEAM GRID --- */
.team-grid { border-top: 1px solid #eee; padding-top: 30px; clear: both; }
.section-title-inner h3 { color: #004d2b; font-size: 24px; margin-bottom: 20px; }
.team-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.team-card { background: #fff; padding: 20px; text-align: center; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.04); border: 1px solid #eee; transition: transform 0.3s ease; }
.team-card:hover { transform: translateY(-5px); }
.team-card img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.team-card h4 { margin: 0 0 5px 0; color: #004d2b; font-size: 16px; }
.team-card span { font-size: 13px; color: #777; }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    .site-title h1 { font-size: 18px; }
    .search-box input { width: 150px; }
    .hero-content { flex-wrap: wrap; }
    .hero-portrait { width: 100%; margin-bottom: 20px; }
    .hero-portrait img { max-height: 250px; }
    .hero-text { width: 100%; text-align: center; margin-bottom: 20px; }
    .hero-vision { width: 100%; }
    .quick-actions { grid-template-columns: 1fr 1fr; }
    .main-grid { grid-template-columns: 1fr; }
    .faculty-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .logo-wrapper { flex-wrap: wrap; }
    .nav-links li a { padding: 10px 12px; font-size: 12px; }
    .hero-text h1 { font-size: 28px; }
    .quick-actions { grid-template-columns: 1fr; margin-top: 20px; }
    .dean-card { flex-direction: column; align-items: center; text-align: center; }
    .top-bar .left-info, .top-bar .right-info { flex-direction: column; align-items: flex-start; gap: 5px; }
    .footer-grid { grid-template-columns: 1fr; }
    
    /* STACK ON MOBILE ONLY */
    .profile-image-wrapper { float: none; width: 100%; max-width: 400px; margin: 0 auto 30px auto; display: block; }
    .profile-bio-wrapper { clear: both; }
}