* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: auto;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Top Bar */
.top-bar {
    background-color: #1a252f;
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
}

/* Main Header */
.main-header {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo h2 {
    color: #0b4f6c;
}

.logo span {
    color: #e67e22;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    margin-left: 20px;
    font-weight: 600;
}

.btn-portal {
    background-color: #e67e22;
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(11, 79, 108, 0.8), rgba(11, 79, 108, 0.8)), url('https://via.placeholder.com/1200x500') center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

/* Services Grid */
.section {
    padding: 50px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card h3 {
    color: #0b4f6c;
    margin-bottom: 10px;
}

/* Form Styles */
.form-box {
    background: #fff;
    max-width: 450px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn-submit {
    width: 100%;
    background-color: #0b4f6c;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
}

.btn-submit:hover {
    background-color: #083b52;
}

/* Footer */
.footer {
    background-color: #1a252f;
    color: #fff;
    padding: 40px 0 10px 0;
}

.footer a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #34495e;
    font-size: 0.85rem;
}
/* 2-Column Responsive Layout */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Base Style for Colorful Feature Cards */
.card-feature {
    padding: 35px 30px;
    border-radius: 12px;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

/* Card Icons */
.card-badge {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 50%;
    line-height: 1;
}

/* Mission Card: Deep Blue / Cyan Gradient */
.card-mission {
    background: linear-gradient(135deg, #0b4f6c 0%, #1f7a8c 100%);
}

.card-mission h3 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.card-mission p {
    color: #e2f1f8;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Vision Card: Vibrant Orange Gradient */
.card-vision {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.card-vision h3 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.card-vision p {
    color: #fdf2e9;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Photo Splash Gallery Section */
.photo-splash-section {
    background-color: #ffffff;
    padding: 60px 0;
}

.splash-header {
    text-align: center;
    margin-bottom: 40px;
}

.splash-header h2 {
    color: #0b4f6c;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.splash-header p {
    color: #666;
    font-size: 1.05rem;
}

/* 12-Photo Responsive CSS Grid */
.splash-grid-12 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 18px;
}

/* Individual Card Setup */
.splash-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Span featured items across 2 rows for visual balance */
.splash-item.splash-featured {
    grid-row: span 2;
}

.splash-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease-in-out;
}

/* Smooth Zoom Effect on Hover */
.splash-item:hover img {
    transform: scale(1.08);
}

/* Gradient Overlay & Text Caption */
.splash-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 79, 108, 0.9) 0%, rgba(0, 0, 0, 0) 65%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.splash-overlay span {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Responsive Layout Adjustments */
@media (max-width: 1024px) {
    .splash-grid-12 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .splash-grid-12 {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    
    .splash-item.splash-featured {
        grid-row: span 1;
    }
}

@media (max-width: 480px) {
    .splash-grid-12 {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }
}
/* About Us Section Styling */
.flex-about {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.about-content {
    flex: 1;
}

.sub-heading {
    color: #e67e22;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.about-content h2 {
    color: #0b4f6c;
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
}

.btn-primary {
    display: inline-block;
    background-color: #0b4f6c;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #083b52;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    object-fit: cover;
}

/* Responsive collapse for tablet and mobile */
@media (max-width: 768px) {
    .flex-about {
        flex-direction: column;
    }
    
    .about-image {
        width: 100%;
    }
}

/* Academic Program Cards */
.program-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.program-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.program-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.program-card:hover .program-img img {
    transform: scale(1.06);
}

.program-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(11, 79, 108, 0.88);
    color: #ffffff;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
}

.program-content {
    padding: 25px;
    flex: 1;
}

.program-content h3 {
    color: #0b4f6c;
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.program-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Gallery Section Base */
.content-section {
    text-align: center;
    padding: 50px 20px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.content-section h2 {
    color: #0b4f6c;
    font-size: 2.2rem;
    margin-bottom: 30px;
}/* 3D Ring Stage Setup */
.stage {
    width: 100%;
    height: 340px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Rotating Ring */
.ring {
    width: 200px;
    height: 270px;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Individual Cards */
.ring-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
    border: 2px solid #ffffff;
    background: #ffffff;
}

.ring-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ring-card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(11, 79, 108, 0.95));
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

/* Ring Navigation Buttons */
.ring-controls {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.ring-btn {
    background-color: #0b4f6c;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.ring-btn:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
}