/* --- Professional Upgrade --- */

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* --- FIX #1: PREVENT HORIZONTAL SCROLLING --- */
html, body {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.background-container { position: relative; width: 100vw; height: 100vh; overflow: hidden; }
.top-left-corner { position: absolute; width: 100%; height: 100%; background-color: #0056b3; clip-path: polygon(0 0, 100% 0, 0 100%); z-index: 1; }
.bottom-right-corner { position: absolute; width: 100%; height: 100%; background-color: #fecb00; clip-path: polygon(100% 0, 100% 100%, 0 100%); z-index: 0; }

/* New container for social media icons */
.social-icons-container {
    position: absolute;
    top: 20px;
    right: 70px; /* Adjust this value to position it relative to the button */
    display: flex;
    gap: 15px; /* Spacing between icons */
    z-index: 200;
}

/* 🔴 FIX: Target the anchor tag and set background to none with !important, and remove any padding/border. */
.social-icons-container a {
    display: inline-block;
    background: none !important; /* Ensure no background */
    border: none !important;     /* Ensure no border */
    border-radius: 0 !important; /* Ensure no rounded corners from a default background */
    padding: 0 !important;       /* Ensure no padding creates a background area */
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.social-icons-container img {
    width: 30px;
    height: 30px;
    /* Optional: apply a filter if icon colors need to be adjusted for contrast */
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.social-icons-container img:hover {
    transform: scale(1.1);
    opacity: 0.8;
}


.content-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 550px;
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between logo and search box */
    max-height: 95vh;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.university-details { display: flex; flex-direction: column; align-items: center; }
.university-logo { width: 110px; height: 110px; margin-bottom: 20px; background: #fff; border-radius: 50%; padding: 8px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }
h1 { color: #fecb00; font-size: 2.2rem; font-weight: 700; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); line-height: 1.2; margin: 0; }
.sub-heading { color: #fff; font-size: 1rem; font-weight: 400; opacity: 0.9; margin-top: 5px; }

.search-section { 
    background-color: rgba(255, 255, 255, 0.98); 
    padding: 25px; 
    border-radius: 16px; 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15); 
    backdrop-filter: blur(4px); 
    width: 100%; 
    box-sizing: border-box; 
    position: relative; 
}
.search-instruction { color: #555; font-size: 1rem; margin-top: 0; margin-bottom: 20px; }
.search-box { display: flex; gap: 10px; margin-bottom: 20px; }
#searchInput { flex-grow: 1; padding: 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; font-family: 'Poppins', sans-serif; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
#searchInput:focus { border-color: #0056b3; box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2); outline: none; }
#searchButton { padding: 14px 22px; background-color: #0056b3; color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 16px; font-weight: 600; transition: background-color 0.3s ease, transform 0.2s ease; }
#searchButton:hover { background-color: #00418a; transform: translateY(-2px); }

#suggestionsContainer {
    position: absolute;
    top: 155px; 
    left: 25px;
    right: 25px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #eee;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}
/* End of new styles */

#resultsContainer { max-height: 300px; overflow-y: auto; padding-right: 10px; }
.result-item { background-color: #fff; border: 1px solid #eee; border-radius: 8px; padding: 15px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.result-item:hover { transform: translateY(-3px); box-shadow: 0 4px 15px rgba(0,0,0,0.08); }

.button-group { display: flex; gap: 10px; }
.view-button { background-color: #17a2b8; color: white; }
.download-button { background-color: #28a745; color: white !important; }
.view-button, .download-button { text-decoration: none; padding: 8px 14px; border-radius: 6px; font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer; transition: opacity 0.3s ease; }
.view-button:hover, .download-button:hover { opacity: 0.85; }

/* 🔴 FIX: Ensure footer background is absolutely none. */
footer { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background: none !important; /* Force no background */
    padding: 15px 0; 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    z-index: 100; 
}
.footer-btn { background-color: rgba(0, 86, 179, 0.8); color: white; border: 1px solid rgba(255, 255, 255, 0.2); padding: 10px 20px; border-radius: 8px; cursor: pointer; font-size: 1rem; font-weight: 600; backdrop-filter: blur(5px); transition: background-color 0.3s ease; }
.footer-btn:hover { background-color: #0056b3; }
.footer-btn img {
  filter: brightness(0) invert(1);
}

.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(5px); }
.modal-content { background-color: #fff; margin: 10vh auto; padding: 25px; border-radius: 12px; width: 90%; max-width: 500px; position: relative; max-height: 80vh; overflow-y: auto; }
.close-btn { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
.about-college-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none; /* No background color */
    border: none;    /* No border */
    padding: 0;
    cursor: pointer;
    z-index: 200;
    transition: transform 0.2s ease;
}

.about-college-btn img {
    width: 40px;  /* Adjust size as needed */
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Optional: add a subtle shadow */
}

.about-college-btn:hover {
    transform: scale(1.1); /* Zoom effect on hover */
}
.founders-container { display: flex; justify-content: space-around; }
.founder-profile img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
.modal-lg { max-width: 800px; }
.about-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.chancellor-desk { display: flex; align-items: center; gap: 20px; }
.chancellor-photo img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
#analysis-section { margin-bottom: 20px; }
.analysis-btn { background-color: #fecb00; color: #333; /* Style for analysis button */ }
.pdf-modal { padding: 20px; box-sizing: border-box; }
.pdf-viewer-content { width: 100%; height: 100%; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; }
.pdf-viewer-header { background-color: #333; color: white; padding: 10px; display: flex; align-items: center; justify-content: space-between; }
#pdf-iframe { width: 100%; height: 100%; border: none; }

/* New styles for the contact and map sections */
.contact-details {
    text-align: left;
    margin-bottom: 20px;
}

.contact-details h4 {
    margin: 0 0 10px 0;
    color: #0056b3;
}

.contact-details p {
    margin: 5px 0;
    line-height: 1.5;
}

.contact-details a {
    color: #0056b3;
    text-decoration: none;
}

.reach-us-section {
    text-align: left;
}

.map-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}
/* End of new styles */


@media (max-width: 768px) {
    body { display: block; height: auto; overflow-y: auto; }
    .background-container { height: auto; min-height: 100vh; overflow: visible; }
    .content-wrapper { position: relative; top: auto; left: auto; transform: none; margin: 30px 0; max-height: none; overflow-y: visible; gap: 20px; }
    h1 { font-size: 1.6rem; }
    .university-logo { width: 90px; height: 90px; }
    .search-box { flex-direction: column; }
    .result-item { flex-direction: column; align-items: flex-start; gap: 15px; }
    
    /* 🔴 FIX: Ensure footer background is absolutely none in the media query too. */
    footer { position: relative; background: none !important; padding: 10px; }
    
    .founders-container, .chancellor-desk { flex-direction: column; align-items: center; gap: 20px; text-align: center; }
    
    /* Adjust social icons for smaller screens */
    .social-icons-container {
        position: static;
        margin-top: 20px;
        justify-content: center;
        flex-wrap: wrap;
        /* 🔴 FIX: Remove any default background from the container itself */
        background: none !important; 
    }
}
/* New styles for the 'About College' stats section with icons */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 20px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 50px; /* Adjust size of icons */
    height: 50px;
    margin-bottom: 10px;
}

.stat-item b {
    font-size: 1.5rem;
    color: #0056b3;
}

.stat-item p {
    font-size: 0.9rem;
    margin: 0;
    color: #555;
    line-height: 1.2;
}

/* End of new stats section styles */
    
