    :root {
    --primary: #1a4b8c;
    --secondary: #f8b739;
    --accent: #e63946;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    background-color: #fefefe;
}
a {
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.jgecaa-logo {
    animation: rotateLogo 8s linear infinite;
}

 @keyframes rotateLogo {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Top Header */
.top-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0d3a70 100%);
    color: white;
    padding: 0.8rem 0;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.top-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.logo-container {
    display: flex;
    align-items: center;
}

.circle-logo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.circle-logo:hover {
    transform: rotate(10deg);
}

.circle-logo i {
    color: var(--primary);
    font-size: 1.8rem;
}

.college-name {
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.2;
}

.college-name span {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
}

.top-header .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.top-header .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    background-color: var(--secondary);
    color: var(--dark);
}

/* College Website Button */
.college-website-btn {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
}

.college-website-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: var(--transition);
    z-index: -1;
}

.college-website-btn:hover {
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.college-website-btn:hover:before {
    width: 100%;
}

.college-website-btn i {
    margin-right: 8px;
    transition: var(--transition);
}

.college-website-btn:hover i {
    transform: translateX(3px);
}

/* Main Navigation */
.main-navbar {
    padding: 0;
    transition: var(--transition);
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-navbar .navbar-nav {
    margin: 0 auto;
}

.main-navbar .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    color: var(--dark);
    transition: var(--transition);
    position: relative;
    padding: 1.2rem 1rem;
}

.main-navbar .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: var(--transition);
    border-radius: 2px;
}

.main-navbar .nav-link:hover, .main-navbar .nav-link.active {
    color: var(--primary);
}

.main-navbar .nav-link:hover:after, .main-navbar .nav-link.active:after {
    width: 80%;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Custom Dropdown Styling */
.navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeIn 0.3s ease;
}

.navbar .dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
    margin-top: 0;
    border-top: 3px solid var(--secondary);
}

.navbar .dropdown-item {
    padding: 0.7rem 1.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar .dropdown-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(26, 75, 140, 0.1), transparent);
    transition: var(--transition);
}

.navbar .dropdown-item:hover {
    background-color: transparent;
    color: var(--primary);
    padding-left: 2rem;
}

.navbar .dropdown-item:hover:before {
    width: 5px;
}

/* @keyframes for fadeIn used above */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(26, 75, 140, 0.95) 0%, rgba(13, 58, 112, 0.97) 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 150px;
    background: white;
    clip-path: polygon(0 70%, 100% 0, 100% 100%, 0% 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.2s both;
    max-width: 600px;
    opacity: 0.9;
}

.hero-btns {
    animation: fadeInUp 1s ease 0.4s both;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.hero-image-container {
    position: relative;
    animation: fadeInRight 1s ease 0.3s both;
}

.hero-slider {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
    height: 400px;
}

.hero-slider:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--transition);
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 0.7rem 2rem;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(26, 75, 140, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover {
    background-color: #0d3a70;
    border-color: #0d3a70;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 75, 140, 0.4);
}

.btn-primary:hover:before {
    left: 100%;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
    padding: 0.7rem 2rem;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(248, 183, 57, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition);
    z-index: -1;
}

.btn-secondary:hover {
    background-color: #e6a020;
    border-color: #e6a020;
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(248, 183, 57, 0.4);
}

.btn-secondary:hover:before {
    left: 100%;
}

.btn-outline-light {
    border-radius: 50px;
    padding: 0.7rem 2rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline-light:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
    z-index: -1;
}

.btn-outline-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.2);
}

.btn-outline-light:hover:before {
    left: 100%;
}

/* Story Button */
.story-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
}

.story-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary);
    transition: var(--transition);
    z-index: -1;
}

.story-btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(26, 75, 140, 0.3);
}

.story-btn:hover:before {
    width: 100%;
}

.story-btn i {
    margin-left: 8px;
    transition: var(--transition);
}

.story-btn:hover i {
    transform: translateX(5px);
}

