/* GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Makes padding not affect width */
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* TOP BAR (Helpline & Links) */
.top-bar {
    background-color: #1a2a40; /* Dark blue background */
    color: white;
    display: flex;
    justify-content: space-between; /* Pushes content to left and right */
    padding: 10px 50px;
    font-size: 13px;
}

.top-bar-right a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
}

.top-bar-right a:hover {
    text-decoration: underline;
}

/* MAIN HEADER (Logo, Text, Portrait) */
.main-header {
    background-color: white;
    display: flex;
    align-items: center; /* Centers items vertically */
    justify-content: space-around; /* Spreads logo, text, and portrait */
    padding: 20px;
    border-bottom: 2px solid #ddd;
    text-align: center;
}

.header-logo img {
    height: 100px;
}

.header-portrait img {
    height: 120px;
    border-radius: 50%; /* Makes image circular like in the screenshot */
    border: 3px solid #eee;
}

.header-content h1 {
    font-size: 28px;
    color: #b22222; /* Dark red/maroon color */
    margin-bottom: 5px;
}

.header-content p {
    font-size: 14px;
    margin-bottom: 3px;
    font-weight: bold;
}

.highlight-blue { color: #0000ff; } /* Blue text */
.highlight-red { color: #ff0000; } /* Red text */
.location { color: #1a2a40; }

/* NAVIGATION BAR */
.navbar {
    background-color: #9ab4d1; /* Light blue/purple background */
    padding: 0 50px;
}

.nav-links {
    list-style: none;
    display: flex; /* Makes the list items horizontal */
    align-items: center;
}

.nav-links li {
    position: relative; /* Needed for the dropdown positioning */
}

.nav-links li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 14px;
}

.nav-links li a:hover {
    background-color: white;
    color: #1a2a40;
}

/* DROPDOWN MENU */
.dropdown-menu {
    display: none; /* Hide by default */
    position: absolute;
    top: 100%; /* Position below the parent link */
    left: 0;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 100;
    list-style: none;
    padding: 0;
}

.dropdown:hover .dropdown-menu {
    display: block; /* Show when hovering the parent item */
}

.dropdown-menu li a {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-weight: normal;
}

.dropdown-menu li a:hover {
    background-color: #f9f9f9;
    padding-left: 25px; /* Subtle shift effect on hover */
    transition: 0.3s;
}

.active-dropdown {
    background-color: white;
}

/* Align the last dropdown to the right so it doesn't go off-screen */
.dropdown-left .dropdown-menu {
    left: auto;
    right: 0;
}

/* HERO BANNER */
.hero-banner {
    width: 100%;
    overflow: hidden; /* Prevents image from overflowing if too large */
}

.hero-banner img {
    width: 100%;
    display: block; /* Removes small gap at bottom of image */
    height: auto;
}

/* MAIN CONTENT GRID */
.info-grid {
    display: flex;
    justify-content: space-between;
    padding: 30px 50px;
    gap: 20px;
    background-color: #f0f0f0;
}

.grid-column {
    background-color: white;
    flex: 1; /* Makes all columns equal width */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.column-header {
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}

/* Header Colors */
.orange-bg { background-color: #ff8c00; }
.teal-bg { background-color: #008b8b; }
.maroon-bg { background-color: #b22222; }

/* Quick Links Styling */
.quick-links {
    max-width: 250px; /* Sidebar style */
}

.link-list {
    list-style: none;
    padding: 10px 0;
}

.link-list li a {
    display: block;
    padding: 10px 20px;
    color: #1a2a40;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}

.link-list li a:hover {
    background-color: #f9f9f9;
    color: #ff8c00;
}

/* Intro & News Styling */
.column-content {
    padding: 20px;
    line-height: 1.6;
}

.read-more-btn {
    display: block;
    margin: 15px auto;
    padding: 8px 20px;
    background-color: #eee;
    border: 1px solid #ccc;
    cursor: pointer;
    color: #b22222;
    font-weight: bold;
}

.news-container {
    padding: 15px;
}

.news-item {
    margin-bottom: 15px;
}

.news-date {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.news-item-content {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.news-item-content img {
    width: 40px;
    height: 40px;
}

.news-title {
    color: #b22222;
    font-weight: bold;
    margin-bottom: 5px;
}

.news-item-content a {
    font-size: 13px;
    color: #1a2a40;
    text-decoration: none;
    font-style: italic;
}

/* ADMISSION POSTER */
.admission-poster {
    width: 100%;
    margin-top: 20px;
}

.admission-poster img {
    width: 100%;
    height: auto;
    display: block;
}

/* COLLEGE PROFILE */
.college-profile {
    padding: 50px;
    background-color: #f8f9fa;
}

.profile-card {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.profile-left {
    flex: 1;
    background-color: #333;
}

.profile-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-right {
    flex: 1.5;
    padding: 40px;
    background-color: #fffaf0; /* Light beige like the image */
}

.profile-title {
    color: #008b8b;
    font-size: 24px;
    margin-bottom: 10px;
}

.profile-divider {
    border: none;
    border-top: 1px dotted #ccc;
    margin-bottom: 20px;
}

.profile-data {
    margin-bottom: 30px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted #eee;
}

.data-label {
    font-weight: bold;
    color: #555;
    width: 200px;
}

.data-value {
    flex: 1;
    font-weight: bold;
    text-align: left;
}

/* Specific Colors for Profile Text */
.teal-txt { color: #008b8b; }
.navy-txt { color: #1a2a40; }
.blue-txt { color: #0000ff; }
.purple-txt { color: #800080; }
.pink-txt { color: #ff1493; }
.green-txt { color: #008000; }
.red-txt { color: #ff0000; }

.profile-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.profile-social img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: 0.3s;
}

.profile-social img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* COURSES OFFERED */
.courses-offered {
    background: #1a2a40 url("Images/background.png") repeat; /* Dark blue pattern background */
    padding: 60px 20px;
    text-align: center;
}

.courses-header h2 {
    display: inline-block;
    padding: 10px 30px;
    border: 2px solid white;
    color: white;
    background-color: rgba(255,255,255,0.1);
    margin-bottom: 40px;
}

.course-cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allows wrapping on small screens */
}

.course-card {
    background: white;
    width: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-10px);
}

.card-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
}

/* Card Header Colors */
.bg-light-blue { background-color: #e3f2fd; }
.bg-yellow { background-color: #fff9c4; }
.bg-white { background-color: #ffffff; }
.bg-blue { background-color: #1e88e5; }
.bg-black { background-color: #000000; }

.card-body {
    padding: 20px;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 16px;
    color: #008b8b;
    margin-bottom: 10px;
}

.card-body p {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 15px;
}

.join-link {
    color: #ff8c00;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.card-footer {
    padding: 10px 20px;
    border-top: 1px solid #eee;
    text-align: left;
}

.card-footer img {
    height: 30px;
}

/* PATRON, VISION & MISSION */
.patron-vision-mission {
    padding: 60px 40px;
    background-color: #f0f0f0;
}

.pvm-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.patron-card, .vision-mission-card {
    flex: 1;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.patron-card {
    flex: 0 0 350px; /* Fixed width for patron side */
}

.pvm-header {
    background: #1a2a40 url("Images/plaid.png") repeat;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    border-bottom: 3px solid #008b8b;
}

.patron-content {
    padding: 30px;
    text-align: center;
}

.patron-content img {
    width: 250px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

.patron-name {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

.patron-name span {
    color: #008b8b;
    font-weight: bold;
    font-size: 18px;
}

.vision-mission-card {
    background-color: #e3f2fd; /* Light blue side */
}

.vm-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vm-box {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.vm-box-header {
    color: #008b8b;
    text-align: center;
    margin-bottom: 15px;
    font-size: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.vm-box p, .vm-box ol {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.vm-box ol {
    padding-left: 20px;
}

.vm-box ol li {
    margin-bottom: 10px;
}

/* GALLERY, VIDEO & BIRTHDAY */
.gallery-video-birthday {
    padding: 60px 40px;
    background-color: #fff;
}

.gvb-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.gvb-column {
    flex: 1;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gvb-header {
    background-color: #8b736b; /* Brownish header from image */
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 3px solid #ff8c00; /* Orange border line */
}

.gvb-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
}

.empty-msg {
    color: #008b8b;
    font-style: italic;
    margin-bottom: 20px;
    text-align: left;
}

.view-more {
    color: #ff0000;
    text-decoration: none;
    font-size: 14px;
    font-family: monospace;
    text-align: center;
    margin-top: auto;
}

.birthday-date {
    font-size: 12px;
    font-weight: normal;
}

.birthday-card {
    background-color: #fdf5e6; /* Cream background for birthday */
    text-align: center;
}

.birthday-card img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 5px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.student-name {
    color: #008b8b;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 15px;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #ddd;
    border-radius: 50%;
}

    background-color: #008b8b;
}

/* STATS COUNTER */
.stats-counter {
    padding: 60px 20px;
    background-color: #f5f5f5;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 250px;
    padding: 20px 20px 25px;
    border-radius: 5px;
    color: white;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px; /* Low height rectangle */
    margin-top: 30px; /* Space for top icon overlap */
    margin-bottom: 30px; /* Space for bottom button overlap */
}

/* Box Background Gradients */
.teal-grad { background: linear-gradient(135deg, #00ced1, #008b8b); }
.red-grad { background: linear-gradient(135deg, #ff4d4d, #d32f2f); }
.green-grad { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.orange-grad { background: linear-gradient(135deg, #ffa07a, #e67e22); }

.stat-icon-circle {
    background: rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.5);
    position: absolute;
    top: -22px; /* Overlap top */
    background-color: inherit; /* Matches box color but with opacity */
    backdrop-filter: blur(5px);
}

.stat-icon-circle svg {
    width: 24px;
    height: 24px;
    color: white;
}

.stat-number {
    font-size: 28px;
    margin-bottom: 5px;
    font-weight: bold;
}

.stat-label {
    font-size: 14px;
    margin-bottom: 20px;
    height: 40px; /* Keep alignment consistent */
    display: flex;
    align-items: center;
}

.stat-btn {
    background: white;
    color: #333;
    border: none;
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
    position: absolute;
    bottom: -15px; /* Overlap bottom */
}

.stat-btn:hover {
    transform: scale(1.05);
    background: #f0f0f0;
}

/* FOOTER REDESIGN */
footer {
    width: 100%;
}

.contact-bar {
    background-color: #00bfff;
    color: white;
    padding: 10px 40px;
    font-weight: bold;
    font-size: 18px;
    text-align: left;
}

.footer-contact-info {
    background-color: #333;
    color: #ffd700; /* Gold/Yellow text from image */
    padding: 40px 20px;
}

.footer-info-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    justify-content: space-between;
    align-items: center;
}

.footer-col {
    flex: 1;
    text-align: center;
}

.footer-logo {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.footer-col .subtitle {
    font-size: 11px;
    margin-bottom: 5px;
}

.footer-col p {
    font-size: 13px;
    margin-bottom: 2px;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-icons img, .email-icon {
    width: 30px;
    height: 30px;
    filter: invert(1); /* Make black icons white/gold */
}

.footer-link {
    display: block;
    color: #ffd700;
    text-decoration: underline;
    margin-top: 10px;
    font-size: 13px;
}

.footer-map iframe {
    vertical-align: bottom; /* Remove space below iframe */
}

/* DEEP FOOTER WITH LINKS */
.deep-footer {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url("Images/maxresdefault.jpg") fixed center;
    background-size: cover;
    color: white;
    padding: 60px 20px 20px;
    position: relative;
}

.deep-footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.link-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.link-col {
    flex: 1;
    min-width: 200px;
}

.link-col h4 {
    color: #ffd700;
    font-size: 16px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ffd700;
    display: inline-block;
    padding-bottom: 5px;
}

.link-col ul {
    list-style: none;
}

.link-col ul li {
    font-size: 13px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.link-col ul li:hover {
    color: #ffd700;
    transform: translateX(5px);
}

.visitors-count {
    text-align: right;
    color: #ffd700;
}

.visitors-count p {
    font-weight: bold;
    margin-bottom: 10px;
}

.counter-digits {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.counter-digits span {
    background: white;
    color: black;
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 3px;
    font-family: monospace;
    font-size: 18px;
}

.copyright-row {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa;
}