/* --- Banner Header (Strict 1920x180) --- */
.main-header {
    width: 100%;
    height: 180px;
    background-color: #2c3e50;
    overflow: hidden;
    border-bottom: 4px solid #d4af37;
}

.main-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Layout System --- */
.main-content-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
    width: 98%;
    max-width: 1600px;
    margin: 30px auto;
}

/* Side Columns */
.side-column {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    min-height: 500px;
}

/* LEFT SIDEBAR */
.left-sidebar {
    background: #fff;
    border: none !important;
}

.simple-link-container {
    padding: 10px 5px;
}

.enroll-link {
    font-size: 1.8rem; /* Adjusted for readability */
    font-weight: 800;
    color: #800000;
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
    text-align: center;
    border: 2px solid #800000;
    padding: 10px;
    border-radius: 8px;
    transition: 0.3s ease;
}

.enroll-link:hover {
    background: #800000;
    color: #fff;
}

/* Campus Visit Styling */
.campus-visit {
    margin-top: 25px;
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
    text-align: center; /* This centers everything inside the container */
}

.map-link {
    display: block;      /* Change from inline-block to block to occupy full width */
    width: 100%;         /* Ensure it spans the whole column */
    margin-bottom: 12px;
    font-size: 1.2rem;   /* Slightly adjusted for emphasis */
    color: #800000;      /* Maroon to match the theme */
    text-decoration: none;
    font-weight: 700;
    text-align: center;  /* Explicitly center the text */
    transition: 0.2s;
}

.map-link:hover {
    color: #a00000;
    text-decoration: underline;
}

/* Ensure the map container also respects the padding */
.map-preview {
    width: 100%;
    margin: 0 auto;      /* Keeps the map centered if it has a max-width */
}

.map-preview iframe {
    display: block;
    filter: grayscale(10%); /* Subtle professional look */
    transition: 0.3s;
}

.map-preview:hover iframe {
    filter: grayscale(0%);
}

/* Center Column & Carousel */
.center-column {
    flex: 1;
    min-width: 0;
}

#photo-carousel-container {
    position: relative;
    width: 100%;
    height: 550px; 
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.2);
    background-color: #000;
}

.photo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 20%, transparent 100%);
    padding: 50px 30px 25px;
    color: #fff;
}

/* Sidebar Titles */
.sidebar-title {
    color: #800000;
    font-size: 1.1rem;
    text-transform: uppercase;
    border-bottom: 2px solid #800000;
    margin-bottom: 15px;
    padding-bottom: 5px;
    font-weight: 700;
}

/* Right Sidebar News */
.news-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    transition: 0.2s;
}

.news-item:hover {
    padding-left: 5px;
}

.news-item a { text-decoration: none; color: inherit; }
.news-date { color: #888; font-size: 0.75rem; display: block; }
.news-item p { margin: 5px 0 0; font-size: 0.95rem; font-weight: 500; line-height: 1.4; }

/* PVMO Section */
.pvmo-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 50px 0;
    width: 98%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.pvmo-card {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    border-top: 5px solid #800000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* Carousel Controls */
.ctrl-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: 0.3s;
}

.ctrl-btn:hover {
    background: #800000;
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 20px; }
.next { right: 20px; }

/* Responsive */
@media (max-width: 1200px) {
    .main-content-layout { flex-direction: column; align-items: center; }
    .side-column { width: 100%; flex: none; min-height: auto; }
    .pvmo-section { grid-template-columns: repeat(2, 1fr); width: 95%; }
}

@media (max-width: 768px) {
    #photo-carousel-container { height: 350px; }
    .pvmo-section { grid-template-columns: 1fr; }
}