/*
Theme Name: RMDRS College Agriculture
Description: Raj Mohini Devi College of Agriculture & Research Station
Author: Global Associates
Version: 2.0
Text Domain: rmdcars
Domain Path: /languages
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

#header {
  background: #fff;
  border-bottom: 1px solid #ddd;
}

#top-bar {
  background: #f8f9fa;
  padding: 10px 0;
  font-size: 12px;
}

.top-info {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  align-items: center;
}

.top-info span {
  color: #555;
}

#logo-bar {
  padding: 15px 0;
  text-align: center;
}

#logo h1 {
  margin: 0;
  font-size: 28px;
  color: #2e7d32;
}

#logo img {
  max-height: 80px;
  width: auto;
}

#logo p {
  margin: 5px 0 0 0;
  color: #555;
  font-size: 14px;
}

.navbar {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%) !important;
  border-radius: 0 !important;
  border: none !important;
  padding: 0 !important;
  z-index: 1000;
}

.navbar-default {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  border-radius: 0;
}

.navbar-toggle {
  border-color: white;
  background-color: rgba(255,255,255,0.1);
}

.navbar-toggle .icon-bar {
  background-color: white;
}

.nav.navbar-nav > li > a {
  color: white !important;
  font-weight: 500;
  padding: 15px 12px !important;
  transition: all 0.3s ease;
}

.nav.navbar-nav > li > a:hover {
  background-color: rgba(255,255,255,0.1);
}

.nav.navbar-nav > li.active > a {
  background-color: rgba(255,255,255,0.2);
  border-bottom: 3px solid white;
}

.dropdown-menu {
  background: #1b5e20 !important;
  border: none;
}

.dropdown-menu > li > a {
  color: white !important;
  padding: 12px 20px !important;
}

.dropdown-menu > li > a:hover {
  background-color: rgba(255,255,255,0.2) !important;
}

.slider-wrapper {
  background: #f8f9fa;
  overflow: hidden;
  margin-bottom: 30px;
}

.slider {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

.slide {
  position: relative;
  width: 100%;
  display: none;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.claim {
  position: absolute;
  color: white;
  font-weight: bold;
  font-size: 32px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  background: rgba(0,0,0,0.3);
  padding: 10px 20px;
  border-radius: 5px;
}

.infoservice {
  padding: 40px 0;
  background: #f8f9fa;
}

.serviceBox1 {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.serviceBox1:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.iconservice {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  color: white;
  padding: 20px;
  text-align: center;
}

.iconservice h3 {
  color: white;
  margin: 0;
  font-size: 18px;
}

.frcontent {
  padding: 20px;
}

.frcontent h2, .frcontent h3, .frcontent h4 {
  color: #2e7d32;
  margin-bottom: 10px;
}

.frcontent p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

.dean-section {
  background: linear-gradient(135deg, #e8f5e8, #d4edda);
  padding: 40px 0;
  margin: 30px 0;
}

.dean-section img {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 3px solid #2e7d32;
}

.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  max-width: 300px;
  margin: 15px auto;
  text-align: center;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
}

.card .author {
  padding: 20px 10px;
  background: #f8f9fa;
}

.card .author img {
  border-radius: 50%;
  width: 90px;
  height: 90px;
  object-fit: cover;
  border: 2px solid #2e7d32;
}

.card .authordecs {
  padding: 15px;
}

.card h4 {
  color: #2e7d32;
  margin: 10px 0 5px 0;
  font-size: 16px;
}

.profession {
  color: #666;
  font-size: 13px;
  margin: 5px 0;
  font-style: italic;
}

.contact {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  color: white;
  padding: 40px 0;
  text-align: center;
  margin-top: 40px;
}

.contact h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 24px;
}

.contact p {
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.8;
}

.contact a {
  color: #fff;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

footer {
  background: #1b5e20;
  color: white;
  padding: 30px 0;
  text-align: center;
  font-size: 14px;
  margin-top: 40px;
}

.copyright {
  margin: 0;
  line-height: 1.6;
}

.w3ls-recent-grids {
  list-style: none;
  padding: 0;
}

.w3ls-recent-grids li {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  list-style: none;
}

.w3ls-recent-grids h4 {
  margin: 0 0 5px 0;
  font-size: 14px;
  color: #2e7d32;
}

.w3ls-recent-grids a {
  color: #0066cc;
  text-decoration: none;
  font-size: 12px;
}

@media (max-width: 768px) {
  #logo h1 {
    font-size: 20px;
  }
  .nav.navbar-nav > li > a {
    padding: 12px 8px !important;
    font-size: 13px;
  }
  .claim {
    font-size: 18px;
    padding: 8px 15px;
  }
  .card {
    max-width: 100%;
  }
  .top-info {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .navbar-collapse {
    background: #1b5e20 !important;
  }
  #logo h1 {
    font-size: 16px;
  }
  .contact h3 {
    font-size: 18px;
  }
}