/* Sidebar Mobile Menu */
.offcanvas {
    background: linear-gradient(135deg, var(--primary) 0%, #0d3a70 100%);
    color: white;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.offcanvas-title {
    font-weight: 700;
    font-size: 1.5rem;
}

.offcanvas-body .nav-link {
    color: white;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.offcanvas-body .nav-link:hover {
    color: var(--secondary);
    padding-left: 10px;
}

/* Offcanvas dropdown styling */
.offcanvas-body .dropdown-menu {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

.offcanvas-body .dropdown-item {
    color: white;
    padding: 0.7rem 1.5rem 0.7rem 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.offcanvas-body .dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: var(--secondary);
}

.offcanvas-body .dropdown-toggle::after {
    float: right;
    margin-top: 8px;
}

/* Section Styling */
.section-title {
    position: relative;
    margin-bottom: 3.5rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    padding-bottom: 15px;
}

.home-page .section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-padding {
    padding: 3rem 0;
}

.bg-light-gray {
    background-color: #f8f9fa;
}

/* Quick Actions */
.action-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.action-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    z-index: 2;
}

.action-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.action-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: var(--transition);
}

.action-card:hover .action-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Recent Activity */
.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.event-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.event-card:hover .event-img img {
    transform: scale(1.1);
}

.event-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.event-date .day {
    font-size: 1.5rem;
    display: block;
}

.event-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.event-body {
    padding: 1.5rem;
}

.event-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.event-meta i {
    margin-right: 5px;
    color: var(--primary);
}

.event-meta span {
    margin-right: 15px;
}

/* Then & Now Section */
.then-now-section {
    background: linear-gradient(rgba(26, 75, 140, 0.05), rgba(248, 183, 57, 0.05));
    position: relative;
    overflow: hidden;
}

.then-now-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(26, 75, 140, 0.03)"></path></svg>');
    background-size: cover;
}

.then-now-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.then-now-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.then-now-images {
    position: relative;
    height: 280px;
    overflow: hidden;
    display: flex;
}

.then-image, .now-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.then-image img, .now-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.then-image:before, .now-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.then-image:before {
    background: linear-gradient(to bottom, rgba(26, 75, 140, 0.3), rgba(26, 75, 140, 0.7));
}

.now-image:before {
    background: linear-gradient(to bottom, rgba(248, 183, 57, 0.3), rgba(248, 183, 57, 0.7));
}

.image-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: white;
    z-index: 2;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.then-image .image-label {
    background: var(--primary);
    padding: 5px 10px;
    border-radius: 4px;
}

.now-image .image-label {
    background: var(--secondary);
    padding: 5px 10px;
    border-radius: 4px;
    color: var(--dark);
}

.then-now-divider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-size: 1.2rem;
    color: var(--primary);
    display: none;
}

.then-now-body {
    padding: 1.5rem;
    position: relative;
}

.year-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.memory-quote {
    font-style: italic;
    color: var(--gray);
    border-left: 3px solid var(--secondary);
    padding-left: 1rem;
    margin: 1rem 0;
}

/* Memory Gallery */
.gallery-container {
    position: relative;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 75, 140, 0.8), rgba(248, 183, 57, 0.8));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 1.5rem;
    text-align: center;
    color: white;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Campus Couples */
.couple-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.couple-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.couple-img {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.couple-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.couple-card:hover .couple-img img {
    transform: scale(1.1);
}

.couple-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.heart-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.4);
    animation: pulse 2s infinite;
}

.couple-body {
    padding: 1.5rem;
}

/* Alumni Memories */
.memory-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.memory-card:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: var(--light-gray);
    font-family: Georgia, serif;
    line-height: 1;
}

.memory-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.memory-content {
    position: relative;
    z-index: 2;
}

.memory-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.memory-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid var(--secondary);
}

/* Membership CTA */
.membership-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #0d3a70 100%);
    color: white;
    border-radius: 20px;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.membership-cta:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"></path></svg>');
    background-size: cover;
}

.cta-content {
    position: relative;
    z-index: 2;
}

