/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
  
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #121212;
    color: #f5f5f5;
}
  
/* Common Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
  
/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background-color: #dedede;
    z-index: 1000;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
  
.logo img {
    max-width: 200px;
    height: auto;
}
  
.navbar ul {
    display: flex;
    list-style: none;
}
  
.navbar ul li {
    margin-left: 20px;
}
  
.navbar ul li a {
    text-decoration: none;
    color: #000000;
    padding: 5px 10px;
    transition: all 0.3s ease;
}
  
.navbar ul li a:hover, .navbar ul li a.active {
    text-decoration: underline;
    font-weight: bold;
    color: #1a73e8;
}
  
/* Hero Section - Updated */
.hero {
    min-height: 25vh;
    background-color: #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 120px 20px 20px;
    border-radius: 20px;
    padding: 60px 20px;
}

/* Keep homepage hero with background image */
body:has(a[href="index.html"].active) .hero {
    min-height: 100vh;
    background-image: url("./images/clg-main.jpg");
    background-color: rgba(0, 0, 0, 0.6);
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    margin: 80px 20px 20px;
}
  
.hero-content {
    max-width: 800px;
}
  
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}
  
.hero p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
  
/* Only show social buttons on homepage */
.social-buttons {
    display: none;
    margin-top: 30px;
}

body:has(a[href="index.html"].active) .social-buttons {
    display: block;
}
  
.social-btn {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 8px;
    background-color: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
  
.social-btn:hover {
    background-color: #0d47a1;
    transform: translateY(-3px);
}
  
.specc {
    font-size: 40px;
    font-weight: bolder;
    text-align: center;
    padding:50px; 
    color: rgb(0, 123, 255)
}

/* Content Sections */
.section {
    padding: 50px 20px;
}
  
.section-block {
    display: flex;
    margin-bottom: 50px;
    align-items: center;
    background-color: #1e1e1e;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
  
.section-block.reverse {
    flex-direction: row-reverse;
}
  
.image-container, .text-container {
    flex: 1;
    padding: 30px;
}
  
.image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
  
.text-container h2 {
    font-size: 35px;
    margin-bottom: 15px;
    color: #1a73e8;
}

.text-container p {
    font-size: 15px;
}
  
/* Gallery Section */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
  
.gallery-item {
    width: calc(50% - 20px);
    margin: 10px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
  
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}
  
.gallery-item:hover img {
    transform: scale(1.05);
}
  
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
  
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
  
/* Departments Section */
.department-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.department-block {
    width: calc(50% - 20px);
    margin: 10px;
    padding: 25px;
    background-color: #1e1e1e;
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
  
.department-block h1 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #1a73e8;
}
  
.department-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
  
.department-block:hover {
    transform: translateY(-5px);
}
  
.department-block:hover .department-content {
    max-height: 200px;
}
  
.department-content ul {
    padding-left: 20px;
    color: #e0e0e0;
}
  
/* About Us Section */
.about-row {
    display: flex;
    margin-bottom: 30px;
}
  
.about-block {
    flex: 1;
    padding: 25px;
    background-color: #1e1e1e;
    margin: 0 10px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
  
.about-block h2 {
    margin-bottom: 15px;
    color: #1a73e8;
}
  
.contact-details {
    padding: 25px;
    background-color: #1e1e1e;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
  
.contact-details h3 {
    margin-bottom: 15px;
    color: #1a73e8;
}
  
/* Footer Section */
.footer {
    background-color: #3e3e3e79;
    color: #b0b0b0;
    padding: 20px;
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
  
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}
  
.footer-links a {
    color: #1a73e8;
    text-decoration: none;
    margin-left: 20px;
}
  
.footer-links a:hover {
    text-decoration: underline;
}
  
/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 15px;
        width: 90%;
    }
    
    .section-block, .section-block.reverse {
        flex-direction: column;
    }
    
    .gallery-item, .department-block {
        width: 100%;
    }
    
    .about-row {
        flex-direction: column;
    }
    
    .about-block {
        margin: 10px 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 15px;
    }

    .hero {
        margin-top: 140px;
    }
}