﻿/* ==========================================================================
   CSS Variables & Theme
   ========================================================================== */
:root {
    --primary-blue: #003366;
    --secondary-yellow: #f2a900;
    --primary-red: #cc1b1b; /* Signature College Red */
    --dark-text: #1f2937;
    --light-bg: #f3f4f6;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* ==========================================================================
   Base Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

a {
    text-decoration: none;
}

/* ==========================================================================
   Top Alert Bar
   ========================================================================== */
.top-bar {
    background: var(--primary-red);
    color: var(--white);
    padding: 10px 0;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Navigation & Dropdown
   ========================================================================== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1350px; 
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text h1 {
    font-size: 1.4rem;
    color: var(--primary-blue);
}

.logo-text span {
    font-size: 0.8rem;
    color: #666;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px; /* Reduced from 15px */
    align-items: center;
}

.nav-links a {
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.9rem; /* Slightly smaller text to fit all 10 items */
    padding: 8px 12px; /* Tighter padding */
    border-radius: 50px;
    white-space: nowrap; /* THIS FIXES THE WRAPPING: Keeps "About Us" on one line */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hover effect for normal links */
.nav-links a:hover {
    color: var(--primary-blue);
    background-color: rgba(0, 51, 102, 0.05); /* Very soft blue background on hover */
}

/* The New "Soft Pill" Active State */
.nav-links a.active {
    color: var(--primary-red);
    background-color: rgba(204, 27, 27, 0.08); /* 8% opacity of your primary red */
    font-weight: 700;
}

/* Keep the active style strong even if they hover over it again */
.nav-links a.active:hover {
    background-color: rgba(204, 27, 27, 0.12);
}
/* Dropdown Menu styling */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-radius: 0 0 6px 6px;
    list-style: none;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-top: 3px solid var(--primary-red);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--dark-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: #f9fafb;
    color: var(--primary-blue);
    padding-left: 26px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-blue);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #002244;
}

.btn-secondary {
    background: var(--secondary-yellow);
    color: var(--dark-text) !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #d99700;
}

.btn-red {
    background: var(--primary-red);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-red:hover {
    background: #a81515;
    transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section (For Home Page)
   ========================================================================== */
.hero {
    height: 70vh;
    background: url('header bg.jpg') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.85);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
    padding: 20px;
}

.motto {
    font-size: 1.2rem;
    color: var(--secondary-yellow);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ==========================================================================
   Student Dashboard & Notice Board
   ========================================================================== */
.student-dashboard {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 5px;
}

.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

/* Notice Board Scrolling UI */
.notice-board-card {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.notice-header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-header h3 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-all {
    color: var(--secondary-yellow);
    font-size: 0.9rem;
    font-weight: 600;
}

.view-all:hover {
    text-decoration: underline;
}

.notice-scroll {
    height: 350px;
    padding: 20px;
}

.notice-list {
    list-style: none;
}

.notice-list li {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ccc;
}

.notice-date {
    display: block;
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 5px;
}

.notice-list a {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
    transition: var(--transition);
}

.notice-list a:hover {
    color: #0055aa;
    text-decoration: underline;
}

.badge-new {
    background: var(--primary-red);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ==========================================================================
   Action Portal Grid
   ========================================================================== */
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.action-card {
    border-radius: 12px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.action-card i {
    font-size: 2.2rem;
}

.action-text h4 {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.action-text span {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Color Classes applied to cards */
.bg-blue { background: var(--primary-blue); color: var(--white); border: none; }
.bg-yellow { background: var(--secondary-yellow); color: var(--dark-text); border: none; }
.bg-red { background: var(--primary-red); color: var(--white); border: none; }
.bg-light { background: var(--white); border: 1px solid #e5e7eb; }

.text-blue { color: var(--primary-blue); }
.text-dark { color: var(--dark-text); }
.text-dark span { color: #666; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 0 0; 
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    padding: 0 20px; 
}

.footer-col h3 {
    color: var(--secondary-yellow);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: #ccc;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--white);
}

.footer-bottom {
    background-color: #111827; 
    text-align: center;
    padding: 25px 20px; 
    font-size: 0.9rem;
    color: #9ca3af; 
}

.developer-credit {
    margin-top: 8px;
    font-size: 0.85rem;
}

.developer-credit a {
    color: var(--secondary-yellow);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.developer-credit a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ==========================================================================
   Responsive Media Queries (Global)
   ========================================================================== */
@media (max-width: 992px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    .notice-scroll {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hero-content h2 { font-size: 2rem; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: var(--white);
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    /* Ensure mobile dropdowns display inline */
    .dropdown-menu {
        position: relative;
        box-shadow: none;
        border: none;
        background: #f9fafb;
    }
    
    .hamburger {
        display: block;
    }
    
    .footer-container { 
        flex-direction: column; 
    }
}

@media (max-width: 576px) {
    .action-grid {
        grid-template-columns: 1fr;
    }
    .action-card {
        padding: 20px 15px;
    }
}
#scrollTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    font-size: 1.2rem;
    border: none;
    outline: none;
    background-color: var(--primary-red);
    color: var(--white);
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}

#scrollTopBtn:hover {
    background-color: #a81515;
    transform: translateY(-5px);
}
.page-header p {
    color: var(--white) !important;
}

/* Forces the address, email, and phone in the footer back to a readable light grey */
.footer-col p {
    color: #d1d5db !important; 
}

/* ==========================================================================
   OFFICIAL COLLEGE LOGO & BANNER STYLES
   ========================================================================== */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between the seal and the text */
    text-decoration: none;
    max-width: 75%; /* Prevents it from crashing into the menu button */
}

.emblem-img {
    height: 75px; /* Adjust this to make the circular seal larger/smaller */
    width: auto;
    object-fit: contain;
}

.text-banner-img {
    height: 55px; /* Adjust this to make the text larger/smaller */
    width: auto;
    object-fit: contain;
}

/* ==========================================================================
   Mobile Responsiveness for Logos
   ========================================================================== */
@media (max-width: 992px) {
    /* Tablet size */
    .emblem-img { height: 60px; }
    .text-banner-img { height: 45px; }
}

@media (max-width: 768px) {
    /* Mobile size */
    .brand-logo {
        gap: 10px;
        max-width: 80%;
    }
    .emblem-img { height: 50px; }
    .text-banner-img { height: 35px; }
}

@media (max-width: 480px) {
    /* Very small phones */
    .emblem-img { height: 40px; }
    .text-banner-img { height: 25px; }
}
/* ==========================================================================
   MODERN TYPOGRAPHY LOGO HEADER
   ========================================================================== */
.modern-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

/* The Circular Seal */
.brand-emblem {
    height: 80px;
    width: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05)); /* Adds a slight 3D pop */
}

/* The Text Container */
.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* "Shikshan Prasarak Sanstha’s" */
.brand-top {
    font-size: 0.75rem;
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

/* "Shri. Sampatrao Mane Mahavidyalaya" */
.brand-main {
    font-size: 1.4rem;
    color: var(--primary-blue);
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

/* "Khanapur" */
.brand-sub {
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 600;
    margin-top: 2px;
}

/* NAAC Badge */
.brand-badge {
    display: inline-block;
    background: #fef2f2; /* Very soft red background */
    color: var(--primary-red);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 5px;
    width: fit-content;
    border: 1px solid #fecaca;
}

/* ==========================================================================
   Logo Responsiveness (100% Visibility on Mobile)
   ========================================================================== */
@media (max-width: 1200px) {
    .brand-main { font-size: 1.2rem; }
    .brand-emblem { height: 70px; }
}

@media (max-width: 992px) {
    /* Tablet */
    .brand-main { font-size: 1.1rem; }
    .brand-emblem { height: 65px; }
    .brand-top { font-size: 0.65rem; }
}

@media (max-width: 768px) {
    /* Mobile Phones */
    .modern-brand { 
        gap: 10px; 
        max-width: 85%; /* Protects the hamburger menu from being pushed off-screen */
        align-items: flex-start; /* Aligns the seal to the top of the taller text block */
    }
    
    .brand-emblem { 
        height: 60px; 
        margin-top: 2px; 
    }
    
    /* Allow text to wrap safely to the next line instead of hiding */
    .brand-top { 
        font-size: 0.55rem; 
        line-height: 1.2; 
        white-space: normal; 
        margin-bottom: 2px;
    }
    
    .brand-main { 
        font-size: 0.95rem; 
        line-height: 1.15; 
        margin-bottom: 2px;
    }
    
    .brand-sub { 
        font-size: 0.75rem; 
        margin-bottom: 4px;
    }
    
    /* Keep the badge visible, but let the text inside it wrap if necessary */
    .brand-badge { 
        display: inline-block; 
        font-size: 0.6rem; 
        padding: 3px 6px; 
        white-space: normal; 
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    /* Tiny Phones */
    .brand-emblem { height: 50px; }
    .brand-main { font-size: 0.85rem; }
    .brand-top { font-size: 0.5rem; }
    .brand-sub { font-size: 0.7rem; }
    .brand-badge { font-size: 0.55rem; padding: 2px 5px; }
}
/* ==========================================================================
   FOOTER MODERN BRANDING
   ========================================================================== */
.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-emblem {
    height: 70px;
    width: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.footer-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2px;
}

.footer-top {
    font-size: 0.65rem;
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    line-height: 1.3;
}

.footer-main {
    font-size: 1.15rem !important; /* Overrides default footer h3 size */
    color: var(--primary-blue);
    font-weight: 800;
    margin: 0 0 6px 0 !important;
    line-height: 1.2;
    letter-spacing: -0.2px;
}

.footer-badge {
    display: inline-block;
    background: #fef2f2;
    color: var(--primary-red);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    width: fit-content;
    border: 1px solid #fecaca;
}

/* Add a clean gap before the address */
.footer-contact {
    border-top: 1px solid #e5e7eb;
    padding-top: 15px;
}

/* ==========================================================================
   Footer Logo Mobile Responsiveness
   ========================================================================== */
@media (max-width: 768px) {
    .footer-brand {
        gap: 12px;
    }
    
    .footer-emblem {
        height: 60px;
    }
    
    .footer-main {
        font-size: 1.05rem !important;
    }
    
    .footer-top {
        font-size: 0.55rem;
        white-space: normal;
    }
    
    .footer-badge {
        font-size: 0.6rem;
        padding: 3px 6px;
        white-space: normal;
    }
}
/* ==========================================================================
   UPDATED HOMEPAGE DASHBOARD (3-Column Layout)
   ========================================================================== */

/* Change the main container to 3 columns */
.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Three equal columns */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. Compact Notice Board */
.compact-notices {
    height: 350px; /* Force a shorter height */
    display: flex;
    flex-direction: column;
}

.compact-scroll {
    height: 260px; /* Reduce scroll area so it doesn't leave huge empty gaps */
}

/* 2. Compact Action Grid (2x2 layout inside its column) */
.compact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 350px; /* Match notice board height */
}

.compact-actions .action-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 10px;
    height: 100%;
}

.compact-actions .action-card i {
    font-size: 2rem;
    margin-right: 0;
    margin-bottom: 10px;
}

.compact-actions .action-text h4 {
    font-size: 1rem;
}

.compact-actions .action-text span {
    font-size: 0.75rem;
}

/* 3. New Explore Institution Section */
.explore-institution-card {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    height: 350px;
    display: flex;
    flex-direction: column;
}

.explore-header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 15px 20px;
    border-bottom: 3px solid var(--secondary-yellow);
}

.explore-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.explore-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px;
    flex-grow: 1;
}

.explore-item {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.3s ease;
}

.explore-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.explore-item span {
    font-size: 0.8rem;
    font-weight: 600;
}

.explore-item:hover {
    background: var(--white);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.explore-item:hover i {
    transform: translateY(-3px);
    color: var(--primary-red);
}

.explore-highlight {
    background: #fef2f2;
    border-color: #fecaca;
    color: var(--primary-red);
}
.explore-highlight i { color: var(--primary-red); }

/* ==========================================================================
   Mobile Responsiveness for 3-Column Dashboard
   ========================================================================== */
@media (max-width: 992px) {
    /* Tablet: Stack Notice Board on top, put Actions & Explore side-by-side */
    .dashboard-container {
        grid-template-columns: 1fr 1fr;
    }
    .compact-notices {
        grid-column: span 2;
        height: 250px; /* Keep it tight */
    }
}

@media (max-width: 768px) {
    /* Mobile: Stack everything in a single column */
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    .compact-notices {
        grid-column: span 1;
    }
    .compact-actions {
        height: auto; /* Let it grow naturally on mobile */
    }
    .explore-institution-card {
        height: auto;
    }
}
/* ==========================================================================
   FIX: Explore Grid Bottom Spacing
   ========================================================================== */
.explore-institution-card {
    height: auto !important; /* Removes the strict 350px limit so it can breathe */
    min-height: 350px; /* Keeps it from shrinking too small */
}

.explore-grid {
    padding-bottom: 25px !important; /* Forces extra white space at the bottom */
}
/* ==========================================================================
   FIX: Sticky Sidebar Offset for New Taller Header
   ========================================================================== */
.sticky-nav {
    top: 170px !important; /* Increased from 100px to clear the tall logo */
    z-index: 90; /* Ensures it stays layered properly */
}

/* Adjust for slightly smaller tablets where the header shrinks a bit */
@media (max-width: 1200px) {
    .sticky-nav {
        top: 150px !important;
    }
}

@media (max-width: 992px) {
    .sticky-nav {
        position: relative !important;
        top: 0 !important; /* Resets completely on mobile/small tablet */
    }
}

.founder-profile {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.founder-img {
    width: 180px !important; 
    height: auto !important;
    aspect-ratio: 3 / 5 !important; /* Creates the perfect portrait rectangle */
    border-radius: 8px !important; /* Kills the 50% circle shape */
    border: 4px solid #f3f4f6 !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background-color: #fff; /* Fallback for transparency */
}

/* Target the image directly inside to ensure it fills the new rectangle */
.founder-img img,
.founder-img .profile-pic {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    border-radius: 0 !important; /* Stops the image tag itself from rounding */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .founder-profile {
        flex-direction: column;
        align-items: center; 
        text-align: center;
        gap: 20px;
    }
    
    .founder-img {
        width: 150px !important; 
    }
}