/* Footer with bubble background */
.footer {
    background: linear-gradient(135deg, #000000 0%, #040404 100%);
    color: white;
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.footer:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer h5 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: var(--transition);
    position: relative;
    padding-left: 0;
}

.footer-links a:before {
    content: '›';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 15px;
}

.footer-links a:hover:before {
    opacity: 1;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    margin-right: 10px;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-5px);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 3rem;
    text-align: center;
    color: #adb5bd;
    position: relative;
    z-index: 1;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(26, 75, 140, 0.4);
    transition: var(--transition);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(230, 57, 70, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* WOW.js Animation Classes */
.wow {
    visibility: hidden;
}

/* Enhanced Animation Effects */
.slide-in-left {
    transform: translateX(-50px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.slide-in-right {
    transform: translateX(50px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.slide-in-bottom {
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.zoom-in {
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.fade-in-up {
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.animated-element {
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.animated-element.animate {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 2.5rem 0;
    }

    .membership-cta {
        padding: 3rem 2rem;
    }

    .college-name {
        font-size: 1rem;
    }

    .top-header .btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.8rem;
    }

    .main-navbar .nav-link {
        padding: 0.8rem 0.5rem;
    }

    .hero-slider {
        transform: none;
        margin-top: 2rem;
    }

    .then-now-images {
        height: 200px;
    }

    .college-website-btn {
        margin-left: 0;
        margin-top: 0.5rem;
        display: block;
    }
}

/* Navbar Brand (hidden by default, reveals when sticky) */
.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  /* start hidden */
  opacity: 0;
  transform: translateX(-12px);
  max-width: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity .4s ease, transform .4s ease, max-width .45s cubic-bezier(.2,.8,.2,1);
}

/* When navbar becomes "stuck", reveal brand */
.main-navbar.stuck .navbar-brand {
  opacity: 1;
  transform: translateX(0);
  max-width: 260px; /* enough for logo + text */
  pointer-events: auto;
}

/* Compact circular logo inside navbar */
.brand-logo-circle {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: transform .35s var(--transition, ease);
}

.brand-logo-circle img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.main-navbar.stuck .brand-logo-circle:hover {
  transform: rotate(6deg) scale(1.04);
}

.brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  line-height: 1;
}

/* Keep brand visible on small screens so users always see a home anchor */
@media (max-width: 991.98px) {
  .navbar-brand {
    opacity: 1;
    transform: none;
    max-width: 260px;
    pointer-events: auto;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .navbar-brand,
  .brand-logo-circle {
    transition: none !important;
  }
}

/* ===== Better-aligned Page Loader ===== */
.loader-overlay{
  position:fixed; inset:0; z-index:2000;
  display:grid; place-items:center;
  background:
    radial-gradient(1200px 800px at 10% 0%, rgba(26,75,140,.10), transparent 60%),
    radial-gradient(1000px 600px at 100% 100%, rgba(248,183,57,.12), transparent 55%),
    linear-gradient(135deg,#0d3a70 0%, #1a4b8c 100%);
  transition:opacity .5s ease, visibility .5s ease;
}
.loader-overlay.is-hidden{ opacity:0; visibility:hidden; }

.loader-stack{ text-align:center; color:#fff; }

.loader-badge{
  position:relative;
  width:120px; aspect-ratio:1;
  display:grid; place-items:center;
  border-radius:50%;
  background:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  margin-inline:auto; margin-bottom:14px;
}

/* Spinning ring perfectly centered around the badge */
.loader-badge::before{
  content:"";
  position:absolute; inset:-12px;
  border-radius:50%;
  /* Create a segmented ring in theme colors */
  background:
    conic-gradient(
      from 0deg,
      var(--secondary) 0 25%,
      transparent 25% 50%,
      var(--secondary) 50% 75%,
      transparent 75% 100%
    );
  /* Hollow center */
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 0px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 0px));
  animation: loader-spin 1.1s linear infinite;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.25));
}

/* Optional subtle inner shimmer */
.loader-badge::after{
  content:"";
  position:absolute; inset:0;
  border-radius:50%;
  background: radial-gradient(60% 60% at 50% 35%, rgba(0,0,0,.06), transparent 60%);
}

.loader-badge img{
  width:70%; height:70%; object-fit:contain;
}

.loader-text{ font-weight:500; letter-spacing:.3px; opacity:.9; }

@keyframes loader-spin{ to{ transform:rotate(360deg); } }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .loader-badge::before{ animation:none; }
}

/* Keep brand hidden until .stuck on ALL screen sizes */
.navbar-brand {
  opacity: 0;
  transform: translateX(-12px);
  max-width: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Reveal brand only when scrolled (class added by your JS) */
.main-navbar.stuck .navbar-brand {
  opacity: 1;
  transform: translateX(0);
  max-width: 260px;
  pointer-events: auto;
}

/* Remove the mobile-forcing rule entirely or neutralize it */
@media (max-width: 991.98px) {
  .navbar-brand { /* keep hidden on mobile too */
    opacity: 0;
    transform: translateX(-12px);
    max-width: 0;
    pointer-events: none;
  }
  .main-navbar.stuck .navbar-brand {
    opacity: 1;
    transform: translateX(0);
    max-width: 260px;
    pointer-events: auto;
  }
}

/* About Section Styles */
.about-section {
    position: relative;
    overflow: hidden;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.about-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    padding-left: 2rem;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.about-feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

/* Popup Modal Styles */
.reunion-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.reunion-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
/*    margin-top: 10px;*/
    transition: transform 0.3s ease;
}

.reunion-popup.active .popup-content {
    transform: scale(1);
}

.popup-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0d3a70 100%);
    color: white;
    padding: 0.5rem;
    text-align: center;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.popup-body {
    padding: 1rem;
    text-align: center;
}

.reunion-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin: 1rem 0;
}

.countdown-item {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 0.5rem;
    min-width: 70px;
}

.countdown-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.countdown-label {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
}

.popup-footer {
    padding: 1rem;
    background: var(--light-gray);
    text-align: center;
}

/* =========================================================
   🔧 FINAL FIX: Dropdown Caret Alignment + Mobile Dropdown
   ========================================================= */

/* ----- DESKTOP: Keep caret beside the menu item ----- */
.main-navbar .nav-link.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;              /* spacing between text and caret */
  vertical-align: middle;
  line-height: 1;
  white-space: nowrap;       /* prevent wrapping that pushes caret down */
}

/* Proper caret style */
.main-navbar .nav-link.dropdown-toggle::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  vertical-align: middle;
  border-top: 0.36em solid currentColor;
  border-right: 0.36em solid transparent;
  border-left: 0.36em solid transparent;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.95;
}

/* Rotate caret when dropdown is open */
.main-navbar .dropdown.show > .nav-link.dropdown-toggle::after,
.main-navbar .nav-link.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Ensure dropdown text + caret stay horizontally aligned */
.main-navbar .nav-item.dropdown {
  position: relative;
  display: inline-block;
}

/* Prevent caret dropping due to line height mismatch */
.main-navbar .nav-link {
  line-height: 1.3;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}

/* Keep caret color consistent with hover color */
.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
  border-top-color: var(--primary);
}

/* Hover show (desktop) */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* =========================================================
   📱 MOBILE / OFFCANVAS DROPDOWN FIXES
   ========================================================= */

/* Keep dropdown menus inline inside offcanvas */
.offcanvas .dropdown-menu {
  position: static !important;
  float: none;
  transform: none !important;
  display: none; /* hidden until toggle */
  margin: 0;
  padding: 0.35rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Dropdown item style inside offcanvas */
.offcanvas .dropdown-item {
  color: #fff;
  padding: 0.6rem 1.5rem 0.6rem 2.5rem;
  display: block;
  background: transparent;
}

/* Show menu when .show is added */
.offcanvas .dropdown.show > .dropdown-menu {
  display: block;
}

/* White caret color on offcanvas */
.offcanvas .dropdown-toggle::after {
  border-top-color: rgba(255, 255, 255, 0.95);
}

/* Rotate caret when open */
.offcanvas .dropdown.show > .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Slight indent for open dropdown */
.offcanvas .dropdown.show > .dropdown-toggle {
  padding-left: 0.8rem;
}

/* Clean look for links in offcanvas */
.offcanvas .nav-link {
  color: #fff;
  white-space: nowrap;
  font-weight: 500;
}
.offcanvas .nav-link:hover {
  color: var(--secondary);
}

/* Ensure caret + text aligned in mobile too */
.offcanvas .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.3;
}

/* Remove unnecessary Popper arrow */
.offcanvas .dropdown-menu::before {
  display: none !important;
}

/* Accessibility cleanup */
.offcanvas .nav-link:focus {
  outline: none;
  box-shadow: none;
}

.dropdown-toggle::after {
    display: none!important;
}

/* ===== About Us Page Styles ===== */

/* Inner Banner Section */
.inner-banner-section {
    background: linear-gradient(135deg, rgba(13, 58, 112, 0.9) 0%, rgba(26, 75, 140, 0.8) 100%), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    padding: 1rem;
    position: relative;
    color: white;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(13, 58, 112, 0.7) 0%, transparent 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--secondary);
}

.breadcrumb-item.active {
    color: var(--secondary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
    content: "›";
}

.banner-image {
    position: relative;
    z-index: 2;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.banner-image:hover {
    transform: perspective(1000px) rotateY(0);
}

.banner-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Mission & Vision Section */
.mission-vision-section {
    position: relative;
    overflow: hidden;
}

.mission-card, .vision-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.mission-card:before, .vision-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    z-index: 2;
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
    transition: var(--transition);
}

.mission-card:hover .card-icon, .vision-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.mission-card h3, .vision-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Our Story Section */
.our-story-section {
    position: relative;
}

.story-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.story-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.story-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.story-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary);
    color: var(--dark);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.story-content h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.story-content p{
    text-align: justify;
}

.story-timeline {
    position: relative;
    margin: 2rem 0;
    padding-left: 2rem;
}

.story-timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-year {
    position: absolute;
    left: -2rem;
    top: 0;
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-left: 2rem;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.timeline-content h5 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Values Section */
.values-section {
    background: linear-gradient(rgba(26, 75, 140, 0.03), rgba(248, 183, 57, 0.03));
    position: relative;
    overflow: hidden;
}

.value-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.value-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    z-index: 2;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-card h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Leadership Section */
.leader-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.leader-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.leader-img {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.leader-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.leader-card:hover .leader-img img {
    transform: scale(1.1);
}

.leader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(26, 75, 140, 0.8));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.leader-card:hover .leader-overlay {
    opacity: 1;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    margin: 0 5px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-5px);
}

.leader-body {
    padding: 1.5rem;
    text-align: center;
}

.leader-body h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.leader-role {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.leader-batch {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.leader-desc {
    font-size: 0.9rem;
    color: var(--dark);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0d3a70 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(26, 75, 140, 0.05), rgba(248, 183, 57, 0.05));
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--primary);
}

.cta-buttons .btn-outline-light {
    border-color: var(--primary);
    color: var(--primary);
}

.cta-buttons .btn-outline-light:hover {
    background: var(--primary);
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .inner-banner-section {
        padding: 1rem;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .banner-image {
        margin-top: 2rem;
        transform: none;
    }
    
    .mission-card, .vision-card {
        padding: 2rem 1.5rem;
    }
    
    .story-image img {
        height: 300px;
    }
    
    .timeline-year {
        width: 50px;
        height: 50px;
        left: -1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* ===== Executive Committee Page Styles ===== */

/* Committee Categories */
/*.committee-category {
    margin-bottom: 3rem;
}*/

.category-title {
    color: var(--primary);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
}

/* Committee Cards */
.committee-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.committee-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.member-img {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.committee-card:hover .member-img img {
    transform: scale(1.1);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(26, 75, 140, 0.8));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.committee-card:hover .member-overlay {
    opacity: 1;
}

.member-body {
    padding: 1.5rem;
    text-align: center;
}

.member-body h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.member-batch {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.member-desc {
    font-size: 0.9rem;
    color: var(--dark);
    line-height: 1.5;
}

/* Committee Timeline */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline {
    position: relative;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 2rem);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 2rem);
}

.timeline-year {
    position: absolute;
    top: 0;
    width: 100px;
    height: 100px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-year {
    right: calc(50% - 50px);
}

.timeline-item:nth-child(even) .timeline-year {
    left: calc(50% - 50px);
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.timeline-content h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ===== Gallery Page Styles ===== */

/* Gallery Filters */
.gallery-filters {
    padding-top: 0;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.filter-btn {
    background: white;
    border: 2px solid var(--light-gray);
    color: var(--dark);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Album Cards */
.album-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.album-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.album-cover {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.album-card:hover .album-cover img {
    transform: scale(1.1);
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 75, 140, 0.9), rgba(248, 183, 57, 0.8));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 2rem;
}

.album-card:hover .album-overlay {
    opacity: 1;
}

.album-stats {
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
}

.album-stats span {
    display: block;
    margin-bottom: 0.5rem;
}

.album-stats i {
    margin-right: 0.5rem;
}

.view-album {
    border-radius: 50px;
    padding: 0.7rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.view-album:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-2px);
}

.album-body {
    padding: 1.5rem;
}

.album-body h4 {
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.album-body p {
    color: var(--gray);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.album-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.album-category {
    background: var(--light-gray);
    color: var(--dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.album-category.reunions { background: #e3f2fd; color: #1565c0; }
.album-category.events { background: #f3e5f5; color: #7b1fa2; }
.album-category.campus { background: #e8f5e8; color: #2e7d32; }
.album-category.awards { background: #fff3e0; color: #ef6c00; }
.album-category.international { background: #e0f2f1; color: #00695c; }

.album-views {
    color: var(--gray);
    font-size: 0.9rem;
}

.album-views i {
    margin-right: 0.3rem;
}

/* Memory Highlights */
.memory-highlight {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.memory-highlight:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.memory-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.memory-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.memory-highlight:hover .memory-img img {
    transform: scale(1.1);
}

.memory-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.memory-body {
    padding: 1.5rem;
}

.memory-body h5 {
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.memory-body p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.memory-stats {
    display: flex;
    gap: 1rem;
}

.memory-stats span {
    color: var(--gray);
    font-size: 0.9rem;
}

.memory-stats i {
    margin-right: 0.3rem;
    color: var(--accent);
}

/* Load More Button */
#loadMoreAlbums {
    border-radius: 50px;
    padding: 0.8rem 2.5rem;
    font-weight: 500;
    transition: var(--transition);
}

#loadMoreAlbums:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 75, 140, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .timeline:before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 80px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-year {
        left: 0 !important;
        width: 60px;
        height: 60px;
        font-size: 0.9rem;
    }
    
    .committee-category .row {
        justify-content: center;
    }
}

/* Animation for gallery filtering */
.gallery-item {
    transition: all 0.5s ease;
}

.gallery-item.hidden {
    display: none;
}

/* ===== Dropdown Active States ===== */

/* Dropdown parent active state */
.main-navbar .nav-item.dropdown.active > .nav-link {
    color: var(--primary);
}

.main-navbar .nav-item.dropdown.active > .nav-link:after {
    width: 80%;
}

/* Dropdown menu item active state */
.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
    background-color: transparent;
    color: var(--primary);
    padding-left: 2rem;
    position: relative;
}

.navbar .dropdown-item.active:before,
.navbar .dropdown-item:active:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: var(--transition);
}

/* Alumni Directory Specific Styles */

/* Search Container */
.search-container {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.search-card {
    border-radius: 15px;
    border-top: 5px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Department Tabs */
.department-tab-nav .nav-link {
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: #6c757d;
    background: transparent;
    position: relative;
    transition: all 0.3s ease;
}

.department-tab-nav .nav-link:hover {
    color: var(--primary);
    background: rgba(26, 75, 140, 0.05);
}

.department-tab-nav .nav-link.active {
    color: var(--primary);
    background: white;
    border-bottom: 3px solid var(--primary);
}

.department-tab-nav .nav-link .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

/* Department Cards */
.dept-card {
    border: none;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.dept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.dept-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 75, 140, 0.1), rgba(248, 183, 57, 0.1));
}

/* Member Cards */
.member-card {
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.member-avatar {
    position: relative;
    display: inline-block;
}

.member-avatar:after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

/* Member Badges */
.member-badges .badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    margin: 0 2px;
}

/* Profile Page */
.profile-avatar:before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 2px dashed rgba(248, 183, 57, 0.5);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Couple Story */
.bg-pink {
    background-color: #e83e8c !important;
}

.text-pink {
    color: #e83e8c !important;
}

.border-pink {
    border-color: #e83e8c !important;
}

.btn-outline-pink {
    color: #e83e8c;
    border-color: #e83e8c;
}

.btn-outline-pink:hover {
    background-color: #e83e8c;
    color: white;
}

/* Gallery Items */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    padding: 0.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .caption-overlay {
    transform: translateY(0);
}

/* Connection Items */
.connection-item {
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.connection-item:hover {
    background-color: rgba(26, 75, 140, 0.05);
    transform: translateX(5px);
}

/* Contact Icons */
.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Related Cards */
.related-card {
    transition: all 0.3s ease;
    border: none;
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

/* Empty State */
.empty-state {
    padding: 4rem 2rem;
}

.empty-state i {
    opacity: 0.3;
}

/* Stats Highlights */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stat-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .search-container {
        margin-top: -30px;
    }
    
    .department-tab-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .member-avatar:after {
        display: none;
    }
    
    .profile-avatar:before {
        display: none;
    }
}

/* Tab Content Animation */
.tab-pane {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Social Share Buttons */
.social-share-buttons .btn {
    transition: all 0.3s ease;
}

.social-share-buttons .btn:hover {
    transform: translateY(-3px);
}